public class TaskManagerRuntimeInfo extends Object implements Serializable
Constructor and Description |
---|
TaskManagerRuntimeInfo(String hostname,
Configuration configuration,
String tmpDirectory)
Creates a runtime info.
|
TaskManagerRuntimeInfo(String hostname,
Configuration configuration,
String[] tmpDirectories)
Creates a runtime info.
|
TaskManagerRuntimeInfo(String hostname,
Configuration configuration,
String[] tmpDirectories,
boolean exitJvmOnOutOfMemory)
Creates a runtime info.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration()
Gets the configuration that the TaskManager was started with.
|
String |
getHostname()
Gets host name of the interface that the TaskManager uses to communicate.
|
String[] |
getTmpDirectories()
Gets the list of temporary file directories.
|
boolean |
shouldExitJvmOnOutOfMemoryError()
Checks whether the TaskManager should exit the JVM when the task thread throws
an OutOfMemoryError.
|
public TaskManagerRuntimeInfo(String hostname, Configuration configuration, String tmpDirectory)
hostname
- The host name of the interface that the TaskManager uses to communicate.configuration
- The configuration that the TaskManager was started with.tmpDirectory
- The temporary file directory.public TaskManagerRuntimeInfo(String hostname, Configuration configuration, String[] tmpDirectories)
hostname
- The host name of the interface that the TaskManager uses to communicate.configuration
- The configuration that the TaskManager was started with.tmpDirectories
- The list of temporary file directories.public TaskManagerRuntimeInfo(String hostname, Configuration configuration, String[] tmpDirectories, boolean exitJvmOnOutOfMemory)
hostname
- The host name of the interface that the TaskManager uses to communicate.configuration
- The configuration that the TaskManager was started with.tmpDirectories
- The list of temporary file directories.exitJvmOnOutOfMemory
- True to terminate the JVM on an OutOfMemoryError, false otherwise.public String getHostname()
public Configuration getConfiguration()
public String[] getTmpDirectories()
public boolean shouldExitJvmOnOutOfMemoryError()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.