org.apache.hadoop.hbase.replication
Class ReplicationQueuesClientZKImpl
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationStateZKBase
org.apache.hadoop.hbase.replication.ReplicationQueuesClientZKImpl
- All Implemented Interfaces:
- ReplicationQueuesClient
public class ReplicationQueuesClientZKImpl
- extends ReplicationStateZKBase
- implements ReplicationQueuesClient
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationQueuesClientZKImpl
public ReplicationQueuesClientZKImpl(ZooKeeperWatcher zk,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable)
init
public void init()
throws ReplicationException
- Description copied from interface:
ReplicationQueuesClient
- Initialize the replication queue client interface.
- Specified by:
init
in interface ReplicationQueuesClient
- Throws:
ReplicationException
getLogsInQueue
public List<String> getLogsInQueue(String serverName,
String queueId)
- Description copied from interface:
ReplicationQueuesClient
- Get a list of all HLogs in the given queue on the given region server.
- Specified by:
getLogsInQueue
in interface ReplicationQueuesClient
- Parameters:
serverName
- the server name of the region server that owns the queuequeueId
- a String that identifies the queue
- Returns:
- a list of HLogs, null if this region server is dead and has no outstanding queues
getAllQueues
public List<String> getAllQueues(String serverName)
- Description copied from interface:
ReplicationQueuesClient
- Get a list of all queues for the specified region server.
- Specified by:
getAllQueues
in interface ReplicationQueuesClient
- Parameters:
serverName
- the server name of the region server that owns the set of queues
- Returns:
- a list of queueIds, null if this region server is not a replicator.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.