@InterfaceAudience.Private public interface ReplicationQueuesClient
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllPeersFromHFileRefsQueue()
Get list of all peers from hfile reference queue.
|
List<String> |
getAllQueues(String serverName)
Get a list of all queues for the specified region server.
|
int |
getHFileRefsNodeChangeVersion()
Get the change version number of replication hfile references node.
|
List<String> |
getListOfReplicators()
Get a list of all region servers that have outstanding replication queues.
|
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.
|
List<String> |
getReplicableHFiles(String peerId)
Get a list of all hfile references in the given peer.
|
void |
init()
Initialize the replication queue client interface.
|
void init() throws ReplicationException
ReplicationException
List<String> getListOfReplicators() throws KeeperException
KeeperException
- zookeeper exceptionList<String> getLogsInQueue(String serverName, String queueId) throws KeeperException
serverName
- the server name of the region server that owns the queuequeueId
- a String that identifies the queueKeeperException
- zookeeper exceptionList<String> getAllQueues(String serverName) throws KeeperException
serverName
- the server name of the region server that owns the set of queuesKeeperException
int getQueuesZNodeCversion() throws KeeperException
KeeperException
int getHFileRefsNodeChangeVersion() throws KeeperException
KeeperException
List<String> getAllPeersFromHFileRefsQueue() throws KeeperException
KeeperException
- zookeeper exceptionList<String> getReplicableHFiles(String peerId) throws KeeperException
peerId
- a String that identifies the peerKeeperException
- zookeeper exception