Class AddReservationHomeSubClusterResponse
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.AddReservationHomeSubClusterResponse
- Direct Known Subclasses:
AddReservationHomeSubClusterResponsePBImpl
AddReservationHomeSubClusterResponse contains the answer from the
FederationReservationHomeSubClusterStore to a request to insert a
newly generated ReservationId and its owner.
The response contains reservation's home sub-cluster as it is stored in the
FederationReservationHomeSubClusterStore. If a mapping for the
reservation already existed, the SubClusterId in this response will
return the existing mapping which might be different from that in the
AddReservationHomeSubClusterRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SubClusterIdGet the home sub-cluster that this Reservation has been assigned to.newInstance(SubClusterId homeSubCluster) abstract voidsetHomeSubCluster(SubClusterId homeSubCluster) Set the home sub-cluster that this Reservation has been assigned to.
-
Constructor Details
-
AddReservationHomeSubClusterResponse
public AddReservationHomeSubClusterResponse()
-
-
Method Details
-
newInstance
@Private @Unstable public static AddReservationHomeSubClusterResponse newInstance(SubClusterId homeSubCluster) -
setHomeSubCluster
Set the home sub-cluster that this Reservation has been assigned to.- Parameters:
homeSubCluster- theSubClusterIdof this reservation's home sub-cluster
-
getHomeSubCluster
Get the home sub-cluster that this Reservation has been assigned to. This may not match theSubClusterIdin the corresponding response, if the mapping for the request's reservation already existed.- Returns:
- the
SubClusterIdof this reservation's home sub-cluster
-