@InterfaceAudience.Private public class ZKReplicationStorageBase extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
static String |
REPLICATION_ZNODE |
static String |
REPLICATION_ZNODE_DEFAULT |
protected String |
replicationZNode
The name of the base znode that contains all replication state.
|
protected ZKWatcher |
zookeeper |
Modifier | Constructor and Description |
---|---|
protected |
ZKReplicationStorageBase(ZKWatcher zookeeper,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected static byte[] |
toByteArray(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. |
public static final String REPLICATION_ZNODE
public static final String REPLICATION_ZNODE_DEFAULT
protected final String replicationZNode
protected final ZKWatcher zookeeper
protected final org.apache.hadoop.conf.Configuration conf
protected ZKReplicationStorageBase(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf)
protected static byte[] toByteArray(ReplicationProtos.ReplicationState.State state)
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.Copyright © 2007–2019 Cloudera. All rights reserved.