org.apache.hadoop.yarn.server.resourcemanager.rmcontainer
Class RMContainerImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerImpl
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<RMContainerEvent>, RMContainer

public class RMContainerImpl
extends Object
implements RMContainer


Constructor Summary
RMContainerImpl(org.apache.hadoop.yarn.api.records.Container container, org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.event.EventHandler handler, ContainerAllocationExpirer containerAllocationExpirer)
           
 
Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
           
 org.apache.hadoop.yarn.api.records.Container getContainer()
           
 org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
           
 org.apache.hadoop.yarn.api.records.NodeId getReservedNode()
           
 org.apache.hadoop.yarn.api.records.Priority getReservedPriority()
           
 org.apache.hadoop.yarn.api.records.Resource getReservedResource()
           
 RMContainerState getState()
           
 void handle(RMContainerEvent event)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMContainerImpl

public RMContainerImpl(org.apache.hadoop.yarn.api.records.Container container,
                       org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
                       org.apache.hadoop.yarn.api.records.NodeId nodeId,
                       org.apache.hadoop.yarn.event.EventHandler handler,
                       ContainerAllocationExpirer containerAllocationExpirer)
Method Detail

getContainerId

public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
Specified by:
getContainerId in interface RMContainer

getApplicationAttemptId

public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
Specified by:
getApplicationAttemptId in interface RMContainer

getContainer

public org.apache.hadoop.yarn.api.records.Container getContainer()
Specified by:
getContainer in interface RMContainer

getState

public RMContainerState getState()
Specified by:
getState in interface RMContainer

getReservedResource

public org.apache.hadoop.yarn.api.records.Resource getReservedResource()
Specified by:
getReservedResource in interface RMContainer

getReservedNode

public org.apache.hadoop.yarn.api.records.NodeId getReservedNode()
Specified by:
getReservedNode in interface RMContainer

getReservedPriority

public org.apache.hadoop.yarn.api.records.Priority getReservedPriority()
Specified by:
getReservedPriority in interface RMContainer

toString

public String toString()
Overrides:
toString in class Object

handle

public void handle(RMContainerEvent event)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<RMContainerEvent>


Copyright © 2014 Apache Software Foundation. All Rights Reserved.