blob: fd09d846012b458c30e5c61d0bc6b3c386d894f2 [file] [log] [blame]
package org.apache.hadoop.yarn.server.resourcemanager.scheduler.event;
import org.apache.hadoop.yarn.api.records.ContainerId;
import org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.ContainerAllocationExpirer;
/**
* The {@link SchedulerEvent} which notifies that a {@link ContainerId}
* has expired, sent by {@link ContainerAllocationExpirer}
*
*/
public class ContainerExpiredSchedulerEvent extends SchedulerEvent {
private final ContainerId containerId;
public ContainerExpiredSchedulerEvent(ContainerId containerId) {
super(SchedulerEventType.CONTAINER_EXPIRED);
this.containerId = containerId;
}
public ContainerId getContainerId() {
return containerId;
}
}