@InterfaceAudience.Private @InterfaceStability.Unstable public class SubClusterInfoPBImpl extends SubClusterInfo
SubClusterInfo
.Constructor and Description |
---|
SubClusterInfoPBImpl() |
SubClusterInfoPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto proto) |
Modifier and Type | Method and Description |
---|---|
String |
getAMRMServiceAddress()
Get the URL of the AM-RM service endpoint of the subcluster
ResourceManager . |
String |
getCapability()
Get the current capacity and utilization of the subcluster.
|
String |
getClientRMServiceAddress()
Get the URL of the client-RM service endpoint of the subcluster
ResourceManager . |
long |
getLastHeartBeat()
Get the last heart beat time of the subcluster.
|
long |
getLastStartTime()
Get the timestamp representing the last start time of the subcluster.
|
org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto |
getProto() |
String |
getRMAdminServiceAddress()
Get the URL of the
ResourceManager administration service. |
String |
getRMWebServiceAddress()
Get the URL of the
ResourceManager web application interface. |
SubClusterState |
getState()
Get the
SubClusterState of the subcluster. |
SubClusterId |
getSubClusterId()
Get the
SubClusterId representing the unique identifier of the
subcluster. |
void |
setAMRMServiceAddress(String amRMServiceAddress)
Set the URL of the AM-RM service endpoint of the subcluster
ResourceManager . |
void |
setCapability(String capability)
Set the current capacity and utilization of the subCluster.
|
void |
setClientRMServiceAddress(String clientRMServiceAddress)
Set the URL of the client-RM service endpoint of the subcluster
ResourceManager . |
void |
setLastHeartBeat(long time)
Set the last heartbeat time of the subcluster.
|
void |
setLastStartTime(long lastStartTime)
Set the timestamp representing the last start time of the subcluster.
|
void |
setRMAdminServiceAddress(String rmAdminServiceAddress)
Set the URL of the
ResourceManager administration service. |
void |
setRMWebServiceAddress(String rmWebServiceAddress)
Set the URL of the
ResourceManager web application interface. |
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() |
equals, hashCode, newInstance, newInstance
public SubClusterInfoPBImpl()
public SubClusterInfoPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto proto)
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto getProto()
public String toString()
toString
in class SubClusterInfo
public SubClusterId getSubClusterId()
SubClusterInfo
SubClusterId
representing the unique identifier of the
subcluster.getSubClusterId
in class SubClusterInfo
public void setSubClusterId(SubClusterId subClusterId)
SubClusterInfo
SubClusterId
representing the unique identifier of the
subCluster.setSubClusterId
in class SubClusterInfo
subClusterId
- the subCluster identifierpublic String getAMRMServiceAddress()
SubClusterInfo
ResourceManager
.getAMRMServiceAddress
in class SubClusterInfo
ResourceManager
public void setAMRMServiceAddress(String amRMServiceAddress)
SubClusterInfo
ResourceManager
.setAMRMServiceAddress
in class SubClusterInfo
amRMServiceAddress
- the URL of the AM-RM service endpoint of the
subcluster ResourceManager
public String getClientRMServiceAddress()
SubClusterInfo
ResourceManager
.getClientRMServiceAddress
in class SubClusterInfo
ResourceManager
public void setClientRMServiceAddress(String clientRMServiceAddress)
SubClusterInfo
ResourceManager
.setClientRMServiceAddress
in class SubClusterInfo
clientRMServiceAddress
- the URL of the client-RM service endpoint of
the subCluster ResourceManager
public String getRMAdminServiceAddress()
SubClusterInfo
ResourceManager
administration service.getRMAdminServiceAddress
in class SubClusterInfo
ResourceManager
administration servicepublic void setRMAdminServiceAddress(String rmAdminServiceAddress)
SubClusterInfo
ResourceManager
administration service.setRMAdminServiceAddress
in class SubClusterInfo
rmAdminServiceAddress
- the URL of the ResourceManager
administration service.public String getRMWebServiceAddress()
SubClusterInfo
ResourceManager
web application interface.getRMWebServiceAddress
in class SubClusterInfo
ResourceManager
web application
interface.public void setRMWebServiceAddress(String rmWebServiceAddress)
SubClusterInfo
ResourceManager
web application interface.setRMWebServiceAddress
in class SubClusterInfo
rmWebServiceAddress
- the URL of the ResourceManager
web
application interface.public long getLastHeartBeat()
SubClusterInfo
getLastHeartBeat
in class SubClusterInfo
public void setLastHeartBeat(long time)
SubClusterInfo
setLastHeartBeat
in class SubClusterInfo
time
- the last heartbeat time of the subclusterpublic SubClusterState getState()
SubClusterInfo
SubClusterState
of the subcluster.getState
in class SubClusterInfo
public void setState(SubClusterState state)
SubClusterInfo
SubClusterState
of the subcluster.setState
in class SubClusterInfo
state
- the state of the subClusterpublic long getLastStartTime()
SubClusterInfo
getLastStartTime
in class SubClusterInfo
public void setLastStartTime(long lastStartTime)
SubClusterInfo
setLastStartTime
in class SubClusterInfo
lastStartTime
- the timestamp representing the last start time of the
subclusterpublic String getCapability()
SubClusterInfo
ClusterMetrics
.getCapability
in class SubClusterInfo
public void setCapability(String capability)
SubClusterInfo
ClusterMetrics
.setCapability
in class SubClusterInfo
capability
- the current capacity and utilization of the subclusterCopyright © 2008–2023 Apache Software Foundation. All rights reserved.