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