|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.agent.access.GlobusBlockingJobListener
public class GlobusBlockingJobListener
Subclass of GramJobListener that can be used to create a blocking GRAM request. For example,
GramJob job = new GramJob( rslString ); GlobusBlockingJobListener listener = new GlobusBlockingJobListener(); job.addListener( listener ); job.request( gramContact ); listener.waitFor();Based on Java COG code for globusrun.
Constructor Summary | |
---|---|
GlobusBlockingJobListener()
|
Method Summary | |
---|---|
int |
getStatus()
Get the status code for the Globus GRAM job. |
boolean |
hasFailed()
Check for failure status of job. |
boolean |
hasFinished()
Returns true if the job has finished. |
void |
statusChanged(org.globus.gram.GramJob job)
This function is called by the COG API after the job.request call whenever the job status changes. |
void |
waitFor()
Wait for the job to finish. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobusBlockingJobListener()
Method Detail |
---|
public int getStatus()
public boolean hasFinished()
public boolean hasFailed()
public void statusChanged(org.globus.gram.GramJob job)
statusChanged
in interface org.globus.gram.GramJobListener
job
- A pointer to the job that is running so the status can be
retrieved.public void waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |