| Modifier and Type | Field and Description |
|---|---|
String |
command
what was the command executed?
|
org.apache.hadoop.yarn.api.records.ContainerId |
containerId |
long |
createTime |
String |
diagnostics
Any diagnostics
|
String[] |
environment
Any environment details
|
int |
exitCode
Exit code: only valid if the state >= STOPPED
|
String |
host |
String |
hostUrl |
String |
id
UUID of container used in Slider RPC to refer to instances
|
protected static org.slf4j.Logger |
LOG |
String |
name
server name
|
String[] |
output
What is the tail output from the executed process (or [] if not started
or the log cannot be picked up
|
boolean |
released
flag set when it is released, to know if it has
already been targeted for termination
|
String |
role |
int |
roleId |
long |
startTime |
int |
state
state from
ClusterDescription |
| Constructor and Description |
|---|
ClusterNode()
ctor for deserialization
|
ClusterNode(org.apache.hadoop.yarn.api.records.ContainerId containerId)
server-side ctor takes the container ID and builds the name from it
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
ClusterNode |
doClone() |
static ClusterNode |
fromJson(String json)
Convert from JSON
|
static ClusterNode |
fromProtobuf(Messages.RoleInstanceState message)
Build from a protobuf response
|
String |
toJsonString()
Convert to a JSON string
|
String |
toString() |
protected static final org.slf4j.Logger LOG
public org.apache.hadoop.yarn.api.records.ContainerId containerId
public String name
public String id
public String role
public int roleId
public long createTime
public long startTime
public boolean released
public String host
public String hostUrl
public int state
ClusterDescriptionpublic int exitCode
public String command
public String diagnostics
public String[] output
public String[] environment
public ClusterNode(org.apache.hadoop.yarn.api.records.ContainerId containerId)
containerId - container ID; can be nullpublic ClusterNode()
public String toJsonString() throws IOException
IOException - Problems mapping/writing the objectpublic static ClusterNode fromJson(String json) throws IOException, org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException
json - inputIOException - IOorg.codehaus.jackson.JsonParseExceptionorg.codehaus.jackson.map.JsonMappingExceptionpublic static ClusterNode fromProtobuf(Messages.RoleInstanceState message)
message - public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic ClusterNode doClone()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.