Class ReservationHomeSubCluster
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.ReservationHomeSubCluster
- Direct Known Subclasses:
ReservationHomeSubClusterPBImpl
ReservationHomeSubCluster is a report of the runtime information of the reservation that is running in the federated cluster.
It includes information such as:
ReservationIdSubClusterId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract SubClusterIdGet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the reservation is mapped to.abstract org.apache.hadoop.yarn.api.records.ReservationIdGet theReservationIdrepresenting the unique identifier of the Reservation.inthashCode()static ReservationHomeSubClusternewInstance(org.apache.hadoop.yarn.api.records.ReservationId resId, SubClusterId homeSubCluster) abstract voidsetHomeSubCluster(SubClusterId subClusterId) Set theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ReservationMaster of the reservation is running.abstract voidsetReservationId(org.apache.hadoop.yarn.api.records.ReservationId resId) Set theReservationIdrepresenting the unique identifier of the Reservation.toString()
-
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 theReservationIdrepresenting 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 theReservationIdrepresenting the unique identifier of the Reservation.- Parameters:
resId- the reservation identifier
-
getHomeSubCluster
Get theSubClusterIdrepresenting the unique identifier of the home subcluster in which the reservation is mapped to.- Returns:
- the home subcluster identifier
-
setHomeSubCluster
Set theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ReservationMaster of the reservation is running.- Parameters:
subClusterId- the home subcluster identifier
-
equals
-
hashCode
public int hashCode() -
toString
-