@InterfaceAudience.Private public class ZNodePaths extends Object
Modifier and Type | Field and Description |
---|---|
String |
backupMasterAddressesZNode |
String |
balancerZNode |
String |
baseZNode |
String |
clusterIdZNode |
String |
clusterStateZNode |
String |
drainingZNode |
String |
hfileRefsZNode |
String |
masterAddressZNode |
String |
masterMaintZNode |
static String |
META_ZNODE_PREFIX |
org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<Integer,String> |
metaReplicaZNodes |
String |
metaZNodePrefix |
String |
namespaceZNode |
String |
peersZNode |
String |
queuesZNode |
String |
regionNormalizerZNode |
String |
replicationZNode |
String |
rsZNode |
String |
splitLogZNode |
String |
switchZNode |
String |
tableLockZNode |
String |
tableZNode
Deprecated.
|
static char |
ZNODE_PATH_SEPARATOR |
Constructor and Description |
---|
ZNodePaths(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
int |
getMetaReplicaIdFromZnode(String znode)
Parse the meta replicaId from the passed znode
|
String |
getZNodeForReplica(int replicaId)
Get the znode string corresponding to a replicaId
|
boolean |
isAnyMetaReplicaZNode(String node)
Is the znode of any meta replica
|
boolean |
isClientReadable(String node)
Returns whether the znode is supposed to be readable by the client and DOES NOT contain
sensitive information (world readable).
|
boolean |
isDefaultMetaReplicaZnode(String znode)
Is it the default meta replica's znode
|
static String |
joinZNode(String prefix,
String suffix)
Join the prefix znode name with the suffix znode name to generate a proper full znode name.
|
String |
toString() |
public static final char ZNODE_PATH_SEPARATOR
public static final String META_ZNODE_PREFIX
public final String metaZNodePrefix
public final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<Integer,String> metaReplicaZNodes
public final String drainingZNode
public final String masterAddressZNode
public final String backupMasterAddressesZNode
public final String clusterStateZNode
@Deprecated public final String tableZNode
public final String clusterIdZNode
public final String splitLogZNode
public final String balancerZNode
public final String regionNormalizerZNode
public final String switchZNode
public final String tableLockZNode
public final String namespaceZNode
public final String masterMaintZNode
public final String replicationZNode
public final String peersZNode
public final String queuesZNode
public final String hfileRefsZNode
public ZNodePaths(org.apache.hadoop.conf.Configuration conf)
public boolean isAnyMetaReplicaZNode(String node)
node
- public String getZNodeForReplica(int replicaId)
replicaId
- public int getMetaReplicaIdFromZnode(String znode)
znode
- public boolean isDefaultMetaReplicaZnode(String znode)
znode
- public boolean isClientReadable(String node)
public static String joinZNode(String prefix, String suffix)
Assumes prefix does not end with slash and suffix does not begin with it.
prefix
- beginning of znode namesuffix
- ending of znode nameCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.