@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class SubClusterHeartbeatRequest extends Object
SubClusterHeartbeatRequest is a report of the runtime information of the subcluster that is participating in federation.
It includes information such as:
SubClusterIdFederationsubClusterState| Constructor and Description | 
|---|
| SubClusterHeartbeatRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract String | getCapability()Get the current capacity and utilization of the subcluster. | 
| abstract long | getLastHeartBeat()Get the last heart beat time of the subcluster. | 
| abstract SubClusterState | getState()Get the  SubClusterStateof the subcluster. | 
| abstract SubClusterId | getSubClusterId()Get the  SubClusterIdrepresenting the unique identifier of the
 subcluster. | 
| static SubClusterHeartbeatRequest | newInstance(SubClusterId subClusterId,
           long lastHeartBeat,
           SubClusterState state,
           String capability) | 
| static SubClusterHeartbeatRequest | newInstance(SubClusterId subClusterId,
           SubClusterState state,
           String capability) | 
| abstract void | setCapability(String capability)Set the current capacity and utilization of the subCluster. | 
| abstract void | setLastHeartBeat(long time)Set the last heartbeat time of the subcluster. | 
| abstract void | setState(SubClusterState state)Set the  SubClusterStateof the subcluster. | 
| abstract void | setSubClusterId(SubClusterId subClusterId)Set the  SubClusterIdrepresenting the unique identifier of the
 subCluster. | 
| String | toString() | 
@InterfaceAudience.Private @InterfaceStability.Unstable public static SubClusterHeartbeatRequest newInstance(SubClusterId subClusterId, SubClusterState state, String capability)
@InterfaceAudience.Private @InterfaceStability.Unstable public static SubClusterHeartbeatRequest newInstance(SubClusterId subClusterId, long lastHeartBeat, SubClusterState state, 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 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 String getCapability()
ClusterMetrics.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setCapability(String capability)
ClusterMetrics.capability - the current capacity and utilization of the subclusterCopyright © 2008–2023 Apache Software Foundation. All rights reserved.