public final class NodeResourceState extends Object implements Comparable<NodeResourceState>
Constructor and Description |
---|
NodeResourceState(String node,
ResourceAllocation capacity) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeResourceState o) |
ResourceAllocation |
getAvailableCapacity() |
String |
getNode() |
ResourceAllocation |
getTotalCapacity() |
boolean |
hasAvailable(ResourceAllocation requested) |
void |
increment(ResourceAllocation inUse) |
String |
toString() |
public NodeResourceState(String node, ResourceAllocation capacity)
public ResourceAllocation getTotalCapacity()
public ResourceAllocation getAvailableCapacity()
public boolean hasAvailable(ResourceAllocation requested)
public void increment(ResourceAllocation inUse)
public String getNode()
public int compareTo(NodeResourceState o)
compareTo
in interface Comparable<NodeResourceState>
Copyright © 2015 Actian Corporation. All Rights Reserved.