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 protected
MasterClientServiceHandler(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 tableIdStr) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
initiateFlush
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
waitForFlush
public void waitForFlush(TInfo tinfo, TCredentials c, String tableIdStr, ByteBuffer startRowBB, ByteBuffer endRowBB, long flushID, long maxLoops) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
waitForFlush
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
getMasterStats
public MasterMonitorInfo getMasterStats(TInfo info, TCredentials credentials)
- Specified by:
getMasterStats
in interfaceMasterClientService.Iface
-
removeTableProperty
public void removeTableProperty(TInfo info, TCredentials credentials, String tableName, String property) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
removeTableProperty
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
setTableProperty
public void setTableProperty(TInfo info, TCredentials credentials, String tableName, String property, String value) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
setTableProperty
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
shutdown
public void shutdown(TInfo info, TCredentials c, boolean stopTabletServers) throws ThriftSecurityException
- Specified by:
shutdown
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
-
shutdownTabletServer
public void shutdownTabletServer(TInfo info, TCredentials c, String tabletServer, boolean force) throws ThriftSecurityException
- Specified by:
shutdownTabletServer
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
-
reportSplitExtent
public void reportSplitExtent(TInfo info, TCredentials credentials, String serverName, TabletSplit split)
- Specified by:
reportSplitExtent
in interfaceMasterClientService.Iface
-
reportTabletStatus
public void reportTabletStatus(TInfo info, TCredentials credentials, String serverName, TabletLoadState status, TKeyExtent ttablet)
- Specified by:
reportTabletStatus
in interfaceMasterClientService.Iface
-
setMasterGoalState
public void setMasterGoalState(TInfo info, TCredentials c, MasterGoalState state) throws ThriftSecurityException
- Specified by:
setMasterGoalState
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
-
removeSystemProperty
public void removeSystemProperty(TInfo info, TCredentials c, String property) throws ThriftSecurityException
- Specified by:
removeSystemProperty
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
-
setSystemProperty
public void setSystemProperty(TInfo info, TCredentials c, String property, String value) throws ThriftSecurityException, org.apache.thrift.TException
- Specified by:
setSystemProperty
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
org.apache.thrift.TException
-
setNamespaceProperty
public void setNamespaceProperty(TInfo tinfo, TCredentials credentials, String ns, String property, String value) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
setNamespaceProperty
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
removeNamespaceProperty
public void removeNamespaceProperty(TInfo tinfo, TCredentials credentials, String ns, String property) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
removeNamespaceProperty
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
waitForBalance
public void waitForBalance(TInfo tinfo)
- Specified by:
waitForBalance
in interfaceMasterClientService.Iface
-
getActiveTservers
public List<String> getActiveTservers(TInfo tinfo, TCredentials credentials)
- Specified by:
getActiveTservers
in interfaceMasterClientService.Iface
-
getDelegationToken
public TDelegationToken getDelegationToken(TInfo tinfo, TCredentials credentials, TDelegationTokenConfig tConfig) throws ThriftSecurityException, org.apache.thrift.TException
- Specified by:
getDelegationToken
in interfaceMasterClientService.Iface
- Throws:
ThriftSecurityException
org.apache.thrift.TException
-
drainReplicationTable
public boolean drainReplicationTable(TInfo tfino, TCredentials credentials, String tableName, Set<String> logsToWatch) throws org.apache.thrift.TException
- Specified by:
drainReplicationTable
in interfaceMasterClientService.Iface
- Throws:
org.apache.thrift.TException
-
getTableId
protected TableId getTableId(ClientContext context, 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:
beginFateOperation
in 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:
executeFateOperation
in interfaceFateService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
waitForFateOperation
public String waitForFateOperation(TInfo tinfo, TCredentials credentials, long opid) throws ThriftSecurityException, ThriftTableOperationException
- Specified by:
waitForFateOperation
in interfaceFateService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
-
finishFateOperation
public void finishFateOperation(TInfo tinfo, TCredentials credentials, long opid) throws ThriftSecurityException
- Specified by:
finishFateOperation
in interfaceFateService.Iface
- Throws:
ThriftSecurityException
-
authenticate
protected void authenticate(TCredentials credentials) throws ThriftSecurityException
- Throws:
ThriftSecurityException
-
-