@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() |
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.ServerName getServerName()
CoordinatedStateManager getCoordinatedStateManager()
ChoreService getChoreService()
ChoreService
instance for this serverdefault org.apache.hadoop.fs.FileSystem getFileSystem()
default boolean isStopping()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.