Class SubClusterRegisterRequest
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterRegisterRequest
- Direct Known Subclasses:
SubClusterRegisterRequestPBImpl
SubClusterRegisterRequest is a request by a sub-cluster
ResourceManager to participate in federation.
It includes information such as:
SubClusterId- The URL of the subcluster
- The timestamp representing the last start time of the subCluster
FederationsubClusterState- The current capacity and utilization of the subCluster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SubClusterInfoGet theSubClusterInfoencapsulating the information about the sub-cluster.static SubClusterRegisterRequestnewInstance(SubClusterInfo subClusterInfo) abstract voidsetSubClusterInfo(SubClusterInfo subClusterInfo) Set theSubClusterInfoencapsulating the information about the sub-cluster.
-
Constructor Details
-
SubClusterRegisterRequest
public SubClusterRegisterRequest()
-
-
Method Details
-
newInstance
@Private @Unstable public static SubClusterRegisterRequest newInstance(SubClusterInfo subClusterInfo) -
getSubClusterInfo
Get theSubClusterInfoencapsulating the information about the sub-cluster.- Returns:
- the information pertaining to the sub-cluster
-
setSubClusterInfo
Set theSubClusterInfoencapsulating the information about the sub-cluster.- Parameters:
subClusterInfo- the information pertaining to the sub-cluster
-