|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.proactive.scheduler.RessourceManager
public class RessourceManager
This is the class that is responsible for the "management" (allocation, disallocation ...) of the "ressources" (processing power).
| Constructor Summary | |
|---|---|
RessourceManager()
|
|
RessourceManager(BooleanWrapper b)
the constructor of the class ... |
|
| Method Summary | |
|---|---|
BooleanWrapper |
checkReservation(java.lang.String jobId)
|
void |
freeNodes(java.lang.String jobId,
boolean mainIsDead)
frees the allocated nodes of the job associated to the specified jobId |
int |
getAvailableNodesNb()
This method returns the number of ressources available. |
Node[] |
getNodes(java.lang.String jobId,
int askedNodes)
Returns all the nodes that were allocated to the job and moves them from the waiting queue to the used queue. |
BooleanWrapper |
isAvailable(int ressourceNumber)
Tests the availlability of "ressourceNumber" of ressources. |
java.util.Vector |
nodes(java.lang.String nodeURL)
Provides the information about the nodes (state, job running, properties ...) |
Node |
reserveNodes(java.lang.String jobId,
int ressourceNumber)
Reserve "ressourceNumber" of ressources and returns the first reserved node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RessourceManager()
public RessourceManager(BooleanWrapper b)
b - nothing special| Method Detail |
|---|
public int getAvailableNodesNb()
public void freeNodes(java.lang.String jobId,
boolean mainIsDead)
jobId - the id of the jobmainIsDead - true if the main node is dead
public Node reserveNodes(java.lang.String jobId,
int ressourceNumber)
ressourceNumber - is the number of ressources to be granted.jobId - is the number of the job reserving these ressources
public Node[] getNodes(java.lang.String jobId,
int askedNodes)
jobId - is the id of the job.public BooleanWrapper isAvailable(int ressourceNumber)
ressourceNumber - is the number of ressources needed.
public java.util.Vector nodes(java.lang.String nodeURL)
public BooleanWrapper checkReservation(java.lang.String jobId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||