@InterfaceAudience.Private public interface Server extends Abortable, Stoppable
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
ChoreService |
getChoreService()
Returns The
ChoreService instance for this server |
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()
Returns Return the FileSystem object used (can return null!).
|
ServerName |
getServerName()
Returns The unique server name for this server.
|
ZKWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
default boolean |
isStopping()
Returns True is the server is Stopping
|
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.