Class ZKReplicationStorageBase

java.lang.Object
org.apache.hadoop.hbase.replication.ZKReplicationStorageBase
Direct Known Subclasses:
ZKReplicationPeerStorage, ZKReplicationQueueStorageForMigration

@Private public abstract class ZKReplicationStorageBase extends Object
This is a base class for maintaining replication related data,for example, peer, queue, etc, in zookeeper.
  • Field Details

  • Constructor Details

  • Method Details

    • toByteArray

      protected static byte[] toByteArray(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationState.State state)
      Serialized protobuf of state 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.