Interface FederationReservationHomeSubClusterStore
- All Known Subinterfaces:
FederationStateStore
- All Known Implementing Classes:
MemoryFederationStateStore,SQLFederationStateStore,ZookeeperFederationStateStore
@Private
@Unstable
public interface FederationReservationHomeSubClusterStore
FederationReservationHomeSubClusterStore maintains the state of all
Reservations that have been submitted to the federated cluster.
*
The mapping details contains:
ReservationIdSubClusterId
-
Method Summary
Modifier and TypeMethodDescriptionRegister the homeSubClusterIdof the newly submittedReservationId.Delete the mapping of homeSubClusterIdof a previously submittedReservationId.Get information about the Reservation identified by the inputReservationId.Get theReservationHomeSubClusterlist representing the mapping of all submitted Reservations to it's home sub-cluster.Update the homeSubClusterIdof a previously submittedReservationId.
-
Method Details
-
addReservationHomeSubCluster
AddReservationHomeSubClusterResponse addReservationHomeSubCluster(AddReservationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Register the homeSubClusterIdof the newly submittedReservationId. Currently response is empty if the operation was successful, if not an exception reporting reason for a failure. If a mapping for the Reservation already existed, theSubClusterIdin this response will return the existing mapping which might be different from that in theAddReservationHomeSubClusterRequest.- Parameters:
request- the request to register a new Reservation with its home sub-cluster- Returns:
- upon successful registration of the Reservation in the StateStore,
AddReservationHomeSubClusterRequestcontaining the home sub-cluster of the Reservation. Otherwise, an exception reporting reason for a failure - Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
getReservationHomeSubCluster
GetReservationHomeSubClusterResponse getReservationHomeSubCluster(GetReservationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Get information about the Reservation identified by the inputReservationId.- Parameters:
request- contains the Reservation queried- Returns:
ReservationHomeSubClustercontaining the Reservation's home subcluster- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
getReservationsHomeSubCluster
GetReservationsHomeSubClusterResponse getReservationsHomeSubCluster(GetReservationsHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Get theReservationHomeSubClusterlist representing the mapping of all submitted Reservations to it's home sub-cluster.- Parameters:
request- empty representing all Reservations- Returns:
- the mapping of all submitted Reservation to it's home sub-cluster
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
updateReservationHomeSubCluster
UpdateReservationHomeSubClusterResponse updateReservationHomeSubCluster(UpdateReservationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Update the homeSubClusterIdof a previously submittedReservationId. Currently response is empty if the operation was successful, if not an exception reporting reason for a failure.- Parameters:
request- the request to update the home sub-cluster of a reservation.- Returns:
- empty on successful update of the Reservation in the StateStore, if not an exception reporting reason for a failure
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
deleteReservationHomeSubCluster
DeleteReservationHomeSubClusterResponse deleteReservationHomeSubCluster(DeleteReservationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Delete the mapping of homeSubClusterIdof a previously submittedReservationId. Currently response is empty if the operation was successful, if not an exception reporting reason for a failure.- Parameters:
request- the request to delete the home sub-cluster of a reservation.- Returns:
- empty on successful update of the Reservation in the StateStore, if not an exception reporting reason for a failure
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-