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 TheChoreServiceinstance for this serverReturns a reference to the servers' cluster connection.org.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.
-
Field Details
-
hostname
-
zkw
-
-
Constructor Details
-
DummyServer
DummyServer(ZKWatcher zkw) -
DummyServer
DummyServer(String hostname)
-
-
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
-
getClusterConnection
Description copied from interface:ServerReturns a reference to the servers' cluster connection. PreferServer.getConnection(). 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:
getClusterConnectionin 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
-