Class ZKReplicationStorageBase
java.lang.Object
org.apache.hadoop.hbase.replication.ZKReplicationStorageBase
- Direct Known Subclasses:
ZKReplicationPeerStorage
,ZKReplicationQueueStorage
This is a base class for maintaining replication related data,for example, peer, queue, etc, in
zookeeper.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ZKReplicationStorageBase
(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]
toByteArray
(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationState.State state) Serialized protobuf ofstate
with pb magic prefix prepended suitable for use as content of a peer-state znode under a peer cluster id as in /hbase/replication/peers/PEER_ID/peer-state.
-
Field Details
-
REPLICATION_ZNODE
- See Also:
-
REPLICATION_ZNODE_DEFAULT
- See Also:
-
replicationZNode
The name of the base znode that contains all replication state. -
zookeeper
-
conf
-
-
Constructor Details
-
ZKReplicationStorageBase
-
-
Method Details
-
toByteArray
protected static byte[] toByteArray(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationState.State state) Serialized protobuf ofstate
with pb magic prefix prepended suitable for use as content of a peer-state znode under a peer cluster id as in /hbase/replication/peers/PEER_ID/peer-state.
-