Interface FederationApplicationHomeSubClusterStore
- All Known Subinterfaces:
FederationStateStore
- All Known Implementing Classes:
MemoryFederationStateStore,SQLFederationStateStore,ZookeeperFederationStateStore
@Private
@Unstable
public interface FederationApplicationHomeSubClusterStore
FederationApplicationHomeSubClusterStore maintains the state of all
Applications that have been submitted to the federated cluster.
*
The mapping details contains:
ApplicationIdSubClusterId
-
Method Summary
Modifier and TypeMethodDescriptionRegister the homeSubClusterIdof the newly submittedApplicationId.Delete the mapping of homeSubClusterIdof a previously submittedApplicationId.Get information about the application identified by the inputApplicationId.Get theApplicationHomeSubClusterlist representing the mapping of all submitted applications to it's home sub-cluster.Update the homeSubClusterIdof a previously submittedApplicationId.
-
Method Details
-
addApplicationHomeSubCluster
AddApplicationHomeSubClusterResponse addApplicationHomeSubCluster(AddApplicationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Register the homeSubClusterIdof the newly submittedApplicationId. Currently response is empty if the operation was successful, if not an exception reporting reason for a failure. If a mapping for the application already existed, theSubClusterIdin this response will return the existing mapping which might be different from that in theAddApplicationHomeSubClusterRequest.- Parameters:
request- the request to register a new application with its home sub-cluster- Returns:
- upon successful registration of the application in the StateStore,
AddApplicationHomeSubClusterRequestcontaining the home sub-cluster of the application. Otherwise, an exception reporting reason for a failure - Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
updateApplicationHomeSubCluster
UpdateApplicationHomeSubClusterResponse updateApplicationHomeSubCluster(UpdateApplicationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Update the homeSubClusterIdof a previously submittedApplicationId. 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 an application.- Returns:
- empty on successful update of the application 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
-
getApplicationHomeSubCluster
GetApplicationHomeSubClusterResponse getApplicationHomeSubCluster(GetApplicationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Get information about the application identified by the inputApplicationId.- Parameters:
request- contains the application queried- Returns:
ApplicationHomeSubClustercontaining the application's home subcluster- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
getApplicationsHomeSubCluster
GetApplicationsHomeSubClusterResponse getApplicationsHomeSubCluster(GetApplicationsHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Get theApplicationHomeSubClusterlist representing the mapping of all submitted applications to it's home sub-cluster.- Parameters:
request- empty representing all applications- Returns:
- the mapping of all submitted application to it's home sub-cluster
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the request is invalid/fails
-
deleteApplicationHomeSubCluster
DeleteApplicationHomeSubClusterResponse deleteApplicationHomeSubCluster(DeleteApplicationHomeSubClusterRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException Delete the mapping of homeSubClusterIdof a previously submittedApplicationId. 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 an application.- Returns:
- empty on successful update of the application 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
-