Class UpdatedContainer

java.lang.Object
org.apache.hadoop.yarn.api.records.UpdatedContainer

@Public @Unstable public abstract class UpdatedContainer extends Object
An object that encapsulates an updated container and the type of Update.
  • Constructor Details

    • UpdatedContainer

      public UpdatedContainer()
  • Method Details

    • newInstance

      @Public @Unstable public static UpdatedContainer newInstance(ContainerUpdateType updateType, Container container)
      Static Factory method.
      Parameters:
      updateType - ContainerUpdateType
      container - Container
      Returns:
      UpdatedContainer
    • getUpdateType

      public abstract ContainerUpdateType getUpdateType()
      Get the ContainerUpdateType.
      Returns:
      ContainerUpdateType
    • setUpdateType

      public abstract void setUpdateType(ContainerUpdateType updateType)
      Set the ContainerUpdateType.
      Parameters:
      updateType - ContainerUpdateType
    • getContainer

      public abstract Container getContainer()
      Get the Container.
      Returns:
      Container
    • setContainer

      public abstract void setContainer(Container container)
      Set the Container.
      Parameters:
      container - Container
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object