@InterfaceAudience.Private public interface Server extends Abortable, Stoppable
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
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.
|
default org.apache.hadoop.fs.FileSystem |
getFileSystem() |
MetaTableLocator |
getMetaTableLocator()
Returns instance of
MetaTableLocator
running inside this server. |
ServerName |
getServerName() |
ZKWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
default boolean |
isStopping() |
org.apache.hadoop.conf.Configuration getConfiguration()
ZKWatcher getZooKeeper()
Connection getConnection()
Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
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 serverdefault org.apache.hadoop.fs.FileSystem getFileSystem()
default boolean isStopping()
Copyright © 2007–2019 Cloudera. All rights reserved.