public class MockServer extends Object implements org.apache.hadoop.hbase.Server
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
aborted |
(package private) HBaseTestingUtility |
htu |
private static org.slf4j.Logger |
LOG |
(package private) static org.apache.hadoop.hbase.ServerName |
NAME |
(package private) boolean |
stopped |
(package private) org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zk |
Constructor and Description |
---|
MockServer() |
MockServer(HBaseTestingUtility htu) |
MockServer(HBaseTestingUtility htu,
boolean zkw) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e) |
org.apache.hadoop.hbase.client.Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.ChoreService |
getChoreService() |
org.apache.hadoop.hbase.client.ClusterConnection |
getClusterConnection() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.client.ClusterConnection |
getConnection() |
org.apache.hadoop.hbase.CoordinatedStateManager |
getCoordinatedStateManager() |
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
org.apache.hadoop.hbase.ServerName |
getServerName() |
org.apache.hadoop.hbase.zookeeper.ZKWatcher |
getZooKeeper() |
boolean |
isAborted() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
stop(String why) |
private static final org.slf4j.Logger LOG
static final org.apache.hadoop.hbase.ServerName NAME
boolean stopped
boolean aborted
final org.apache.hadoop.hbase.zookeeper.ZKWatcher zk
final HBaseTestingUtility htu
public MockServer() throws org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException
org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
public MockServer(HBaseTestingUtility htu) throws org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException
org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
public MockServer(HBaseTestingUtility htu, boolean zkw) throws org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException
htu
- Testing utility to usezkw
- If true, create a zkw.org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
public void abort(String why, Throwable e)
abort
in interface org.apache.hadoop.hbase.Abortable
public boolean isStopped()
isStopped
in interface org.apache.hadoop.hbase.Stoppable
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.zookeeper.ZKWatcher getZooKeeper()
getZooKeeper
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.client.ClusterConnection getConnection()
getConnection
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.ServerName getServerName()
getServerName
in interface org.apache.hadoop.hbase.Server
public boolean isAborted()
isAborted
in interface org.apache.hadoop.hbase.Abortable
public org.apache.hadoop.hbase.ChoreService getChoreService()
getChoreService
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.client.ClusterConnection getClusterConnection()
getClusterConnection
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem
in interface org.apache.hadoop.hbase.Server
public boolean isStopping()
isStopping
in interface org.apache.hadoop.hbase.Server
public org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection
in interface org.apache.hadoop.hbase.Server
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.