@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface Server extends Abortable, Stoppable
Modifier and Type | Method and Description |
---|---|
ChoreService |
getChoreService() |
ClusterConnection |
getClusterConnection()
Returns a reference to the servers' cluster connection.
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the configuration object for this server.
|
Connection |
getConnection()
Returns a reference to the servers' connection.
|
CoordinatedStateManager |
getCoordinatedStateManager()
Get CoordinatedStateManager instance for this server.
|
MetaTableLocator |
getMetaTableLocator()
Returns instance of
MetaTableLocator
running inside this server. |
ServerName |
getServerName() |
ZooKeeperWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
org.apache.hadoop.conf.Configuration getConfiguration()
ZooKeeperWatcher getZooKeeper()
Connection getConnection()
ClusterConnection getClusterConnection()
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.MetaTableLocator getMetaTableLocator()
MetaTableLocator
running inside this server. This MetaServerLocator is started and stopped by server, clients
shouldn't manage it's lifecycle.MetaTableLocator
associated with this server.ServerName getServerName()
CoordinatedStateManager getCoordinatedStateManager()
ChoreService getChoreService()
ChoreService
instance for this serverCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.