@PublicAPI public class RMState extends Object implements Serializable
Constructor and Description |
---|
RMState(RMStateNodeUrls rmNodeUrls,
Long maxNumberOfNodes) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAliveNodes()
Returns a set containing all alive nodes urls in the resource manager.
|
Set<String> |
getAllNodes()
Returns a set containing all nodes urls (including dead nodes) in the resource manager.
|
Set<String> |
getFreeNodes()
Returns a set containing all free nodes urls in the resource manager.
|
int |
getFreeNodesNumber()
Returns free nodes number in the resource manager.
|
Long |
getMaxNumberOfNodes() |
protected RMStateNodeUrls |
getRmNodeUrls() |
int |
getTotalAliveNodesNumber()
Returns total alive nodes number in the resource manager.
|
int |
getTotalNodesNumber()
Returns total nodes number (including dead nodes) in the resource manager.
|
org.objectweb.proactive.core.util.wrapper.BooleanWrapper |
hasFreeResources()
Return true if the scheduler has free resources, false if not.
|
public RMState(RMStateNodeUrls rmNodeUrls, Long maxNumberOfNodes)
public Long getMaxNumberOfNodes()
protected RMStateNodeUrls getRmNodeUrls()
public org.objectweb.proactive.core.util.wrapper.BooleanWrapper hasFreeResources()
public int getFreeNodesNumber()
public Set<String> getFreeNodes()
public int getTotalAliveNodesNumber()
public Set<String> getAliveNodes()
public int getTotalNodesNumber()