java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.distributed.ClusterNode

public class ClusterNode extends Object
Represents a node in the cluster from the NodeQueueLoadMonitor's perspective
  • Constructor Details

    • ClusterNode

      public ClusterNode(org.apache.hadoop.yarn.api.records.NodeId nodeId)
  • Method Details

    • setProperties

      public ClusterNode setProperties(ClusterNode.Properties properties)
    • getAllocatedResource

      public org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
    • getAvailableResource

      public org.apache.hadoop.yarn.api.records.Resource getAvailableResource()
    • getCapability

      public org.apache.hadoop.yarn.api.records.Resource getCapability()
    • hasLabel

      public boolean hasLabel(String label)
    • getTimestamp

      public long getTimestamp()
    • getQueueLength

      public int getQueueLength()
    • getQueueWaitTime

      public int getQueueWaitTime()
    • getQueueCapacity

      public int getQueueCapacity()
    • compareAndIncrementAllocation

      public boolean compareAndIncrementAllocation(int incrementQLen, org.apache.hadoop.yarn.util.resource.ResourceCalculator resourceCalculator, org.apache.hadoop.yarn.api.records.Resource requested)
    • compareAndIncrementAllocation

      public boolean compareAndIncrementAllocation(int incrementQLen)
    • isQueueFull

      public boolean isQueueFull()