Class SubClusterInfo
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo
- Direct Known Subclasses:
SubClusterInfoPBImpl
SubClusterInfo is a report of the runtime information of the subcluster that is participating 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 TypeMethodDescriptionbooleanabstract StringGet the URL of the AM-RM service endpoint of the subclusterResourceManager.abstract StringGet the current capacity and utilization of the subcluster.abstract StringGet the URL of the client-RM service endpoint of the subclusterResourceManager.abstract longGet the last heart beat time of the subcluster.abstract longGet the timestamp representing the last start time of the subcluster.abstract StringGet the URL of theResourceManageradministration service.abstract StringGet the URL of theResourceManagerweb application interface.abstract SubClusterStategetState()Get theSubClusterStateof the subcluster.abstract SubClusterIdGet theSubClusterIdrepresenting the unique identifier of the subcluster.inthashCode()static SubClusterInfonewInstance(SubClusterId subClusterId, String amRMServiceAddress, String clientRMServiceAddress, String rmAdminServiceAddress, String rmWebServiceAddress, long lastHeartBeat, SubClusterState state, long lastStartTime, String capability) static SubClusterInfonewInstance(SubClusterId subClusterId, String amRMServiceAddress, String clientRMServiceAddress, String rmAdminServiceAddress, String rmWebServiceAddress, SubClusterState state, long lastStartTime, String capability) static SubClusterInfonewInstance(SubClusterId subClusterId, String rmWebServiceAddress, SubClusterState state, long lastStartTime, long lastHeartBeat, String capability) abstract voidsetAMRMServiceAddress(String amRMServiceAddress) Set the URL of the AM-RM service endpoint of the subclusterResourceManager.abstract voidsetCapability(String capability) Set the current capacity and utilization of the subCluster.abstract voidsetClientRMServiceAddress(String clientRMServiceAddress) Set the URL of the client-RM service endpoint of the subclusterResourceManager.abstract voidsetLastHeartBeat(long time) Set the last heartbeat time of the subcluster.abstract voidsetLastStartTime(long lastStartTime) Set the timestamp representing the last start time of the subcluster.abstract voidsetRMAdminServiceAddress(String rmAdminServiceAddress) Set the URL of theResourceManageradministration service.abstract voidsetRMWebServiceAddress(String rmWebServiceAddress) Set the URL of theResourceManagerweb application interface.abstract voidsetState(SubClusterState state) Set theSubClusterStateof the subcluster.abstract voidsetSubClusterId(SubClusterId subClusterId) Set theSubClusterIdrepresenting the unique identifier of the subCluster.toString()
-
Constructor Details
-
SubClusterInfo
public SubClusterInfo()
-
-
Method Details
-
newInstance
@Private @Unstable public static SubClusterInfo newInstance(SubClusterId subClusterId, String amRMServiceAddress, String clientRMServiceAddress, String rmAdminServiceAddress, String rmWebServiceAddress, SubClusterState state, long lastStartTime, String capability) -
newInstance
@Private @Unstable public static SubClusterInfo newInstance(SubClusterId subClusterId, String amRMServiceAddress, String clientRMServiceAddress, String rmAdminServiceAddress, String rmWebServiceAddress, long lastHeartBeat, SubClusterState state, long lastStartTime, String capability) -
newInstance
public static SubClusterInfo newInstance(SubClusterId subClusterId, String rmWebServiceAddress, SubClusterState state, long lastStartTime, long lastHeartBeat, String capability) -
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
-
getAMRMServiceAddress
Get the URL of the AM-RM service endpoint of the subclusterResourceManager.- Returns:
- the URL of the AM-RM service endpoint of the subcluster
ResourceManager
-
setAMRMServiceAddress
Set the URL of the AM-RM service endpoint of the subclusterResourceManager.- Parameters:
amRMServiceAddress- the URL of the AM-RM service endpoint of the subclusterResourceManager
-
getClientRMServiceAddress
Get the URL of the client-RM service endpoint of the subclusterResourceManager.- Returns:
- the URL of the client-RM service endpoint of the subcluster
ResourceManager
-
setClientRMServiceAddress
Set the URL of the client-RM service endpoint of the subclusterResourceManager.- Parameters:
clientRMServiceAddress- the URL of the client-RM service endpoint of the subClusterResourceManager
-
getRMAdminServiceAddress
Get the URL of theResourceManageradministration service.- Returns:
- the URL of the
ResourceManageradministration service
-
setRMAdminServiceAddress
Set the URL of theResourceManageradministration service.- Parameters:
rmAdminServiceAddress- the URL of theResourceManageradministration service.
-
getRMWebServiceAddress
Get the URL of theResourceManagerweb application interface.- Returns:
- the URL of the
ResourceManagerweb application interface.
-
setRMWebServiceAddress
Set the URL of theResourceManagerweb application interface.- Parameters:
rmWebServiceAddress- the URL of theResourceManagerweb application interface.
-
getLastHeartBeat
@Public @Unstable public abstract long getLastHeartBeat()Get the last heart beat time of the subcluster.- Returns:
- the state of the subcluster
-
setLastHeartBeat
@Private @Unstable public abstract void setLastHeartBeat(long time) Set the last heartbeat time of the subcluster.- Parameters:
time- the last heartbeat time of the subcluster
-
getState
Get theSubClusterStateof the subcluster.- Returns:
- the state of the subcluster
-
setState
Set theSubClusterStateof the subcluster.- Parameters:
state- the state of the subCluster
-
getLastStartTime
@Public @Unstable public abstract long getLastStartTime()Get the timestamp representing the last start time of the subcluster.- Returns:
- the timestamp representing the last start time of the subcluster
-
setLastStartTime
@Private @Unstable public abstract void setLastStartTime(long lastStartTime) Set the timestamp representing the last start time of the subcluster.- Parameters:
lastStartTime- the timestamp representing the last start time of the subcluster
-
getCapability
Get the current capacity and utilization of the subcluster. This is the JAXB marshalled string representation of theClusterMetrics.- Returns:
- the current capacity and utilization of the subcluster
-
setCapability
Set the current capacity and utilization of the subCluster. This is the JAXB marshalled string representation of theClusterMetrics.- Parameters:
capability- the current capacity and utilization of the subcluster
-
toString
-
equals
-
hashCode
public int hashCode()
-