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>

public class ContainerReInitEvent extends ContainerEvent
ContainerEvent sent by ContainerManager to ContainerImpl to re-initiate Container.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.yarn.api.records.ContainerLaunchContext
    Get the Launch Context to be used for upgrade.
    Get the ResourceSet.
    boolean
    Should this re-Initialization be auto-committed.

    Methods inherited from class org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerEvent

    getContainerID

    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 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

      public ResourceSet getResourceSet()
      Get the ResourceSet.
      Returns:
      ResourceSet.
    • isAutoCommit

      public boolean isAutoCommit()
      Should this re-Initialization be auto-committed.
      Returns:
      AutoCommit.