org.apache.hadoop.mapreduce.v2.app.rm
Class ContainerRequestEvent
java.lang.Object
org.apache.hadoop.yarn.event.AbstractEvent<ContainerAllocator.EventType>
org.apache.hadoop.mapreduce.v2.app.rm.ContainerAllocatorEvent
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)
|
| Methods inherited from class org.apache.hadoop.yarn.event.AbstractEvent |
getTimestamp, getType, toString |
ContainerRequestEvent
public ContainerRequestEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID,
org.apache.hadoop.yarn.api.records.Resource capability,
String[] hosts,
String[] racks)
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 © 2012 Apache Software Foundation. All Rights Reserved.