public class Master extends AccumuloServerContext implements LiveTServerSet.Listener, TableObserver, CurrentState
conn, inst| Constructor and Description |
|---|
Master(ServerConfigurationFactory config,
VolumeManager fs,
String hostname) |
getConnector, getSaslParams, getSecretManager, getServerConfigurationFactory, getServerSslParams, getThriftServerType, setSecretManagerconvertClientConfig, getClientSslParams, getClientTimeoutInMillis, getConfiguration, getCredentials, getInstance, rpcCreds, setCredentialspublic Master(ServerConfigurationFactory config, VolumeManager fs, String hostname) throws IOException
IOExceptionpublic MasterState getMasterState()
getMasterState in interface CurrentStatepublic boolean stillMaster()
public void mustBeOnline(String tableId) throws ThriftTableOperationException
ThriftTableOperationExceptionpublic LiveTServerSet.TServerConnection getConnection(TServerInstance server)
public MergeInfo getMergeInfo(org.apache.hadoop.io.Text tableId)
public void setMergeState(MergeInfo info, MergeState state) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void clearMergeState(org.apache.hadoop.io.Text tableId)
throws IOException,
org.apache.zookeeper.KeeperException,
InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic boolean hasCycled(long time)
public void clearMigrations(String tableId)
public void run()
throws IOException,
InterruptedException,
org.apache.zookeeper.KeeperException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic ZooLock getMasterLock()
public void update(LiveTServerSet current, Set<TServerInstance> deleted, Set<TServerInstance> added)
update in interface LiveTServerSet.Listenerpublic void stateChanged(String tableId, TableState state)
stateChanged in interface TableObserverpublic void initialize(Map<String,TableState> tableIdToStateMap)
initialize in interface TableObserverpublic void sessionExpired()
sessionExpired in interface TableObserverpublic Set<String> onlineTables()
onlineTables in interface CurrentStatepublic Set<TServerInstance> onlineTabletServers()
onlineTabletServers in interface CurrentStatepublic Collection<MergeInfo> merges()
merges in interface CurrentStatepublic void shutdownTServer(TServerInstance server)
public EventCoordinator getEventCoordinator()
public ServerConfigurationFactory getConfigurationFactory()
public VolumeManager getFileSystem()
public void assignedTablet(KeyExtent extent)
public void waitForBalance(TInfo tinfo)
public MasterMonitorInfo getMasterMonitorInfo()
public boolean delegationTokensAvailable()
public Set<KeyExtent> migrationsSnapshot()
migrationsSnapshot in interface CurrentStatepublic Set<TServerInstance> shutdownServers()
shutdownServers in interface CurrentStateCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.