Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
ZKDump() |
Modifier and Type | Method and Description |
---|---|
private static void |
appendHFileRefsZNodes(ZKWatcher zkw,
String hFileRefsZNode,
StringBuilder sb) |
private static void |
appendPeerState(ZKWatcher zkw,
String znodeToProcess,
StringBuilder sb) |
private static void |
appendPeersZnodes(ZKWatcher zkw,
String peersZnode,
StringBuilder sb) |
private static void |
appendRSZnodes(ZKWatcher zkw,
String znode,
StringBuilder sb) |
static String |
dump(ZKWatcher zkWatcher) |
static String |
getReplicationZnodesDump(ZKWatcher zkw)
Returns a string with replication znodes and position of the replication log
|
private static void |
getReplicationZnodesDump(ZKWatcher zkw,
StringBuilder sb)
Appends replication znodes to the passed StringBuilder.
|
private static String[] |
getServerStats(String server,
int timeout)
Gets the statistics from the given server.
|
private static final org.slf4j.Logger LOG
private ZKDump()
private static void getReplicationZnodesDump(ZKWatcher zkw, StringBuilder sb) throws org.apache.zookeeper.KeeperException
zkw
- reference to the ZKWatcher
which also contains configuration and operationsb
- the StringBuilder
to append toorg.apache.zookeeper.KeeperException
- if a ZooKeeper operation failsprivate static void appendHFileRefsZNodes(ZKWatcher zkw, String hFileRefsZNode, StringBuilder sb) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
public static String getReplicationZnodesDump(ZKWatcher zkw) throws org.apache.zookeeper.KeeperException
zkw
- reference to the ZKWatcher
which also contains configuration and operationorg.apache.zookeeper.KeeperException
private static void appendRSZnodes(ZKWatcher zkw, String znode, StringBuilder sb) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
private static void appendPeersZnodes(ZKWatcher zkw, String peersZnode, StringBuilder sb) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
private static void appendPeerState(ZKWatcher zkw, String znodeToProcess, StringBuilder sb) throws org.apache.zookeeper.KeeperException, org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
org.apache.zookeeper.KeeperException
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
private static String[] getServerStats(String server, int timeout) throws IOException
server
- The server to get the statistics from.timeout
- The socket timeout to use.IOException
- When the socket communication fails.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.