Class SubClusterInfoPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.SubClusterInfoPBImpl
Protocol buffer based implementation of
SubClusterInfo.-
Constructor Summary
ConstructorsConstructorDescriptionSubClusterInfoPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto proto) -
Method Summary
Modifier and TypeMethodDescriptionGet the URL of the AM-RM service endpoint of the subclusterResourceManager.Get the current capacity and utilization of the subcluster.Get the URL of the client-RM service endpoint of the subclusterResourceManager.longGet the last heart beat time of the subcluster.longGet the timestamp representing the last start time of the subcluster.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProtogetProto()Get the URL of theResourceManageradministration service.Get the URL of theResourceManagerweb application interface.getState()Get theSubClusterStateof the subcluster.Get theSubClusterIdrepresenting the unique identifier of the subcluster.voidsetAMRMServiceAddress(String amRMServiceAddress) Set the URL of the AM-RM service endpoint of the subclusterResourceManager.voidsetCapability(String capability) Set the current capacity and utilization of the subCluster.voidsetClientRMServiceAddress(String clientRMServiceAddress) Set the URL of the client-RM service endpoint of the subclusterResourceManager.voidsetLastHeartBeat(long time) Set the last heartbeat time of the subcluster.voidsetLastStartTime(long lastStartTime) Set the timestamp representing the last start time of the subcluster.voidsetRMAdminServiceAddress(String rmAdminServiceAddress) Set the URL of theResourceManageradministration service.voidsetRMWebServiceAddress(String rmWebServiceAddress) Set the URL of theResourceManagerweb application interface.voidsetState(SubClusterState state) Set theSubClusterStateof the subcluster.voidsetSubClusterId(SubClusterId subClusterId) Set theSubClusterIdrepresenting the unique identifier of the subCluster.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo
equals, hashCode, newInstance, newInstance, newInstance
-
Constructor Details
-
SubClusterInfoPBImpl
public SubClusterInfoPBImpl() -
SubClusterInfoPBImpl
public SubClusterInfoPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto getProto() -
toString
- Overrides:
toStringin classSubClusterInfo
-
getSubClusterId
Description copied from class:SubClusterInfoGet theSubClusterIdrepresenting the unique identifier of the subcluster.- Specified by:
getSubClusterIdin classSubClusterInfo- Returns:
- the subcluster identifier
-
setSubClusterId
Description copied from class:SubClusterInfoSet theSubClusterIdrepresenting the unique identifier of the subCluster.- Specified by:
setSubClusterIdin classSubClusterInfo- Parameters:
subClusterId- the subCluster identifier
-
getAMRMServiceAddress
Description copied from class:SubClusterInfoGet the URL of the AM-RM service endpoint of the subclusterResourceManager.- Specified by:
getAMRMServiceAddressin classSubClusterInfo- Returns:
- the URL of the AM-RM service endpoint of the subcluster
ResourceManager
-
setAMRMServiceAddress
Description copied from class:SubClusterInfoSet the URL of the AM-RM service endpoint of the subclusterResourceManager.- Specified by:
setAMRMServiceAddressin classSubClusterInfo- Parameters:
amRMServiceAddress- the URL of the AM-RM service endpoint of the subclusterResourceManager
-
getClientRMServiceAddress
Description copied from class:SubClusterInfoGet the URL of the client-RM service endpoint of the subclusterResourceManager.- Specified by:
getClientRMServiceAddressin classSubClusterInfo- Returns:
- the URL of the client-RM service endpoint of the subcluster
ResourceManager
-
setClientRMServiceAddress
Description copied from class:SubClusterInfoSet the URL of the client-RM service endpoint of the subclusterResourceManager.- Specified by:
setClientRMServiceAddressin classSubClusterInfo- Parameters:
clientRMServiceAddress- the URL of the client-RM service endpoint of the subClusterResourceManager
-
getRMAdminServiceAddress
Description copied from class:SubClusterInfoGet the URL of theResourceManageradministration service.- Specified by:
getRMAdminServiceAddressin classSubClusterInfo- Returns:
- the URL of the
ResourceManageradministration service
-
setRMAdminServiceAddress
Description copied from class:SubClusterInfoSet the URL of theResourceManageradministration service.- Specified by:
setRMAdminServiceAddressin classSubClusterInfo- Parameters:
rmAdminServiceAddress- the URL of theResourceManageradministration service.
-
getRMWebServiceAddress
Description copied from class:SubClusterInfoGet the URL of theResourceManagerweb application interface.- Specified by:
getRMWebServiceAddressin classSubClusterInfo- Returns:
- the URL of the
ResourceManagerweb application interface.
-
setRMWebServiceAddress
Description copied from class:SubClusterInfoSet the URL of theResourceManagerweb application interface.- Specified by:
setRMWebServiceAddressin classSubClusterInfo- Parameters:
rmWebServiceAddress- the URL of theResourceManagerweb application interface.
-
getLastHeartBeat
public long getLastHeartBeat()Description copied from class:SubClusterInfoGet the last heart beat time of the subcluster.- Specified by:
getLastHeartBeatin classSubClusterInfo- Returns:
- the state of the subcluster
-
setLastHeartBeat
public void setLastHeartBeat(long time) Description copied from class:SubClusterInfoSet the last heartbeat time of the subcluster.- Specified by:
setLastHeartBeatin classSubClusterInfo- Parameters:
time- the last heartbeat time of the subcluster
-
getState
Description copied from class:SubClusterInfoGet theSubClusterStateof the subcluster.- Specified by:
getStatein classSubClusterInfo- Returns:
- the state of the subcluster
-
setState
Description copied from class:SubClusterInfoSet theSubClusterStateof the subcluster.- Specified by:
setStatein classSubClusterInfo- Parameters:
state- the state of the subCluster
-
getLastStartTime
public long getLastStartTime()Description copied from class:SubClusterInfoGet the timestamp representing the last start time of the subcluster.- Specified by:
getLastStartTimein classSubClusterInfo- Returns:
- the timestamp representing the last start time of the subcluster
-
setLastStartTime
public void setLastStartTime(long lastStartTime) Description copied from class:SubClusterInfoSet the timestamp representing the last start time of the subcluster.- Specified by:
setLastStartTimein classSubClusterInfo- Parameters:
lastStartTime- the timestamp representing the last start time of the subcluster
-
getCapability
Description copied from class:SubClusterInfoGet the current capacity and utilization of the subcluster. This is the JAXB marshalled string representation of theClusterMetrics.- Specified by:
getCapabilityin classSubClusterInfo- Returns:
- the current capacity and utilization of the subcluster
-
setCapability
Description copied from class:SubClusterInfoSet the current capacity and utilization of the subCluster. This is the JAXB marshalled string representation of theClusterMetrics.- Specified by:
setCapabilityin classSubClusterInfo- Parameters:
capability- the current capacity and utilization of the subcluster
-