Class RMContainerReservedEvent
java.lang.Object
org.apache.hadoop.yarn.event.AbstractEvent<RMContainerEventType>
org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerEvent
org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerReservedEvent
- All Implemented Interfaces:
org.apache.hadoop.yarn.event.Event<RMContainerEventType>
The event signifying that a container has been reserved.
The event encapsulates information on the amount of reservation
and the node on which the reservation is in effect.
-
Constructor Summary
ConstructorsConstructorDescriptionRMContainerReservedEvent(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.Resource reservedResource, org.apache.hadoop.yarn.api.records.NodeId reservedNode, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey reservedSchedulerKey) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.NodeIdorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.server.scheduler.SchedulerRequestKeyMethods inherited from class org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerEvent
getContainerIdMethods inherited from class org.apache.hadoop.yarn.event.AbstractEvent
getTimestamp, getType, toString
-
Constructor Details
-
RMContainerReservedEvent
public RMContainerReservedEvent(org.apache.hadoop.yarn.api.records.ContainerId containerId, org.apache.hadoop.yarn.api.records.Resource reservedResource, org.apache.hadoop.yarn.api.records.NodeId reservedNode, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey reservedSchedulerKey)
-
-
Method Details
-
getReservedResource
public org.apache.hadoop.yarn.api.records.Resource getReservedResource() -
getReservedNode
public org.apache.hadoop.yarn.api.records.NodeId getReservedNode() -
getReservedSchedulerKey
public org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey getReservedSchedulerKey()
-