Class ZNodePaths
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZNodePaths
Class that hold all the paths of znode for HBase.
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
final String
Deprecated.Since 2.6.0, will be removed in 4.0.0.final String
final String
final String
private static final String
final String
final String
final String
final String
static final String
static final String
private final String
The prefix of meta znode.final String
final String
final String
final String
Deprecated.Since 2.6.0, will be removed in 4.0.0.final String
final String
final String
Deprecated.Since 2.6.0, will be removed in 4.0.0.final String
final String
Deprecated.Since 2.6.0, will be removed in 4.0.0.final String
Deprecated.static final char
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Parses the meta replicaId from the passed path.int
getMetaReplicaIdFromZNode
(String znode) Parse the meta replicaId from the passed znodegetRsPath
(ServerName sn) getZNodeForReplica
(int replicaId) Returns the znode string corresponding to a replicaIdboolean
isClientReadable
(String path) Returns whether the path is supposed to be readable by the client and DOES NOT contain sensitive information (world readable).boolean
isMetaZNodePath
(String path) Returns True is the fully qualified path is for meta locationboolean
isMetaZNodePrefix
(String znode) Returns True if meta znode.static String
Join 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
-