@InterfaceAudience.Private @InterfaceStability.Unstable public class SubClusterHeartbeatRequestPBImpl extends SubClusterHeartbeatRequest
SubClusterHeartbeatRequest
.Constructor and Description |
---|
SubClusterHeartbeatRequestPBImpl() |
SubClusterHeartbeatRequestPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getCapability()
Get the current capacity and utilization of the subcluster.
|
long |
getLastHeartBeat()
Get the last heart beat time of the subcluster.
|
org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto |
getProto() |
SubClusterState |
getState()
Get the
SubClusterState of the subcluster. |
SubClusterId |
getSubClusterId()
Get the
SubClusterId representing the unique identifier of the
subcluster. |
int |
hashCode() |
void |
setCapability(String capability)
Set the current capacity and utilization of the subCluster.
|
void |
setLastHeartBeat(long time)
Set the last heartbeat time of the subcluster.
|
void |
setState(SubClusterState state)
Set the
SubClusterState of the subcluster. |
void |
setSubClusterId(SubClusterId subClusterId)
Set the
SubClusterId representing the unique identifier of the
subCluster. |
String |
toString() |
newInstance, newInstance
public SubClusterHeartbeatRequestPBImpl()
public SubClusterHeartbeatRequestPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto proto)
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto getProto()
public String toString()
toString
in class SubClusterHeartbeatRequest
public SubClusterId getSubClusterId()
SubClusterHeartbeatRequest
SubClusterId
representing the unique identifier of the
subcluster.getSubClusterId
in class SubClusterHeartbeatRequest
public void setSubClusterId(SubClusterId subClusterId)
SubClusterHeartbeatRequest
SubClusterId
representing the unique identifier of the
subCluster.setSubClusterId
in class SubClusterHeartbeatRequest
subClusterId
- the subCluster identifierpublic long getLastHeartBeat()
SubClusterHeartbeatRequest
getLastHeartBeat
in class SubClusterHeartbeatRequest
public void setLastHeartBeat(long time)
SubClusterHeartbeatRequest
setLastHeartBeat
in class SubClusterHeartbeatRequest
time
- the last heartbeat time of the subclusterpublic SubClusterState getState()
SubClusterHeartbeatRequest
SubClusterState
of the subcluster.getState
in class SubClusterHeartbeatRequest
public void setState(SubClusterState state)
SubClusterHeartbeatRequest
SubClusterState
of the subcluster.setState
in class SubClusterHeartbeatRequest
state
- the state of the subClusterpublic String getCapability()
SubClusterHeartbeatRequest
ClusterMetrics
.getCapability
in class SubClusterHeartbeatRequest
public void setCapability(String capability)
SubClusterHeartbeatRequest
ClusterMetrics
.setCapability
in class SubClusterHeartbeatRequest
capability
- the current capacity and utilization of the subclusterCopyright © 2008–2020 Apache Software Foundation. All rights reserved.