org.apache.hadoop.yarn.server.applicationhistoryservice.records
Class ContainerStartData

java.lang.Object
  extended by org.apache.hadoop.yarn.server.applicationhistoryservice.records.ContainerStartData
Direct Known Subclasses:
ContainerStartDataPBImpl

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class ContainerStartData
extends Object

The class contains the fields that can be determined when RMContainer starts, and that need to be stored persistently.


Constructor Summary
ContainerStartData()
           
 
Method Summary
abstract  org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
           
abstract  org.apache.hadoop.yarn.api.records.NodeId getAssignedNode()
           
abstract  org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
           
abstract  org.apache.hadoop.yarn.api.records.Priority getPriority()
           
abstract  long getStartTime()
           
static ContainerStartData newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.Resource allocatedResource, org.apache.hadoop.yarn.api.records.NodeId assignedNode, org.apache.hadoop.yarn.api.records.Priority priority, long startTime)
           
abstract  void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)
           
abstract  void setAssignedNode(org.apache.hadoop.yarn.api.records.NodeId nodeId)
           
abstract  void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)
           
abstract  void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
           
abstract  void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerStartData

public ContainerStartData()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Unstable
public static ContainerStartData newInstance(org.apache.hadoop.yarn.api.records.ContainerId containerId,
                                                                                                  org.apache.hadoop.yarn.api.records.Resource allocatedResource,
                                                                                                  org.apache.hadoop.yarn.api.records.NodeId assignedNode,
                                                                                                  org.apache.hadoop.yarn.api.records.Priority priority,
                                                                                                  long startTime)

getContainerId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.ContainerId getContainerId()

setContainerId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setContainerId(org.apache.hadoop.yarn.api.records.ContainerId containerId)

getAllocatedResource

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()

setAllocatedResource

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setAllocatedResource(org.apache.hadoop.yarn.api.records.Resource resource)

getAssignedNode

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.NodeId getAssignedNode()

setAssignedNode

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setAssignedNode(org.apache.hadoop.yarn.api.records.NodeId nodeId)

getPriority

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.Priority getPriority()

setPriority

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)

getStartTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract long getStartTime()

setStartTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setStartTime(long startTime)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.