Class UpdateContainerError

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

@Public @Unstable public abstract class UpdateContainerError extends Object
UpdateContainerError is used by the Scheduler to notify the ApplicationMaster of an UpdateContainerRequest it cannot satisfy due to an error in the request. It includes the update request as well as a reason for why the request was not satisfiable.
  • Constructor Details

    • UpdateContainerError

      public UpdateContainerError()
  • Method Details

    • newInstance

      @Public @Unstable public static UpdateContainerError newInstance(String reason, UpdateContainerRequest updateContainerRequest)
    • getReason

      @Public @Unstable public abstract String getReason()
      Get reason why the update request was not satisfiable.
      Returns:
      Reason
    • setReason

      @Public @Unstable public abstract void setReason(String reason)
      Set reason why the update request was not satisfiable.
      Parameters:
      reason - Reason
    • getCurrentContainerVersion

      @Public @Unstable public abstract int getCurrentContainerVersion()
      Get current container version.
      Returns:
      Current container Version.
    • setCurrentContainerVersion

      @Public @Unstable public abstract void setCurrentContainerVersion(int currentVersion)
      Set current container version.
      Parameters:
      currentVersion - Current container version.
    • getUpdateContainerRequest

      @Public @Unstable public abstract UpdateContainerRequest getUpdateContainerRequest()
      Get the UpdateContainerRequest that was not satisfiable.
      Returns:
      UpdateContainerRequest
    • setUpdateContainerRequest

      @Public @Unstable public abstract void setUpdateContainerRequest(UpdateContainerRequest updateContainerRequest)
      Set the UpdateContainerRequest that was not satisfiable.
      Parameters:
      updateContainerRequest - Update Container Request
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

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