@InterfaceAudience.Private public interface ReplicationQueues
Modifier and Type | Method and Description |
---|---|
void |
addLog(String queueId,
String filename)
Add a new WAL file to the given queue.
|
SortedMap<String,SortedSet<String>> |
claimQueues(String regionserver)
Take ownership for the set of queues belonging to a dead region server.
|
List<String> |
getAllQueues()
Get a list of all queues for this region server.
|
List<String> |
getListOfReplicators()
Get a list of all region servers that have outstanding replication queues.
|
long |
getLogPosition(String queueId,
String filename)
Get the current position for a specific WAL in a given queue.
|
List<String> |
getLogsInQueue(String queueId)
Get a list of all WALs in the given queue.
|
void |
init(String serverName)
Initialize the region server replication queue interface.
|
boolean |
isThisOurZnode(String znode)
Checks if the provided znode is the same as this region server's
|
void |
removeAllQueues()
Remove all replication queues for this region server.
|
void |
removeLog(String queueId,
String filename)
Remove an WAL file from the given queue.
|
void |
removeQueue(String queueId)
Remove a replication queue.
|
void |
setLogPosition(String queueId,
String filename,
long position)
Set the current position for a specific WAL in a given queue.
|
void init(String serverName) throws ReplicationException
serverName
- The server name of the region server that owns the replication queues this
interface manages.ReplicationException
void removeQueue(String queueId)
queueId
- a String that identifies the queue.void addLog(String queueId, String filename) throws ReplicationException
queueId
- a String that identifies the queue.filename
- name of the WALReplicationException
void removeLog(String queueId, String filename)
queueId
- a String that identifies the queue.filename
- name of the WALvoid setLogPosition(String queueId, String filename, long position)
queueId
- a String that identifies the queuefilename
- name of the WALposition
- the current position in the filelong getLogPosition(String queueId, String filename) throws ReplicationException
queueId
- a String that identifies the queuefilename
- name of the WALReplicationException
void removeAllQueues()
List<String> getLogsInQueue(String queueId)
queueId
- a String that identifies the queueList<String> getAllQueues()
SortedMap<String,SortedSet<String>> claimQueues(String regionserver)
regionserver
- the id of the dead region serverList<String> getListOfReplicators()
boolean isThisOurZnode(String znode)
znode
- to checkCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.