public class MockServer
extends java.lang.Object
| Constructor and Description |
|---|
MockServer() |
MockServer(HBaseTestingUtility htu) |
MockServer(HBaseTestingUtility htu,
boolean zkw) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.lang.String why,
java.lang.Throwable e) |
ChoreService |
getChoreService() |
Configuration |
getConfiguration() |
ClusterConnection |
getConnection() |
CoordinatedStateManager |
getCoordinatedStateManager() |
MetaTableLocator |
getMetaTableLocator() |
ServerName |
getServerName() |
ZooKeeperWatcher |
getZooKeeper() |
boolean |
isAborted() |
boolean |
isStopped() |
void |
stop(java.lang.String why) |
public MockServer()
throws ZooKeeperConnectionException,
java.io.IOException
ZooKeeperConnectionExceptionjava.io.IOExceptionpublic MockServer(HBaseTestingUtility htu)
throws ZooKeeperConnectionException,
java.io.IOException
ZooKeeperConnectionExceptionjava.io.IOExceptionpublic MockServer(HBaseTestingUtility htu,
boolean zkw)
throws ZooKeeperConnectionException,
java.io.IOException
htu - Testing utility to usezkw - If true, create a zkw.ZooKeeperConnectionExceptionjava.io.IOExceptionpublic void abort(java.lang.String why,
java.lang.Throwable e)
public void stop(java.lang.String why)
public boolean isStopped()
public Configuration getConfiguration()
public ZooKeeperWatcher getZooKeeper()
public CoordinatedStateManager getCoordinatedStateManager()
public ClusterConnection getConnection()
public MetaTableLocator getMetaTableLocator()
public ServerName getServerName()
public boolean isAborted()
public ChoreService getChoreService()