Class SubClusterDeregisterRequest
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterDeregisterRequest
- Direct Known Subclasses:
SubClusterDeregisterRequestPBImpl
The request sent to set the state of a subcluster to either SC_DECOMMISSIONED, SC_LOST, or SC_DEREGISTERED.
The update includes details such as:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SubClusterStategetState()Get theSubClusterStateof the subcluster.abstract SubClusterIdGet theSubClusterIdrepresenting the unique identifier of the subcluster.static SubClusterDeregisterRequestnewInstance(SubClusterId subClusterId, SubClusterState subClusterState) abstract voidsetState(SubClusterState state) Set theSubClusterStateof the subcluster.abstract voidsetSubClusterId(SubClusterId subClusterId) Set theSubClusterIdrepresenting the unique identifier of the subcluster.
-
Constructor Details
-
SubClusterDeregisterRequest
public SubClusterDeregisterRequest()
-
-
Method Details
-
newInstance
@Private @Unstable public static SubClusterDeregisterRequest newInstance(SubClusterId subClusterId, SubClusterState subClusterState) -
getSubClusterId
Get theSubClusterIdrepresenting the unique identifier of the subcluster.- Returns:
- the subcluster identifier
-
setSubClusterId
Set theSubClusterIdrepresenting the unique identifier of the subcluster.- Parameters:
subClusterId- the subcluster identifier
-
getState
Get theSubClusterStateof the subcluster.- Returns:
- the state of the subcluster
-
setState
Set theSubClusterStateof the subcluster.- Parameters:
state- the state of the subCluster
-