@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:
SubClusterId
FederationsubClusterState
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
SubClusterState of the subcluster. |
abstract SubClusterId |
getSubClusterId()
Get the
SubClusterId representing 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
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 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 © 2020 Apache Software Foundation. All rights reserved.