Class ClusterNode
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.distributed.ClusterNode
Represents a node in the cluster from the NodeQueueLoadMonitor's perspective
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProperties class used to initialize/change fields in ClusterNode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompareAndIncrementAllocation(int incrementQLen) booleancompareAndIncrementAllocation(int incrementQLen, org.apache.hadoop.yarn.util.resource.ResourceCalculator resourceCalculator, org.apache.hadoop.yarn.api.records.Resource requested) org.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.api.records.Resourceorg.apache.hadoop.yarn.api.records.ResourceintintintlongbooleanbooleansetProperties(ClusterNode.Properties properties)
-
Constructor Details
-
ClusterNode
public ClusterNode(org.apache.hadoop.yarn.api.records.NodeId nodeId)
-
-
Method Details
-
setProperties
-
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
-
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()
-