|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IJobControl
Interface for performing control operations on jobs (including submitting jobs). Clients can obtain instances of this interface from the launch delegate.
| Field Summary | |
|---|---|
static java.lang.String |
HOLD_OPERATION
Control operation to put a job on hold |
static java.lang.String |
RELEASE_OPERATION
Control operation to release a job from hold |
static java.lang.String |
RERUN_OPERATION
Rerun the job. |
static java.lang.String |
RESUME_OPERATION
Control operation to resume a suspended job |
static java.lang.String |
SUSPEND_OPERATION
Control operation to suspend a job |
static java.lang.String |
TERMINATE_OPERATION
Control operation to terminate a job |
| Method Summary | |
|---|---|
void |
control(java.lang.String jobId,
java.lang.String operation,
IProgressMonitor monitor)
Perform control operation on job. |
java.lang.String |
getControlId()
Get the ID of this job controller |
IJobStatus |
getJobStatus(java.lang.String jobId,
boolean force,
IProgressMonitor monitor)
Get the status of the job. |
IJobStatus |
getJobStatus(java.lang.String jobId,
IProgressMonitor monitor)
Get the status of the job. |
java.lang.String |
submitJob(ILaunchConfiguration launchConfig,
java.lang.String launchMode,
IProgressMonitor monitor)
Submit a job for execution |
| Field Detail |
|---|
static final java.lang.String SUSPEND_OPERATION
static final java.lang.String RESUME_OPERATION
static final java.lang.String HOLD_OPERATION
static final java.lang.String RELEASE_OPERATION
static final java.lang.String TERMINATE_OPERATION
static final java.lang.String RERUN_OPERATION
| Method Detail |
|---|
void control(java.lang.String jobId,
java.lang.String operation,
IProgressMonitor monitor)
throws CoreException
jobId - job ID representing the job to be canceled.operation - operation to perform on the jobmonitor - the progress monitor to use for reporting progress to the user. It is the caller's responsibility
to call done() on the given monitor. Accepts null, indicating that no progress should be
reported and that the operation cannot be cancelled.
CoreExceptionjava.lang.String getControlId()
IJobStatus getJobStatus(java.lang.String jobId,
boolean force,
IProgressMonitor monitor)
throws CoreException
jobId - ID of job used to obtain statusforce - if true, tells the resource manager to ignore the throttling timeout.monitor - the progress monitor to use for reporting progress to the user. It is the caller's responsibility
to call done() on the given monitor. Accepts null, indicating that no progress should be
reported and that the operation cannot be cancelled.
CoreException
IJobStatus getJobStatus(java.lang.String jobId,
IProgressMonitor monitor)
throws CoreException
getJobStatus(String, boolean, IProgressMonitor) with flag set to false.
jobId - ID of job used to obtain statusmonitor - the progress monitor to use for reporting progress to the user. It is the caller's responsibility
to call done() on the given monitor. Accepts null, indicating that no progress should be
reported and that the operation cannot be cancelled.
CoreException
java.lang.String submitJob(ILaunchConfiguration launchConfig,
java.lang.String launchMode,
IProgressMonitor monitor)
throws CoreException
launchConfig - job launch configurationmode - job launch modemonitor - the progress monitor to use for reporting progress to the user. It is the caller's responsibility
to call done() on the given monitor. Accepts null, indicating that no progress should be
reported and that the operation cannot be cancelled.
CoreException
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||