Class ZNodePaths
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZNodePaths
Class that hold all the paths of znode for HBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal StringDeprecated.Since 2.6.0, will be removed in 4.0.0.final Stringfinal Stringfinal Stringprivate static final Stringfinal Stringfinal Stringfinal Stringfinal Stringstatic final Stringstatic final Stringprivate final StringThe prefix of meta znode.final Stringfinal Stringfinal Stringfinal StringDeprecated.Since 2.6.0, will be removed in 4.0.0.final Stringfinal Stringfinal StringDeprecated.Since 2.6.0, will be removed in 4.0.0.final Stringfinal StringDeprecated.Since 2.6.0, will be removed in 4.0.0.final StringDeprecated.static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintParses the meta replicaId from the passed path.intgetMetaReplicaIdFromZNode(String znode) Parse the meta replicaId from the passed znodegetRsPath(ServerName sn) getZNodeForReplica(int replicaId) Returns the znode string corresponding to a replicaIdbooleanisClientReadable(String path) Returns whether the path is supposed to be readable by the client and DOES NOT contain sensitive information (world readable).booleanisMetaZNodePath(String path) Returns True is the fully qualified path is for meta locationbooleanisMetaZNodePrefix(String znode) Returns True if meta znode.static StringJoin the prefix znode name with the suffix znode name to generate a proper full znode name.toString()
-
Field Details
-
ZNODE_PATH_SEPARATOR
- See Also:
-
META_ZNODE_PREFIX_CONF_KEY
- See Also:
-
META_ZNODE_PREFIX
- See Also:
-
DEFAULT_SNAPSHOT_CLEANUP_ZNODE
- See Also:
-
baseZNode
-
metaZNodePrefix
The prefix of meta znode. Does not include baseZNode. Its a 'prefix' because meta replica id integer can be tagged on the end (if no number present, it is 'default' replica). -
rsZNode
-
drainingZNode
-
masterAddressZNode
-
backupMasterAddressesZNode
-
clusterStateZNode
-
tableZNode
Deprecated. -
clusterIdZNode
-
splitLogZNode
-
balancerZNode
Deprecated.Since 2.6.0, will be removed in 4.0.0. We use master local region to store this state. -
regionNormalizerZNode
Deprecated.Since 2.6.0, will be removed in 4.0.0. We use master local region to store this state. -
switchZNode
Deprecated.Since 2.6.0, will be removed in 4.0.0. We use master local region to store this state. -
namespaceZNode
-
masterMaintZNode
-
replicationZNode
-
peersZNode
-
queuesZNode
-
hfileRefsZNode
-
snapshotCleanupZNode
Deprecated.Since 2.6.0, will be removed in 4.0.0. We use master local region to store this state.
-
-
Constructor Details
-
ZNodePaths
-
-
Method Details
-
toString
-
getZNodeForReplica
Returns the znode string corresponding to a replicaId -
getMetaReplicaIdFromPath
Parses the meta replicaId from the passed path.- Parameters:
path- the name of the full path which includes baseZNode.
-
getMetaReplicaIdFromZNode
Parse the meta replicaId from the passed znode- Parameters:
znode- the name of the znode, does not include baseZNode
-
isMetaZNodePrefix
Returns True if meta znode. -
isMetaZNodePath
Returns True is the fully qualified path is for meta location -
isClientReadable
Returns whether the path is supposed to be readable by the client and DOES NOT contain sensitive information (world readable). -
getRsPath
-
joinZNode
Join the prefix znode name with the suffix znode name to generate a proper full znode name.Assumes prefix does not end with slash and suffix does not begin with it.
- Parameters:
prefix- beginning of znode namesuffix- ending of znode name- Returns:
- result of properly joining prefix with suffix
-