|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.JobRequestEntry
public class JobRequestEntry
This class was created to keep a pair of Job and Request used to cancel
requests and simplify as well as downsize the code of
EBGridManager
Constructor Summary | |
---|---|
JobRequestEntry(int jobId,
long requestID)
Constructs a new Pair of Job and Request. |
Method Summary | |
---|---|
void |
addPeer(Gump gump)
Adds a new pair of Request (by id) and respective GuMP. |
void |
cancelRequests()
Cancels (calls noMoreGMs) the requests made for the Job. |
java.util.Collection<Gump> |
getPeers()
|
long |
getRequestID()
|
boolean |
isPaused()
|
void |
pauseRequest()
|
void |
resumeRequest()
|
java.lang.String |
toString()
Returns a String with Job Id following toString of the reqs Map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobRequestEntry(int jobId, long requestID)
jobId
- The Job to which the request was made.Method Detail |
---|
public void addPeer(Gump gump)
gump
- The Grid Machine Provider to which the request was made.public void cancelRequests()
public java.lang.String toString()
toString
in class java.lang.Object
public long getRequestID()
public java.util.Collection<Gump> getPeers()
public void pauseRequest()
public void resumeRequest()
public boolean isPaused()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |