org.apache.hadoop.mapreduce.v2.app.rm
Class ContainerRequestEvent

java.lang.Object
  extended by org.apache.hadoop.yarn.event.AbstractEvent<ContainerAllocator.EventType>
      extended by org.apache.hadoop.mapreduce.v2.app.rm.ContainerAllocatorEvent
          extended by org.apache.hadoop.mapreduce.v2.app.rm.ContainerRequestEvent
All Implemented Interfaces:
org.apache.hadoop.yarn.event.Event<ContainerAllocator.EventType>

public class ContainerRequestEvent
extends ContainerAllocatorEvent


Constructor Summary
ContainerRequestEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID, org.apache.hadoop.yarn.api.records.Resource capability, String[] hosts, String[] racks)
           
 
Method Summary
static ContainerRequestEvent createContainerRequestEventForFailedContainer(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID, org.apache.hadoop.yarn.api.records.Resource capability)
           
 org.apache.hadoop.yarn.api.records.Resource getCapability()
           
 boolean getEarlierAttemptFailed()
           
 String[] getHosts()
           
 String[] getRacks()
           
 
Methods inherited from class org.apache.hadoop.mapreduce.v2.app.rm.ContainerAllocatorEvent
getAttemptID
 
Methods inherited from class org.apache.hadoop.yarn.event.AbstractEvent
getTimestamp, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerRequestEvent

public ContainerRequestEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID,
                             org.apache.hadoop.yarn.api.records.Resource capability,
                             String[] hosts,
                             String[] racks)
Method Detail

createContainerRequestEventForFailedContainer

public static ContainerRequestEvent createContainerRequestEventForFailedContainer(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID,
                                                                                  org.apache.hadoop.yarn.api.records.Resource capability)

getCapability

public org.apache.hadoop.yarn.api.records.Resource getCapability()

getHosts

public String[] getHosts()

getRacks

public String[] getRacks()

getEarlierAttemptFailed

public boolean getEarlierAttemptFailed()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.