@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class SubClusterInfo extends Object
SubClusterInfo is a report of the runtime information of the subcluster that is participating in federation.
It includes information such as:
SubClusterId
FederationsubClusterState
Constructor and Description |
---|
SubClusterInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
abstract String |
getAMRMServiceAddress()
Get the URL of the AM-RM service endpoint of the subcluster
ResourceManager . |
abstract String |
getCapability()
Get the current capacity and utilization of the subcluster.
|
abstract String |
getClientRMServiceAddress()
Get the URL of the client-RM service endpoint of the subcluster
ResourceManager . |
abstract long |
getLastHeartBeat()
Get the last heart beat time of the subcluster.
|
abstract long |
getLastStartTime()
Get the timestamp representing the last start time of the subcluster.
|
abstract String |
getRMAdminServiceAddress()
Get the URL of the
ResourceManager administration service. |
abstract String |
getRMWebServiceAddress()
Get the URL of the
ResourceManager web application interface. |
abstract SubClusterState |
getState()
Get the
SubClusterState of the subcluster. |
abstract SubClusterId |
getSubClusterId()
Get the
SubClusterId representing the unique identifier of the
subcluster. |
int |
hashCode() |
static SubClusterInfo |
newInstance(SubClusterId subClusterId,
String amRMServiceAddress,
String clientRMServiceAddress,
String rmAdminServiceAddress,
String rmWebServiceAddress,
long lastHeartBeat,
SubClusterState state,
long lastStartTime,
String capability) |
static SubClusterInfo |
newInstance(SubClusterId subClusterId,
String amRMServiceAddress,
String clientRMServiceAddress,
String rmAdminServiceAddress,
String rmWebServiceAddress,
SubClusterState state,
long lastStartTime,
String capability) |
static SubClusterInfo |
newInstance(SubClusterId subClusterId,
String rmWebServiceAddress,
SubClusterState state,
long lastStartTime,
long lastHeartBeat,
String capability) |
abstract void |
setAMRMServiceAddress(String amRMServiceAddress)
Set the URL of the AM-RM service endpoint of the subcluster
ResourceManager . |
abstract void |
setCapability(String capability)
Set the current capacity and utilization of the subCluster.
|
abstract void |
setClientRMServiceAddress(String clientRMServiceAddress)
Set the URL of the client-RM service endpoint of the subcluster
ResourceManager . |
abstract void |
setLastHeartBeat(long time)
Set the last heartbeat time of the subcluster.
|
abstract void |
setLastStartTime(long lastStartTime)
Set the timestamp representing the last start time of the subcluster.
|
abstract void |
setRMAdminServiceAddress(String rmAdminServiceAddress)
Set the URL of the
ResourceManager administration service. |
abstract void |
setRMWebServiceAddress(String rmWebServiceAddress)
Set the URL of the
ResourceManager web application interface. |
abstract void |
setState(SubClusterState state)
Set the
SubClusterState of the subcluster. |
abstract void |
setSubClusterId(SubClusterId subClusterId)
Set the
SubClusterId representing the unique identifier of the
subCluster. |
String |
toString() |
@InterfaceAudience.Private @InterfaceStability.Unstable public static SubClusterInfo newInstance(SubClusterId subClusterId, String amRMServiceAddress, String clientRMServiceAddress, String rmAdminServiceAddress, String rmWebServiceAddress, SubClusterState state, long lastStartTime, String capability)
@InterfaceAudience.Private @InterfaceStability.Unstable public static SubClusterInfo newInstance(SubClusterId subClusterId, String amRMServiceAddress, String clientRMServiceAddress, String rmAdminServiceAddress, String rmWebServiceAddress, long lastHeartBeat, SubClusterState state, long lastStartTime, String capability)
public static SubClusterInfo newInstance(SubClusterId subClusterId, String rmWebServiceAddress, SubClusterState state, long lastStartTime, long lastHeartBeat, String capability)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract SubClusterId getSubClusterId()
SubClusterId
representing the unique identifier of the
subcluster.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setSubClusterId(SubClusterId subClusterId)
SubClusterId
representing the unique identifier of the
subCluster.subClusterId
- the subCluster identifier@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getAMRMServiceAddress()
ResourceManager
.ResourceManager
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setAMRMServiceAddress(String amRMServiceAddress)
ResourceManager
.amRMServiceAddress
- the URL of the AM-RM service endpoint of the
subcluster ResourceManager
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getClientRMServiceAddress()
ResourceManager
.ResourceManager
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setClientRMServiceAddress(String clientRMServiceAddress)
ResourceManager
.clientRMServiceAddress
- the URL of the client-RM service endpoint of
the subCluster ResourceManager
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getRMAdminServiceAddress()
ResourceManager
administration service.ResourceManager
administration service@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setRMAdminServiceAddress(String rmAdminServiceAddress)
ResourceManager
administration service.rmAdminServiceAddress
- the URL of the ResourceManager
administration service.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getRMWebServiceAddress()
ResourceManager
web application interface.ResourceManager
web application
interface.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setRMWebServiceAddress(String rmWebServiceAddress)
ResourceManager
web application interface.rmWebServiceAddress
- the URL of the ResourceManager
web
application interface.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getLastHeartBeat()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setLastHeartBeat(long time)
time
- the last heartbeat time of the subcluster@InterfaceAudience.Public @InterfaceStability.Unstable public abstract SubClusterState getState()
SubClusterState
of the subcluster.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setState(SubClusterState state)
SubClusterState
of the subcluster.state
- the state of the subCluster@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getLastStartTime()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setLastStartTime(long lastStartTime)
lastStartTime
- the timestamp representing the last start time of the
subcluster@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getCapability()
ClusterMetrics
.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setCapability(String capability)
ClusterMetrics
.capability
- the current capacity and utilization of the subclusterCopyright © 2008–2024 Apache Software Foundation. All rights reserved.