public class ClusterNode extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterNode.Properties
Properties class used to initialize/change fields in ClusterNode.
|
Constructor and Description |
---|
ClusterNode(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndIncrementAllocation(int incrementQLen) |
boolean |
compareAndIncrementAllocation(int incrementQLen,
org.apache.hadoop.yarn.util.resource.ResourceCalculator resourceCalculator,
org.apache.hadoop.yarn.api.records.Resource requested) |
org.apache.hadoop.yarn.api.records.Resource |
getAllocatedResource() |
org.apache.hadoop.yarn.api.records.Resource |
getAvailableResource() |
org.apache.hadoop.yarn.api.records.Resource |
getCapability() |
int |
getQueueCapacity() |
int |
getQueueLength() |
int |
getQueueWaitTime() |
long |
getTimestamp() |
boolean |
hasLabel(String label) |
boolean |
isQueueFull() |
ClusterNode |
setProperties(ClusterNode.Properties properties) |
public ClusterNode setProperties(ClusterNode.Properties properties)
public org.apache.hadoop.yarn.api.records.Resource getAllocatedResource()
public org.apache.hadoop.yarn.api.records.Resource getAvailableResource()
public org.apache.hadoop.yarn.api.records.Resource getCapability()
public boolean hasLabel(String label)
public long getTimestamp()
public int getQueueLength()
public int getQueueWaitTime()
public int getQueueCapacity()
public boolean compareAndIncrementAllocation(int incrementQLen, org.apache.hadoop.yarn.util.resource.ResourceCalculator resourceCalculator, org.apache.hadoop.yarn.api.records.Resource requested)
public boolean compareAndIncrementAllocation(int incrementQLen)
public boolean isQueueFull()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.