@InterfaceAudience.Private public class ZNodePaths extends Object
Modifier and Type | Field and Description |
---|---|
String |
backupMasterAddressesZNode |
String |
balancerZNode |
String |
baseZNode |
String |
clusterIdZNode |
String |
clusterStateZNode |
private static String |
DEFAULT_SNAPSHOT_CLEANUP_ZNODE |
String |
drainingZNode |
String |
hfileRefsZNode |
String |
masterAddressZNode |
String |
masterMaintZNode |
static String |
META_ZNODE_PREFIX |
static String |
META_ZNODE_PREFIX_CONF_KEY |
private org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<Integer,String> |
metaReplicaZNodes
znodes containing the locations of the servers hosting the meta replicas
|
private String |
metaZNodePrefix
The prefix of meta znode.
|
String |
namespaceZNode |
String |
peersZNode |
String |
queuesZNode |
String |
regionNormalizerZNode |
String |
replicationZNode |
String |
rsZNode |
(package private) String |
snapshotCleanupZNode |
String |
splitLogZNode |
String |
switchZNode |
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 |
getMetaReplicaIdFromPath(String path)
Parses the meta replicaId from the passed path.
|
int |
getMetaReplicaIdFromZnode(String znode)
Parse the meta replicaId from the passed znode
|
Collection<String> |
getMetaReplicaZNodes() |
String |
getZNodeForReplica(int replicaId) |
boolean |
isAnyMetaReplicaZNode(String node) |
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 |
isMetaZNodePrefix(String 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_CONF_KEY
public static final String META_ZNODE_PREFIX
private static final String DEFAULT_SNAPSHOT_CLEANUP_ZNODE
private final String metaZNodePrefix
private 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 namespaceZNode
public final String masterMaintZNode
public final String replicationZNode
public final String peersZNode
public final String queuesZNode
public final String hfileRefsZNode
final String snapshotCleanupZNode
public ZNodePaths(org.apache.hadoop.conf.Configuration conf)
public boolean isAnyMetaReplicaZNode(String node)
public Collection<String> getMetaReplicaZNodes()
public String getZNodeForReplica(int replicaId)
public int getMetaReplicaIdFromPath(String path)
path
- the name of the full path which includes baseZNode.public int getMetaReplicaIdFromZnode(String znode)
znode
- the name of the znode, does not include baseZNodepublic boolean isMetaZNodePrefix(String 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–2020 The Apache Software Foundation. All rights reserved.