@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 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
|
String |
getRsPath(ServerName sn) |
String |
getZNodeForReplica(int replicaId)
Returns the znode string corresponding to a replicaId
|
boolean |
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 location
|
boolean |
isMetaZNodePrefix(String znode)
Returns True if meta 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
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 String getZNodeForReplica(int replicaId)
public int getMetaReplicaIdFromPath(String path)
path
- the name of the full path which includes baseZNode. npublic int getMetaReplicaIdFromZNode(String znode)
znode
- the name of the znode, does not include baseZNode npublic boolean isMetaZNodePrefix(String znode)
public boolean isMetaZNodePath(String path)
public boolean isClientReadable(String path)
public String getRsPath(ServerName sn)
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.