|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobManager
Interface representing the entry-point to the GridSAM job submission and monitoring system.
Method Summary | |
---|---|
JobInstance |
findJobInstance(java.lang.String pID)
find a job instance using the job identifier |
JobInstance[] |
findJobInstance(java.lang.String[] pIDs)
find a job instance using the job identifier |
void |
registerChangeListener(java.lang.String pID,
JobInstanceChangeListener pChangeListener)
register a listener to listen to change to job |
JobInstance |
rerunJob(java.lang.String pJobID,
JobState startState,
org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDesc,
boolean pStartSuspend)
Rerun a job from a specified stage and reuse the same working directory. |
JobInstance |
startJob(java.lang.String pID)
Start a pending job. |
JobInstance[] |
startJob(java.lang.String[] pIDs)
Start a set of pending jobs. |
JobInstance |
submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDesc)
submit a job to this JobManager instance. |
JobInstance[] |
submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pDesc,
boolean pSuspended)
submit a set of jobs to this JobManager instance as a bulk operation. |
JobInstance |
submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDesc,
boolean pSuspended)
submit a job to this JobManager instances |
void |
terminateJob(java.lang.String pID)
terminate the job identified |
void |
terminateJob(java.lang.String[] pIDs)
terminate the jobs identified |
void |
unregisterChangeListener(java.lang.String pID,
JobInstanceChangeListener pChangeListener)
unregister a previously registered listener with the given job ID |
Method Detail |
---|
JobInstance submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDesc) throws JobManagerException, SubmissionException, UnsupportedFeatureException
pDesc
- the job description
SubmissionException
- if the job cannot be submitted
UnsupportedFeatureException
- if the job description contains a feature this JobManager
does not common
JobManagerException
JobInstance[] submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pDesc, boolean pSuspended) throws JobManagerException, SubmissionException, UnsupportedFeatureException
pDesc
- the job descriptionpSuspended
- should the job be suspended initially
SubmissionException
- if the job cannot be submitted
UnsupportedFeatureException
- if the job description contains a feature this JobManager
does not common
JobManagerException
JobInstance submitJob(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDesc, boolean pSuspended) throws JobManagerException, SubmissionException, UnsupportedFeatureException
pDesc
- the job descriptionpSuspended
- submit the job but leave it suspended. The job must be started
with the startJob method.
SubmissionException
- if the job cannot be submitted
UnsupportedFeatureException
- if the job description contains a feature this JobManager
does not common
JobManagerException
JobInstance rerunJob(java.lang.String pJobID, JobState startState, org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDesc, boolean pStartSuspend) throws JobManagerException, SubmissionException, UnsupportedFeatureException
pJobID
- Which job do you want to rerun? The job is also called parent job.startState
- job will run from this state. It can be pending, staged-in or executed.pDesc
- the job description. If is omitted, the JSDL of the parent job will be used.pStartSuspend
- suspend job or not when rerun the job.
SubmissionException
- if the job cannot be submitted
UnsupportedFeatureException
- if the job description contains a feature this JobManager
does not common
JobManagerException
JobInstance startJob(java.lang.String pID) throws JobManagerException, ControlException, UnknownJobException, SubmissionException
pID
- the pending job to be started. This job must be submitted to
the job manager using submitJob(desc, false)
JobManagerException
- if the job manager engine is not functioning
SubmissionException
- if the job is not a pending job
ControlException
- if the job cannot be started
UnknownJobException
- if pID does not identify a known jobJobInstance[] startJob(java.lang.String[] pIDs) throws JobManagerException, ControlException, UnknownJobException, SubmissionException
pID
- an arryay of IDs to the pending jobs to be started. This job must be submitted to
the job manager using submitJob(desc, false)
JobManagerException
- if the job manager engine is not functioning
SubmissionException
- if the job is not a pending job
ControlException
- if the job cannot be started
UnknownJobException
- if one of the pIDs does not identify a known jobJobInstance findJobInstance(java.lang.String pID) throws JobManagerException, UnknownJobException
pID
- job identifier
UnknownJobException
- if the job instance cannot be found
JobManagerException
- if the job manager is at faultJobInstance[] findJobInstance(java.lang.String[] pIDs) throws JobManagerException, UnknownJobException
pID
- job identifier
UnknownJobException
- if the job instance cannot be found
JobManagerException
- if the job manager is at faultvoid terminateJob(java.lang.String pID) throws JobManagerException, ControlException, UnknownJobException
pID
-
JobManagerException
- if the job manager is at fault
ControlException
- if the job cannot be terminated
UnknownJobException
- if the job instance cannot be foundvoid terminateJob(java.lang.String[] pIDs) throws JobManagerException, ControlException, UnknownJobException
pIDs
- the jobs to be terminated
JobManagerException
- if the job manager is at fault
ControlException
- if the job cannot be terminated
UnknownJobException
- if the job instance cannot be foundvoid registerChangeListener(java.lang.String pID, JobInstanceChangeListener pChangeListener) throws JobManagerException
pID
- the job idpChangeListener
- the listener
JobManagerException
- if the job manager cannot register the listenervoid unregisterChangeListener(java.lang.String pID, JobInstanceChangeListener pChangeListener) throws JobManagerException
pID
- the job idpChangeListener
- the listener previously registered with
registerChangeListener()
JobManagerException
- if the job manager cannot register the listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |