Interface FederationStateStore
- All Superinterfaces:
FederationApplicationHomeSubClusterStore,FederationDelegationTokenStateStore,FederationMembershipStateStore,FederationPolicyStore,FederationReservationHomeSubClusterStore
- All Known Implementing Classes:
MemoryFederationStateStore,SQLFederationStateStore,ZookeeperFederationStateStore
public interface FederationStateStore
extends FederationApplicationHomeSubClusterStore, FederationMembershipStateStore, FederationPolicyStore, FederationReservationHomeSubClusterStore, FederationDelegationTokenStateStore
FederationStore extends the three interfaces used to coordinate the state of
a federated cluster:
FederationApplicationHomeSubClusterStore,
FederationMembershipStateStore, FederationPolicyStore, and
FederationReservationHomeSubClusterStore.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidCheck the version of federation stateStore.voidclose()Perform any cleanup operations of the StateStore.voidWe will clear the data in stateStore through the deleteStateStore method.Get theVersionof the underlying federation state store client.voidinit(org.apache.hadoop.conf.Configuration conf) Initialize the FederationStore.Load the version information from the federation state store.voidStore the Version information in federation state store.Methods inherited from interface org.apache.hadoop.yarn.server.federation.store.FederationApplicationHomeSubClusterStore
addApplicationHomeSubCluster, deleteApplicationHomeSubCluster, getApplicationHomeSubCluster, getApplicationsHomeSubCluster, updateApplicationHomeSubClusterMethods inherited from interface org.apache.hadoop.yarn.server.federation.store.FederationDelegationTokenStateStore
getCurrentKeyId, getDelegationTokenSeqNum, getMasterKeyByDelegationKey, getTokenByRouterStoreToken, incrementCurrentKeyId, incrementDelegationTokenSeqNum, removeStoredMasterKey, removeStoredToken, setDelegationTokenSeqNum, storeNewMasterKey, storeNewToken, updateStoredTokenMethods inherited from interface org.apache.hadoop.yarn.server.federation.store.FederationMembershipStateStore
deregisterSubCluster, getSubCluster, getSubClusters, registerSubCluster, subClusterHeartbeatMethods inherited from interface org.apache.hadoop.yarn.server.federation.store.FederationPolicyStore
deleteAllPoliciesConfigurations, deletePoliciesConfigurations, getPoliciesConfigurations, getPolicyConfiguration, setPolicyConfigurationMethods inherited from interface org.apache.hadoop.yarn.server.federation.store.FederationReservationHomeSubClusterStore
addReservationHomeSubCluster, deleteReservationHomeSubCluster, getReservationHomeSubCluster, getReservationsHomeSubCluster, updateReservationHomeSubCluster
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Method Details
-
init
void init(org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException Initialize the FederationStore.- Parameters:
conf- the cluster configuration- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if initialization fails
-
close
Perform any cleanup operations of the StateStore.- Throws:
Exception- if cleanup fails
-
getCurrentVersion
Version getCurrentVersion()Get theVersionof the underlying federation state store client.- Returns:
- the
Versionof the underlying federation store client
-
loadVersion
Load the version information from the federation state store. -
storeVersion
Store the Version information in federation state store.- Throws:
Exception- an exception occurred in store version.
-
checkVersion
Check the version of federation stateStore.- Throws:
Exception- an exception occurred in check version.
-
deleteStateStore
We will clear the data in stateStore through the deleteStateStore method.- Throws:
Exception- an exception occurred in delete store.
-