@InterfaceAudience.Private public class ReplicationQueuesClientZKImpl extends ReplicationStateZKBase implements ReplicationQueuesClient
abortable, conf, DISABLED_ZNODE_BYTES, ENABLED_ZNODE_BYTES, ourClusterKey, peerStateNodeName, peersZNode, queuesZNode, replicationZNode, zookeeper| 构造器和说明 |
|---|
ReplicationQueuesClientZKImpl(ZooKeeperWatcher zk,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
getAllQueues(String serverName)
Get a list of all queues for the specified region server.
|
List<String> |
getLogsInQueue(String serverName,
String queueId)
Get a list of all WALs in the given queue on the given region server.
|
int |
getQueuesZNodeCversion()
Get the cversion of replication rs node.
|
void |
init()
Initialize the replication queue client interface.
|
getListOfReplicators, isPeerPath, peerExists, toByteArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListOfReplicatorspublic ReplicationQueuesClientZKImpl(ZooKeeperWatcher zk, org.apache.hadoop.conf.Configuration conf, Abortable abortable)
public void init()
throws ReplicationException
ReplicationQueuesClientinit 在接口中 ReplicationQueuesClientReplicationExceptionpublic List<String> getLogsInQueue(String serverName, String queueId) throws org.apache.zookeeper.KeeperException
ReplicationQueuesClientgetLogsInQueue 在接口中 ReplicationQueuesClientserverName - the server name of the region server that owns the queuequeueId - a String that identifies the queueorg.apache.zookeeper.KeeperException - zookeeper exceptionpublic List<String> getAllQueues(String serverName) throws org.apache.zookeeper.KeeperException
ReplicationQueuesClientgetAllQueues 在接口中 ReplicationQueuesClientserverName - the server name of the region server that owns the set of queuesorg.apache.zookeeper.KeeperExceptionpublic int getQueuesZNodeCversion()
throws org.apache.zookeeper.KeeperException
ReplicationQueuesClientgetQueuesZNodeCversion 在接口中 ReplicationQueuesClientorg.apache.zookeeper.KeeperExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.