public final class FederationMembershipStateStoreInputValidator extends Object
FederationMembershipStateStore, allows a fail fast mechanism for
 invalid user inputs.| Modifier and Type | Method and Description | 
|---|---|
| protected static void | checkSubClusterId(SubClusterId subClusterId)Validate if the SubCluster Id is present or not. | 
| static void | checkSubClusterInfo(SubClusterInfo subClusterInfo)Validate if all the required fields on  SubClusterInfoare present
 or not. | 
| static void | validate(GetSubClusterInfoRequest request)Quick validation on the input to check some obvious fail conditions (fail
 fast). | 
| static void | validate(SubClusterDeregisterRequest request)Quick validation on the input to check some obvious fail conditions (fail
 fast). | 
| static void | validate(SubClusterHeartbeatRequest request)Quick validation on the input to check some obvious fail conditions (fail
 fast). | 
| static void | validate(SubClusterRegisterRequest request)Quick validation on the input to check some obvious fail conditions (fail
 fast). | 
public static void validate(SubClusterRegisterRequest request) throws FederationStateStoreInvalidInputException
SubClusterRegisterRequest for
 registration a new subcluster is valid or not.request - the SubClusterRegisterRequest to validate againstFederationStateStoreInvalidInputException - if the request is invalidpublic static void validate(SubClusterDeregisterRequest request) throws FederationStateStoreInvalidInputException
SubClusterDeregisterRequest for
 deregistration a subcluster is valid or not.request - the SubClusterDeregisterRequest to validate againstFederationStateStoreInvalidInputException - if the request is invalidpublic static void validate(SubClusterHeartbeatRequest request) throws FederationStateStoreInvalidInputException
SubClusterHeartbeatRequest for
 heartbeating a subcluster is valid or not.request - the SubClusterHeartbeatRequest to validate againstFederationStateStoreInvalidInputException - if the request is invalidpublic static void validate(GetSubClusterInfoRequest request) throws FederationStateStoreInvalidInputException
GetSubClusterInfoRequest for querying
 subcluster's information is valid or not.request - the GetSubClusterInfoRequest to validate againstFederationStateStoreInvalidInputException - if the request is invalidpublic static void checkSubClusterInfo(SubClusterInfo subClusterInfo) throws FederationStateStoreInvalidInputException
SubClusterInfo are present
 or not. Capability will be empty as the corresponding
 ResourceManager is in the process of initialization during
 registration.subClusterInfo - the information of the subcluster to be verifiedFederationStateStoreInvalidInputException - if the SubCluster Info
           are invalidprotected static void checkSubClusterId(SubClusterId subClusterId) throws FederationStateStoreInvalidInputException
subClusterId - the identifier of the subcluster to be verifiedFederationStateStoreInvalidInputException - if the SubCluster Id is
           invalidCopyright © 2008–2023 Apache Software Foundation. All rights reserved.