| Modifier and Type | Field and Description |
|---|---|
String |
appVersion
Version of the app
|
String |
command
what was the command executed?
|
org.apache.hadoop.yarn.api.records.Container |
container |
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
Container ID
|
String[] |
output
What is the tail output from the executed process (or [] if not started
or the log cannot be picked up
|
ContainerAllocationOutcome |
placement |
boolean |
released
flag set when it is released, to know if it has
already been targeted for termination
|
String |
role
Name of the role
|
int |
roleId
Role Id; matches priority in resources.json
|
long |
startTime |
int |
state
state from StateValues
|
| Constructor and Description |
|---|
RoleInstance(org.apache.hadoop.yarn.api.records.Container container)
Create an instance to track an allocated container
|
RoleInstance(ContainerAssignment assignment) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(org.apache.hadoop.registry.client.types.Endpoint endpoint)
Add an endpoint registration
|
Object |
clone()
Clone operation clones all the simple values but shares the
Container object into the cloned copy -same with the output,
diagnostics and env arrays.
|
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId() |
List<org.apache.hadoop.registry.client.types.Endpoint> |
getEndpoints()
Get the list of endpoints.
|
org.apache.hadoop.yarn.api.records.NodeId |
getHost() |
org.apache.hadoop.yarn.api.records.ContainerId |
getId() |
void |
registerPortEndpoint(int port,
String api)
Register a port endpoint as an inet-addr formatted endpoint, using the
hostname as the first part of the address
|
ContainerInformation |
serialize()
Serialize.
|
ClusterNode |
toClusterNode()
Build a serializable ClusterNode structure from this instance.
|
Messages.RoleInstanceState |
toProtobuf()
Generate the protobuf format of a request
|
String |
toString() |
public org.apache.hadoop.yarn.api.records.Container container
public final String id
public long createTime
public long startTime
public boolean released
public String role
public String appVersion
public int roleId
public int state
public int exitCode
public String command
public String diagnostics
public String[] output
public String[] environment
public String host
public String hostURL
public ContainerAllocationOutcome placement
public RoleInstance(ContainerAssignment assignment)
public RoleInstance(org.apache.hadoop.yarn.api.records.Container container)
container - a container which must be non null, and have a non-null Id field.public org.apache.hadoop.yarn.api.records.ContainerId getId()
public org.apache.hadoop.yarn.api.records.NodeId getHost()
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public Messages.RoleInstanceState toProtobuf()
public ClusterNode toClusterNode()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic List<org.apache.hadoop.registry.client.types.Endpoint> getEndpoints()
public void addEndpoint(org.apache.hadoop.registry.client.types.Endpoint endpoint)
endpoint - endpoint (non-null)public void registerPortEndpoint(int port,
String api)
port - port portapi - API API namepublic ContainerInformation serialize()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.