java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.SubClusterInfoPBImpl

@Private @Unstable public class SubClusterInfoPBImpl extends SubClusterInfo
Protocol buffer based implementation of SubClusterInfo.
  • Constructor Details

    • SubClusterInfoPBImpl

      public SubClusterInfoPBImpl()
    • SubClusterInfoPBImpl

      public SubClusterInfoPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto proto)
  • Method Details

    • getProto

      public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterInfoProto getProto()
    • toString

      public String toString()
      Overrides:
      toString in class SubClusterInfo
    • getSubClusterId

      public SubClusterId getSubClusterId()
      Description copied from class: SubClusterInfo
      Get the SubClusterId representing the unique identifier of the subcluster.
      Specified by:
      getSubClusterId in class SubClusterInfo
      Returns:
      the subcluster identifier
    • setSubClusterId

      public void setSubClusterId(SubClusterId subClusterId)
      Description copied from class: SubClusterInfo
      Set the SubClusterId representing the unique identifier of the subCluster.
      Specified by:
      setSubClusterId in class SubClusterInfo
      Parameters:
      subClusterId - the subCluster identifier
    • getAMRMServiceAddress

      public String getAMRMServiceAddress()
      Description copied from class: SubClusterInfo
      Get the URL of the AM-RM service endpoint of the subcluster ResourceManager.
      Specified by:
      getAMRMServiceAddress in class SubClusterInfo
      Returns:
      the URL of the AM-RM service endpoint of the subcluster ResourceManager
    • setAMRMServiceAddress

      public void setAMRMServiceAddress(String amRMServiceAddress)
      Description copied from class: SubClusterInfo
      Set the URL of the AM-RM service endpoint of the subcluster ResourceManager.
      Specified by:
      setAMRMServiceAddress in class SubClusterInfo
      Parameters:
      amRMServiceAddress - the URL of the AM-RM service endpoint of the subcluster ResourceManager
    • getClientRMServiceAddress

      public String getClientRMServiceAddress()
      Description copied from class: SubClusterInfo
      Get the URL of the client-RM service endpoint of the subcluster ResourceManager.
      Specified by:
      getClientRMServiceAddress in class SubClusterInfo
      Returns:
      the URL of the client-RM service endpoint of the subcluster ResourceManager
    • setClientRMServiceAddress

      public void setClientRMServiceAddress(String clientRMServiceAddress)
      Description copied from class: SubClusterInfo
      Set the URL of the client-RM service endpoint of the subcluster ResourceManager.
      Specified by:
      setClientRMServiceAddress in class SubClusterInfo
      Parameters:
      clientRMServiceAddress - the URL of the client-RM service endpoint of the subCluster ResourceManager
    • getRMAdminServiceAddress

      public String getRMAdminServiceAddress()
      Description copied from class: SubClusterInfo
      Get the URL of the ResourceManager administration service.
      Specified by:
      getRMAdminServiceAddress in class SubClusterInfo
      Returns:
      the URL of the ResourceManager administration service
    • setRMAdminServiceAddress

      public void setRMAdminServiceAddress(String rmAdminServiceAddress)
      Description copied from class: SubClusterInfo
      Set the URL of the ResourceManager administration service.
      Specified by:
      setRMAdminServiceAddress in class SubClusterInfo
      Parameters:
      rmAdminServiceAddress - the URL of the ResourceManager administration service.
    • getRMWebServiceAddress

      public String getRMWebServiceAddress()
      Description copied from class: SubClusterInfo
      Get the URL of the ResourceManager web application interface.
      Specified by:
      getRMWebServiceAddress in class SubClusterInfo
      Returns:
      the URL of the ResourceManager web application interface.
    • setRMWebServiceAddress

      public void setRMWebServiceAddress(String rmWebServiceAddress)
      Description copied from class: SubClusterInfo
      Set the URL of the ResourceManager web application interface.
      Specified by:
      setRMWebServiceAddress in class SubClusterInfo
      Parameters:
      rmWebServiceAddress - the URL of the ResourceManager web application interface.
    • getLastHeartBeat

      public long getLastHeartBeat()
      Description copied from class: SubClusterInfo
      Get the last heart beat time of the subcluster.
      Specified by:
      getLastHeartBeat in class SubClusterInfo
      Returns:
      the state of the subcluster
    • setLastHeartBeat

      public void setLastHeartBeat(long time)
      Description copied from class: SubClusterInfo
      Set the last heartbeat time of the subcluster.
      Specified by:
      setLastHeartBeat in class SubClusterInfo
      Parameters:
      time - the last heartbeat time of the subcluster
    • getState

      public SubClusterState getState()
      Description copied from class: SubClusterInfo
      Get the SubClusterState of the subcluster.
      Specified by:
      getState in class SubClusterInfo
      Returns:
      the state of the subcluster
    • setState

      public void setState(SubClusterState state)
      Description copied from class: SubClusterInfo
      Set the SubClusterState of the subcluster.
      Specified by:
      setState in class SubClusterInfo
      Parameters:
      state - the state of the subCluster
    • getLastStartTime

      public long getLastStartTime()
      Description copied from class: SubClusterInfo
      Get the timestamp representing the last start time of the subcluster.
      Specified by:
      getLastStartTime in class SubClusterInfo
      Returns:
      the timestamp representing the last start time of the subcluster
    • setLastStartTime

      public void setLastStartTime(long lastStartTime)
      Description copied from class: SubClusterInfo
      Set the timestamp representing the last start time of the subcluster.
      Specified by:
      setLastStartTime in class SubClusterInfo
      Parameters:
      lastStartTime - the timestamp representing the last start time of the subcluster
    • getCapability

      public String getCapability()
      Description copied from class: SubClusterInfo
      Get the current capacity and utilization of the subcluster. This is the JAXB marshalled string representation of the ClusterMetrics.
      Specified by:
      getCapability in class SubClusterInfo
      Returns:
      the current capacity and utilization of the subcluster
    • setCapability

      public void setCapability(String capability)
      Description copied from class: SubClusterInfo
      Set the current capacity and utilization of the subCluster. This is the JAXB marshalled string representation of the ClusterMetrics.
      Specified by:
      setCapability in class SubClusterInfo
      Parameters:
      capability - the current capacity and utilization of the subcluster