Class ReservationHomeSubCluster

java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.ReservationHomeSubCluster
Direct Known Subclasses:
ReservationHomeSubClusterPBImpl

@Private @Unstable public abstract class ReservationHomeSubCluster extends Object

ReservationHomeSubCluster is a report of the runtime information of the reservation that is running in the federated cluster.

It includes information such as:

  • Constructor Details

    • ReservationHomeSubCluster

      public ReservationHomeSubCluster()
  • Method Details

    • newInstance

      @Private @Unstable public static ReservationHomeSubCluster newInstance(org.apache.hadoop.yarn.api.records.ReservationId resId, SubClusterId homeSubCluster)
    • getReservationId

      @Public @Unstable public abstract org.apache.hadoop.yarn.api.records.ReservationId getReservationId()
      Get the ReservationId representing the unique identifier of the Reservation.
      Returns:
      the reservation identifier
    • setReservationId

      @Private @Unstable public abstract void setReservationId(org.apache.hadoop.yarn.api.records.ReservationId resId)
      Set the ReservationId representing the unique identifier of the Reservation.
      Parameters:
      resId - the reservation identifier
    • getHomeSubCluster

      @Public @Unstable public abstract SubClusterId getHomeSubCluster()
      Get the SubClusterId representing the unique identifier of the home subcluster in which the reservation is mapped to.
      Returns:
      the home subcluster identifier
    • setHomeSubCluster

      @Private @Unstable public abstract void setHomeSubCluster(SubClusterId subClusterId)
      Set the SubClusterId representing the unique identifier of the home subcluster in which the ReservationMaster of the reservation is running.
      Parameters:
      subClusterId - the home subcluster identifier
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object