public class Master extends Object implements LiveTServerSet.Listener, TableObserver, CurrentState
public boolean stillMaster()
public void mustBeOnline(String tableId) throws ThriftTableOperationException
ThriftTableOperationExceptionpublic Connector getConnector() throws AccumuloException, AccumuloSecurityException
public 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 Instance getInstance()
public AccumuloConfiguration getSystemConfiguration()
public ServerConfiguration getConfiguration()
public VolumeManager getFileSystem()
public void assignedTablet(KeyExtent extent)
Copyright © 2014 Apache Accumulo Project. All rights reserved.