Class ContainerReInitEvent
java.lang.Object
org.apache.hadoop.yarn.event.AbstractEvent<ContainerEventType>
org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerEvent
org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerReInitEvent
- All Implemented Interfaces:
org.apache.hadoop.yarn.event.Event<ContainerEventType>
ContainerEvent sent by ContainerManager to ContainerImpl to
re-initiate Container.
-
Constructor Summary
ConstructorsConstructorDescriptionContainerReInitEvent(org.apache.hadoop.yarn.api.records.ContainerId cID, org.apache.hadoop.yarn.api.records.ContainerLaunchContext upgradeContext, ResourceSet resourceSet, boolean autoCommit) Container Re-Init Event. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.ContainerLaunchContextGet the Launch Context to be used for upgrade.Get the ResourceSet.booleanShould this re-Initialization be auto-committed.Methods inherited from class org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerEvent
getContainerIDMethods inherited from class org.apache.hadoop.yarn.event.AbstractEvent
getTimestamp, getType, toString
-
Constructor Details
-
ContainerReInitEvent
public ContainerReInitEvent(org.apache.hadoop.yarn.api.records.ContainerId cID, org.apache.hadoop.yarn.api.records.ContainerLaunchContext upgradeContext, ResourceSet resourceSet, boolean autoCommit) Container Re-Init Event.- Parameters:
cID- Container Id.upgradeContext- Upgrade Context.resourceSet- Resource Set.autoCommit- Auto Commit.
-
-
Method Details
-
getReInitLaunchContext
public org.apache.hadoop.yarn.api.records.ContainerLaunchContext getReInitLaunchContext()Get the Launch Context to be used for upgrade.- Returns:
- ContainerLaunchContext
-
getResourceSet
Get the ResourceSet.- Returns:
- ResourceSet.
-
isAutoCommit
public boolean isAutoCommit()Should this re-Initialization be auto-committed.- Returns:
- AutoCommit.
-