Class SubClusterIdPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterId
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.SubClusterIdPBImpl
- All Implemented Interfaces:
Comparable<SubClusterId>
Protocol buffer based implementation of
SubClusterId.-
Constructor Summary
ConstructorsConstructorDescriptionSubClusterIdPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterIdProto proto) -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the string identifier of the subcluster which is unique across the federated cluster.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterIdProtogetProto()protected voidSet the string identifier of the subcluster which is unique across the federated cluster.Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.SubClusterId
compareTo, equals, hashCode, newInstance, newInstance, toString
-
Constructor Details
-
SubClusterIdPBImpl
public SubClusterIdPBImpl() -
SubClusterIdPBImpl
public SubClusterIdPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterIdProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterIdProto getProto() -
getId
Description copied from class:SubClusterIdGet the string identifier of the subcluster which is unique across the federated cluster. The identifier is static, i.e. preserved across restarts and failover.- Specified by:
getIdin classSubClusterId- Returns:
- unique identifier of the subcluster
-
setId
Description copied from class:SubClusterIdSet the string identifier of the subcluster which is unique across the federated cluster. The identifier is static, i.e. preserved across restarts and failover.- Specified by:
setIdin classSubClusterId- Parameters:
subClusterId- unique identifier of the subcluster
-