| Constructor and Description |
|---|
MockServer() |
MockServer(HBaseTestingUtility htu) |
MockServer(HBaseTestingUtility htu,
boolean zkw) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String why,
Throwable e) |
Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
ChoreService |
getChoreService() |
ClusterConnection |
getClusterConnection() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
ClusterConnection |
getConnection() |
CoordinatedStateManager |
getCoordinatedStateManager() |
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
MetaTableLocator |
getMetaTableLocator() |
ServerName |
getServerName() |
ZKWatcher |
getZooKeeper() |
boolean |
isAborted() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
stop(String why) |
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.ZooKeeperConnectionExceptionIOExceptionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Serverpublic ZKWatcher getZooKeeper()
getZooKeeper in interface Serverpublic CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager in interface Serverpublic ClusterConnection getConnection()
getConnection in interface Serverpublic MetaTableLocator getMetaTableLocator()
getMetaTableLocator in interface Serverpublic ServerName getServerName()
getServerName in interface Serverpublic ChoreService getChoreService()
getChoreService in interface Serverpublic ClusterConnection getClusterConnection()
getClusterConnection in interface Serverpublic org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem in interface Serverpublic boolean isStopping()
isStopping in interface Serverpublic Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection in interface ServerIOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.