Class ReplicationSyncUp.DummyServer
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.ReplicationSyncUp.DummyServer
- Enclosing class:
- ReplicationSyncUp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAbort the server or client.createConnection(org.apache.hadoop.conf.Configuration conf) Returns a reference to the servers' async cluster connection.Returns TheChoreServiceinstance for this serverorg.apache.hadoop.conf.ConfigurationGets the configuration object for this server.Returns a reference to the servers' connection.Get CoordinatedStateManager instance for this server.org.apache.hadoop.fs.FileSystemReturns Return the FileSystem object used (can return null!).Returns The unique server name for this server.Gets the ZooKeeper instance for this server.booleanCheck if the server or client was aborted.booleanReturns True ifStoppable.stop(String)has been closed.booleanReturns True is the server is StoppingvoidStop this service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Server
getAsyncConnection
-
Field Details
-
conf
-
hostname
-
zkw
-
abort
-
-
Constructor Details
-
DummyServer
DummyServer(org.apache.hadoop.conf.Configuration conf, ZKWatcher zkw)
-
-
Method Details
-
getConfiguration
Description copied from interface:ServerGets the configuration object for this server.- Specified by:
getConfigurationin interfaceServer
-
getZooKeeper
Description copied from interface:ServerGets the ZooKeeper instance for this server.- Specified by:
getZooKeeperin interfaceServer
-
getCoordinatedStateManager
Description copied from interface:ServerGet CoordinatedStateManager instance for this server.- Specified by:
getCoordinatedStateManagerin interfaceServer
-
getServerName
Description copied from interface:ServerReturns The unique server name for this server.- Specified by:
getServerNamein interfaceServer
-
abort
Description copied from interface:AbortableAbort the server or client. -
isAborted
Description copied from interface:AbortableCheck if the server or client was aborted. -
stop
Description copied from interface:StoppableStop this service. Implementers should favor logging errors over throwing RuntimeExceptions. -
isStopped
Description copied from interface:StoppableReturns True ifStoppable.stop(String)has been closed. -
getConnection
Description copied from interface:ServerReturns a reference to the servers' connection. Important note: this method returns a reference to Connection which is managed by Server itself, so callers must NOT attempt to close connection obtained.- Specified by:
getConnectionin interfaceServer
-
getChoreService
Description copied from interface:ServerReturns TheChoreServiceinstance for this server- Specified by:
getChoreServicein interfaceServer
-
getFileSystem
Description copied from interface:ServerReturns Return the FileSystem object used (can return null!).- Specified by:
getFileSystemin interfaceServer
-
isStopping
Description copied from interface:ServerReturns True is the server is Stopping- Specified by:
isStoppingin interfaceServer
-
createConnection
- Specified by:
createConnectionin interfaceServer- Throws:
IOException
-
getAsyncClusterConnection
Description copied from interface:ServerReturns a reference to the servers' async cluster connection. Important note: this method returns a reference to Connection which is managed by Server itself, so callers must NOT attempt to close connection obtained.- Specified by:
getAsyncClusterConnectionin interfaceServer
-