|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.inca.agent.access.GlobusNonBlockingJobListener
public class GlobusNonBlockingJobListener
Subclass of GramJobListener that can be used to create a non-blocking GRAM request. For example,
GramJob job = new GramJob( rslString ); GlobusBlockingJobListener listener = new GlobusBlockingJobListener(); job.addListener( listener ); job.request( gramContact ); listener.waitFor(); // job is now activeBased on Java COG code for globusrun.
| Constructor Summary | |
|---|---|
GlobusNonBlockingJobListener()
|
|
| Method Summary | |
|---|---|
int |
getStatus()
Get the status code for the Globus GRAM job. |
boolean |
isActive()
Check for active status of job. |
boolean |
isFailed()
Check for failure status of job. |
boolean |
isFinished()
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 GlobusNonBlockingJobListener()
| Method Detail |
|---|
public int getStatus()
public boolean isFinished()
public boolean isFailed()
public boolean isActive()
public void statusChanged(org.globus.gram.GramJob job)
statusChanged in interface org.globus.gram.GramJobListenerjob - 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 | ||||||||