public static class TestActiveMasterManager.DummyMaster extends java.lang.Object implements Server
| Constructor and Description |
|---|
DummyMaster(ZooKeeperWatcher zk,
ServerName master) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.lang.String msg,
java.lang.Throwable t)
Abort the server or client.
|
ActiveMasterManager |
getActiveMasterManager() |
ChoreService |
getChoreService() |
ClusterStatusTracker |
getClusterStatusTracker() |
Configuration |
getConfiguration()
Gets the configuration object for this server.
|
ClusterConnection |
getConnection()
Returns a reference to the servers' cluster connection.
|
CoordinatedStateManager |
getCoordinatedStateManager()
Get CoordinatedStateManager instance for this server.
|
MetaTableLocator |
getMetaTableLocator()
Returns instance of
MetaTableLocator
running inside this server. |
ServerName |
getServerName() |
ZooKeeperWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
boolean |
isAborted()
Check if the server or client was aborted.
|
boolean |
isStopped() |
void |
stop(java.lang.String why)
Stop this service.
|
public DummyMaster(ZooKeeperWatcher zk, ServerName master)
public void abort(java.lang.String msg,
java.lang.Throwable t)
Abortablepublic boolean isAborted()
Abortablepublic Configuration getConfiguration()
ServergetConfiguration in interface Serverpublic ZooKeeperWatcher getZooKeeper()
ServergetZooKeeper in interface Serverpublic CoordinatedStateManager getCoordinatedStateManager()
ServergetCoordinatedStateManager in interface Serverpublic ServerName getServerName()
getServerName in interface Serverpublic boolean isStopped()
isStopped in interface StoppableStoppable.stop(String) has been closed.public void stop(java.lang.String why)
Stoppablepublic ClusterConnection getConnection()
ServergetConnection in interface Serverpublic MetaTableLocator getMetaTableLocator()
ServerMetaTableLocator
running inside this server. This MetaServerLocator is started and stopped by server, clients
shouldn't manage it's lifecycle.getMetaTableLocator in interface ServerMetaTableLocator associated with this server.public ClusterStatusTracker getClusterStatusTracker()
public ActiveMasterManager getActiveMasterManager()
public ChoreService getChoreService()
getChoreService in interface ServerChoreService instance for this server