Class MasterReplicationCoordinator
- java.lang.Object
-
- org.apache.accumulo.master.replication.MasterReplicationCoordinator
-
- All Implemented Interfaces:
ReplicationCoordinator.Iface
public class MasterReplicationCoordinator extends Object implements ReplicationCoordinator.Iface
Choose a tserver to service a replication task
-
-
Constructor Summary
Constructors Modifier Constructor Description MasterReplicationCoordinator(Master master)
protected
MasterReplicationCoordinator(Master master, ZooReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TServerInstance
getRandomTServer(Set<TServerInstance> tservers, int offset)
String
getServicerAddress(String remoteTableId, TCredentials creds)
-
-
-
Method Detail
-
getServicerAddress
public String getServicerAddress(String remoteTableId, TCredentials creds) throws ReplicationCoordinatorException, org.apache.thrift.TException
- Specified by:
getServicerAddress
in interfaceReplicationCoordinator.Iface
- Throws:
ReplicationCoordinatorException
org.apache.thrift.TException
-
getRandomTServer
protected TServerInstance getRandomTServer(Set<TServerInstance> tservers, int offset)
-
-