@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class AddReservationHomeSubClusterResponse extends Object
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 and Description |
---|
AddReservationHomeSubClusterResponse() |
Modifier and Type | Method and Description |
---|---|
abstract SubClusterId |
getHomeSubCluster()
Get the home sub-cluster that this Reservation has been assigned to.
|
static AddReservationHomeSubClusterResponse |
newInstance(SubClusterId homeSubCluster) |
abstract void |
setHomeSubCluster(SubClusterId homeSubCluster)
Set the home sub-cluster that this Reservation has been assigned to.
|
public AddReservationHomeSubClusterResponse()
@InterfaceAudience.Private @InterfaceStability.Unstable public static AddReservationHomeSubClusterResponse newInstance(SubClusterId homeSubCluster)
public abstract void setHomeSubCluster(SubClusterId homeSubCluster)
homeSubCluster
- the SubClusterId
of this reservation's home
sub-clusterpublic abstract SubClusterId getHomeSubCluster()
SubClusterId
in the corresponding response, if
the mapping for the request's reservation already existed.SubClusterId
of this reservation's home sub-clusterCopyright © 2008–2024 Apache Software Foundation. All rights reserved.