Class SubClusterHeartbeatRequestPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterHeartbeatRequest
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.SubClusterHeartbeatRequestPBImpl
Protocol buffer based implementation of
SubClusterHeartbeatRequest.-
Constructor Summary
ConstructorsConstructorDescriptionSubClusterHeartbeatRequestPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the current capacity and utilization of the subcluster.longGet the last heart beat time of the subcluster.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProtogetProto()getState()Get theSubClusterStateof the subcluster.Get theSubClusterIdrepresenting the unique identifier of the subcluster.inthashCode()voidsetCapability(String capability) Set the current capacity and utilization of the subCluster.voidsetLastHeartBeat(long time) Set the last heartbeat time of the subcluster.voidsetState(SubClusterState state) Set theSubClusterStateof the subcluster.voidsetSubClusterId(SubClusterId subClusterId) Set theSubClusterIdrepresenting the unique identifier of the subCluster.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.SubClusterHeartbeatRequest
newInstance, newInstance
-
Constructor Details
-
SubClusterHeartbeatRequestPBImpl
public SubClusterHeartbeatRequestPBImpl() -
SubClusterHeartbeatRequestPBImpl
public SubClusterHeartbeatRequestPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterHeartbeatRequestProto getProto() -
hashCode
public int hashCode() -
equals
-
toString
- Overrides:
toStringin classSubClusterHeartbeatRequest
-
getSubClusterId
Description copied from class:SubClusterHeartbeatRequestGet theSubClusterIdrepresenting the unique identifier of the subcluster.- Specified by:
getSubClusterIdin classSubClusterHeartbeatRequest- Returns:
- the subcluster identifier
-
setSubClusterId
Description copied from class:SubClusterHeartbeatRequestSet theSubClusterIdrepresenting the unique identifier of the subCluster.- Specified by:
setSubClusterIdin classSubClusterHeartbeatRequest- Parameters:
subClusterId- the subCluster identifier
-
getLastHeartBeat
public long getLastHeartBeat()Description copied from class:SubClusterHeartbeatRequestGet the last heart beat time of the subcluster.- Specified by:
getLastHeartBeatin classSubClusterHeartbeatRequest- Returns:
- the state of the subcluster
-
setLastHeartBeat
public void setLastHeartBeat(long time) Description copied from class:SubClusterHeartbeatRequestSet the last heartbeat time of the subcluster.- Specified by:
setLastHeartBeatin classSubClusterHeartbeatRequest- Parameters:
time- the last heartbeat time of the subcluster
-
getState
Description copied from class:SubClusterHeartbeatRequestGet theSubClusterStateof the subcluster.- Specified by:
getStatein classSubClusterHeartbeatRequest- Returns:
- the state of the subcluster
-
setState
Description copied from class:SubClusterHeartbeatRequestSet theSubClusterStateof the subcluster.- Specified by:
setStatein classSubClusterHeartbeatRequest- Parameters:
state- the state of the subCluster
-
getCapability
Description copied from class:SubClusterHeartbeatRequestGet the current capacity and utilization of the subcluster. This is the JAXB marshalled string representation of theClusterMetrics.- Specified by:
getCapabilityin classSubClusterHeartbeatRequest- Returns:
- the current capacity and utilization of the subcluster
-
setCapability
Description copied from class:SubClusterHeartbeatRequestSet the current capacity and utilization of the subCluster. This is the JAXB marshalled string representation of theClusterMetrics.- Specified by:
setCapabilityin classSubClusterHeartbeatRequest- Parameters:
capability- the current capacity and utilization of the subcluster
-