|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.exec.service.test.throughput.util.JobManager
public class JobManager
Holds a list of references and information of all submitted jobs that are still alive on the server-side. Also holds information about how many jobs had been submitted and how many jobs had been completed (including termination)
| Field Summary | |
|---|---|
private java.lang.Integer |
accepted
|
private java.lang.Integer |
completed
|
private static org.apache.commons.logging.Log |
log
|
private java.util.HashMap<java.lang.String,JobInformation> |
outstandingJobs
|
private java.util.HashMap<JobStateType,java.lang.Integer> |
stateCountMap
|
private Test |
test
|
| Constructor Summary | |
|---|---|
JobManager(Test test)
|
|
| Method Summary | |
|---|---|
void |
addJob(org.globus.axis.message.addressing.EndpointReferenceType epr,
JobInformation entry)
Add a job |
JobInformation |
getJob(org.globus.axis.message.addressing.EndpointReferenceType epr)
Get information about a job or null in case the job does not exist anymore. |
org.globus.axis.message.addressing.EndpointReferenceType[] |
getJobList()
Get a list of EPR's of all jobs that had been accepted and that still exist on the server-side. |
TestStatus |
getTestStatus()
Get the number of overall accepted jobs. |
boolean |
isJobGoneOrDestroyed(org.globus.axis.message.addressing.EndpointReferenceType epr)
Check whether a job had gone or termination with destroyAfterCleanup had been reqested. |
void |
removeJob(org.globus.axis.message.addressing.EndpointReferenceType epr)
Remove information of a job. |
JobInformation |
updateJobState(org.globus.axis.message.addressing.EndpointReferenceType epr,
StateEnumeration state)
Update the state of a job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.commons.logging.Log log
private java.util.HashMap<JobStateType,java.lang.Integer> stateCountMap
private java.util.HashMap<java.lang.String,JobInformation> outstandingJobs
private java.lang.Integer accepted
private java.lang.Integer completed
private Test test
| Constructor Detail |
|---|
public JobManager(Test test)
| Method Detail |
|---|
public org.globus.axis.message.addressing.EndpointReferenceType[] getJobList()
public JobInformation getJob(org.globus.axis.message.addressing.EndpointReferenceType epr)
public void addJob(org.globus.axis.message.addressing.EndpointReferenceType epr,
JobInformation entry)
public JobInformation updateJobState(org.globus.axis.message.addressing.EndpointReferenceType epr,
StateEnumeration state)
public void removeJob(org.globus.axis.message.addressing.EndpointReferenceType epr)
public boolean isJobGoneOrDestroyed(org.globus.axis.message.addressing.EndpointReferenceType epr)
public TestStatus getTestStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||