Package org.apache.hadoop.hbase.util
Class MockServer
java.lang.Object
org.apache.hadoop.hbase.util.MockServer
- All Implemented Interfaces:
org.apache.hadoop.hbase.Abortable
,org.apache.hadoop.hbase.Server
,org.apache.hadoop.hbase.Stoppable
Basic mock Server for handler tests.
-
Field Summary
Modifier and TypeFieldDescription(package private) boolean
(package private) final HBaseTestingUtility
private static final org.slf4j.Logger
(package private) static final org.apache.hadoop.hbase.ServerName
(package private) boolean
(package private) final org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.hadoop.hbase.client.Connection
createConnection
(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.hbase.ChoreService
org.apache.hadoop.hbase.client.ClusterConnection
org.apache.hadoop.conf.Configuration
org.apache.hadoop.hbase.client.ClusterConnection
org.apache.hadoop.hbase.CoordinatedStateManager
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.hbase.ServerName
org.apache.hadoop.hbase.zookeeper.ZKWatcher
boolean
boolean
boolean
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.Abortable
abort
-
Field Details
-
Constructor Details
-
MockServer
- Throws:
org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
-
MockServer
public MockServer(HBaseTestingUtility htu) throws org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException - Throws:
org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
-
MockServer
public MockServer(HBaseTestingUtility htu, boolean zkw) throws org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException - Parameters:
htu
- Testing utility to usezkw
- If true, create a zkw.- Throws:
org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
-
-
Method Details
-
abort
- Specified by:
abort
in interfaceorg.apache.hadoop.hbase.Abortable
-
stop
- Specified by:
stop
in interfaceorg.apache.hadoop.hbase.Stoppable
-
isStopped
- Specified by:
isStopped
in interfaceorg.apache.hadoop.hbase.Stoppable
-
getConfiguration
- Specified by:
getConfiguration
in interfaceorg.apache.hadoop.hbase.Server
-
getZooKeeper
- Specified by:
getZooKeeper
in interfaceorg.apache.hadoop.hbase.Server
-
getCoordinatedStateManager
- Specified by:
getCoordinatedStateManager
in interfaceorg.apache.hadoop.hbase.Server
-
getConnection
- Specified by:
getConnection
in interfaceorg.apache.hadoop.hbase.Server
-
getServerName
- Specified by:
getServerName
in interfaceorg.apache.hadoop.hbase.Server
-
isAborted
- Specified by:
isAborted
in interfaceorg.apache.hadoop.hbase.Abortable
-
getChoreService
- Specified by:
getChoreService
in interfaceorg.apache.hadoop.hbase.Server
-
getClusterConnection
- Specified by:
getClusterConnection
in interfaceorg.apache.hadoop.hbase.Server
-
getFileSystem
- Specified by:
getFileSystem
in interfaceorg.apache.hadoop.hbase.Server
-
isStopping
- Specified by:
isStopping
in interfaceorg.apache.hadoop.hbase.Server
-
createConnection
public org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException - Specified by:
createConnection
in interfaceorg.apache.hadoop.hbase.Server
- Throws:
IOException
-