Class ReplicationSyncUp.DummyServer
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.ReplicationSyncUp.DummyServer
- Enclosing class:
- ReplicationSyncUp
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Abort the server or client.createConnection
(org.apache.hadoop.conf.Configuration conf) Returns TheChoreService
instance for this serverReturns a reference to the servers' cluster connection.org.apache.hadoop.conf.Configuration
Gets the configuration object for this server.Returns a reference to the servers' connection.Get CoordinatedStateManager instance for this server.org.apache.hadoop.fs.FileSystem
Returns Return the FileSystem object used (can return null!).Returns The unique server name for this server.Gets the ZooKeeper instance for this server.boolean
Check if the server or client was aborted.boolean
Returns True ifStoppable.stop(String)
has been closed.boolean
Returns True is the server is Stoppingvoid
Stop this service.
-
Field Details
-
hostname
-
zkw
-
-
Constructor Details
-
DummyServer
DummyServer(ZKWatcher zkw) -
DummyServer
DummyServer(String hostname)
-
-
Method Details
-
getConfiguration
Description copied from interface:Server
Gets the configuration object for this server.- Specified by:
getConfiguration
in interfaceServer
-
getZooKeeper
Description copied from interface:Server
Gets the ZooKeeper instance for this server.- Specified by:
getZooKeeper
in interfaceServer
-
getCoordinatedStateManager
Description copied from interface:Server
Get CoordinatedStateManager instance for this server.- Specified by:
getCoordinatedStateManager
in interfaceServer
-
getServerName
Description copied from interface:Server
Returns The unique server name for this server.- Specified by:
getServerName
in interfaceServer
-
abort
Description copied from interface:Abortable
Abort the server or client. -
isAborted
Description copied from interface:Abortable
Check if the server or client was aborted. -
stop
Description copied from interface:Stoppable
Stop this service. Implementers should favor logging errors over throwing RuntimeExceptions. -
isStopped
Description copied from interface:Stoppable
Returns True ifStoppable.stop(String)
has been closed. -
getConnection
Description copied from interface:Server
Returns 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:
getConnection
in interfaceServer
-
getChoreService
Description copied from interface:Server
Returns TheChoreService
instance for this server- Specified by:
getChoreService
in interfaceServer
-
getClusterConnection
Description copied from interface:Server
Returns 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:
getClusterConnection
in interfaceServer
-
getFileSystem
Description copied from interface:Server
Returns Return the FileSystem object used (can return null!).- Specified by:
getFileSystem
in interfaceServer
-
isStopping
Description copied from interface:Server
Returns True is the server is Stopping- Specified by:
isStopping
in interfaceServer
-
createConnection
- Specified by:
createConnection
in interfaceServer
- Throws:
IOException
-