@InterfaceAudience.Private public interface Server extends Abortable, Stoppable
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
AsyncClusterConnection |
getAsyncClusterConnection()
Returns a reference to the servers' async cluster connection.
|
default AsyncConnection |
getAsyncConnection()
Returns a reference to the servers' async connection.
|
ChoreService |
getChoreService()
Returns The
ChoreService instance for this server |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the configuration object for this server.
|
default 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()
default Connection getConnection()
Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
default AsyncConnection getAsyncConnection()
AsyncClusterConnection getAsyncClusterConnection()
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.