Constructor and Description |
---|
MockServer() |
MockServer(HBaseTestingUtility htu) |
MockServer(HBaseTestingUtility htu,
boolean zkw) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e)
Abort the server or client.
|
ChoreService |
getChoreService() |
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(String why)
Stop this service.
|
public MockServer() throws ZooKeeperConnectionException, IOException
public MockServer(HBaseTestingUtility htu) throws ZooKeeperConnectionException, IOException
public MockServer(HBaseTestingUtility htu, boolean zkw) throws ZooKeeperConnectionException, IOException
htu
- Testing utility to usezkw
- If true, create a zkw.ZooKeeperConnectionException
IOException
public void abort(String why, Throwable e)
Abortable
public boolean isStopped()
isStopped
in interface Stoppable
Stoppable.stop(String)
has been closed.public Configuration getConfiguration()
Server
getConfiguration
in interface Server
public ZooKeeperWatcher getZooKeeper()
Server
getZooKeeper
in interface Server
public CoordinatedStateManager getCoordinatedStateManager()
Server
getCoordinatedStateManager
in interface Server
public ClusterConnection getConnection()
Server
getConnection
in interface Server
public MetaTableLocator getMetaTableLocator()
Server
MetaTableLocator
running inside this server. This MetaServerLocator is started and stopped by server, clients
shouldn't manage it's lifecycle.getMetaTableLocator
in interface Server
MetaTableLocator
associated with this server.public ServerName getServerName()
getServerName
in interface Server
public boolean isAborted()
Abortable
public ChoreService getChoreService()
getChoreService
in interface Server
ChoreService
instance for this server