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
- Direct Known Subclasses:
RegionProcedureStorePerformanceEvaluation.DummyServer
,TestActiveMasterManager.DummyMaster
,TestHFileCleaner.DummyServer
,TestHFileLinkCleaner.DummyServer
,TestLogsCleaner.DummyServer
,TestReplicationHFileCleaner.DummyServer
,TestSplitLogWorker.DummyServer
Basic mock Server for handler tests.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.hadoop.hbase.client.Connection
createConnection
(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.hbase.client.AsyncClusterConnection
org.apache.hadoop.hbase.ChoreService
org.apache.hadoop.conf.Configuration
org.apache.hadoop.hbase.client.Connection
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
Methods inherited from interface org.apache.hadoop.hbase.Server
getAsyncConnection
-
Field Details
-
LOG
-
NAME
-
stopped
-
aborted
-
-
Constructor Details
-
MockServer
public MockServer()
-
-
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
-
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
-
getAsyncClusterConnection
- Specified by:
getAsyncClusterConnection
in interfaceorg.apache.hadoop.hbase.Server
-