Package org.apache.accumulo.master
Class MasterClientServiceHandler
- java.lang.Object
-
- org.apache.accumulo.master.MasterClientServiceHandler
-
- All Implemented Interfaces:
FateService.Iface,MasterClientService.Iface
public class MasterClientServiceHandler extends Object implements MasterClientService.Iface
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMasterClientServiceHandler(Master master)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.master.thrift.FateService.Iface
beginFateOperation, executeFateOperation, finishFateOperation, waitForFateOperation
-
-
-
-
Field Detail
-
master
protected final Master master
-
-
Constructor Detail
-
MasterClientServiceHandler
protected MasterClientServiceHandler(Master master)
-
-
Method Detail
-
initiateFlush
public long initiateFlush(TInfo tinfo, TCredentials c, String tableId) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
initiateFlushin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
waitForFlush
public void waitForFlush(TInfo tinfo, TCredentials c, String tableId, ByteBuffer startRow, ByteBuffer endRow, long flushID, long maxLoops) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
waitForFlushin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
getMasterStats
public MasterMonitorInfo getMasterStats(TInfo info, TCredentials credentials) throws ThriftSecurityException
- Specified by:
getMasterStatsin interfaceMasterClientService.Iface- Throws:
ThriftSecurityException
-
removeTableProperty
public void removeTableProperty(TInfo info, TCredentials credentials, String tableName, String property) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
removeTablePropertyin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
setTableProperty
public void setTableProperty(TInfo info, TCredentials credentials, String tableName, String property, String value) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
setTablePropertyin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
shutdown
public void shutdown(TInfo info, TCredentials c, boolean stopTabletServers) throws ThriftSecurityException
- Specified by:
shutdownin interfaceMasterClientService.Iface- Throws:
ThriftSecurityException
-
shutdownTabletServer
public void shutdownTabletServer(TInfo info, TCredentials c, String tabletServer, boolean force) throws ThriftSecurityException
- Specified by:
shutdownTabletServerin interfaceMasterClientService.Iface- Throws:
ThriftSecurityException
-
reportSplitExtent
public void reportSplitExtent(TInfo info, TCredentials credentials, String serverName, TabletSplit split)
- Specified by:
reportSplitExtentin interfaceMasterClientService.Iface
-
reportTabletStatus
public void reportTabletStatus(TInfo info, TCredentials credentials, String serverName, TabletLoadState status, TKeyExtent ttablet)
- Specified by:
reportTabletStatusin interfaceMasterClientService.Iface
-
setMasterGoalState
public void setMasterGoalState(TInfo info, TCredentials c, MasterGoalState state) throws ThriftSecurityException
- Specified by:
setMasterGoalStatein interfaceMasterClientService.Iface- Throws:
ThriftSecurityException
-
removeSystemProperty
public void removeSystemProperty(TInfo info, TCredentials c, String property) throws ThriftSecurityException
- Specified by:
removeSystemPropertyin interfaceMasterClientService.Iface- Throws:
ThriftSecurityException
-
setSystemProperty
public void setSystemProperty(TInfo info, TCredentials c, String property, String value) throws ThriftSecurityException, org.apache.thrift.TException
- Specified by:
setSystemPropertyin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionorg.apache.thrift.TException
-
setNamespaceProperty
public void setNamespaceProperty(TInfo tinfo, TCredentials credentials, String ns, String property, String value) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
setNamespacePropertyin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
removeNamespaceProperty
public void removeNamespaceProperty(TInfo tinfo, TCredentials credentials, String ns, String property) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
removeNamespacePropertyin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
waitForBalance
public void waitForBalance(TInfo tinfo) throws org.apache.thrift.TException
- Specified by:
waitForBalancein interfaceMasterClientService.Iface- Throws:
org.apache.thrift.TException
-
getActiveTservers
public List<String> getActiveTservers(TInfo tinfo, TCredentials credentials) throws org.apache.thrift.TException
- Specified by:
getActiveTserversin interfaceMasterClientService.Iface- Throws:
org.apache.thrift.TException
-
getDelegationToken
public TDelegationToken getDelegationToken(TInfo tinfo, TCredentials credentials, TDelegationTokenConfig tConfig) throws ThriftSecurityException, org.apache.thrift.TException
- Specified by:
getDelegationTokenin interfaceMasterClientService.Iface- Throws:
ThriftSecurityExceptionorg.apache.thrift.TException
-
drainReplicationTable
public boolean drainReplicationTable(TInfo tfino, TCredentials credentials, String tableName, Set<String> logsToWatch) throws org.apache.thrift.TException
- Specified by:
drainReplicationTablein interfaceMasterClientService.Iface- Throws:
org.apache.thrift.TException
-
getTableId
protected String getTableId(Instance instance, String tableName) throws ThriftTableOperationException
- Throws:
ThriftTableOperationException
-
allReferencesReplicated
protected boolean allReferencesReplicated(BatchScanner bs, org.apache.hadoop.io.Text tableId, Set<String> relevantLogs)
- Returns:
- return true records are only in place which are fully replicated
-
beginFateOperation
public long beginFateOperation(TInfo tinfo, TCredentials credentials) throws ThriftSecurityException
- Specified by:
beginFateOperationin interfaceFateService.Iface- Throws:
ThriftSecurityException
-
executeFateOperation
public void executeFateOperation(TInfo tinfo, TCredentials c, long opid, FateOperation op, List<ByteBuffer> arguments, Map<String,String> options, boolean autoCleanup) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
executeFateOperationin interfaceFateService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
waitForFateOperation
public String waitForFateOperation(TInfo tinfo, TCredentials credentials, long opid) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
waitForFateOperationin interfaceFateService.Iface- Throws:
ThriftSecurityExceptionThriftTableOperationException
-
finishFateOperation
public void finishFateOperation(TInfo tinfo, TCredentials credentials, long opid) throws ThriftSecurityException
- Specified by:
finishFateOperationin interfaceFateService.Iface- Throws:
ThriftSecurityException
-
authenticate
protected void authenticate(TCredentials credentials) throws ThriftSecurityException
- Throws:
ThriftSecurityException
-
-