|
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 String |
HOLD_OPERATION
Control operation to put a job on hold |
static String |
RELEASE_OPERATION
Control operation to release a job from hold |
static String |
RERUN_OPERATION
Rerun the job. |
static String |
RESUME_OPERATION
Control operation to resume a suspended job |
static String |
SUSPEND_OPERATION
Control operation to suspend a job |
static String |
TERMINATE_OPERATION
Control operation to terminate a job |
| Method Summary | |
|---|---|
void |
control(String jobId,
String operation,
IProgressMonitor monitor)
Perform control operation on job. |
String |
getControlId()
Get the ID of this job controller |
IJobStatus |
getJobStatus(String jobId,
boolean force,
IProgressMonitor monitor)
Get the status of the job. |
IJobStatus |
getJobStatus(String jobId,
IProgressMonitor monitor)
Get the status of the job. |
String |
submitJob(ILaunchConfiguration launchConfig,
String launchMode,
IProgressMonitor monitor)
Submit a job for execution |
| Field Detail |
|---|
static final String SUSPEND_OPERATION
static final String RESUME_OPERATION
static final String HOLD_OPERATION
static final String RELEASE_OPERATION
static final String TERMINATE_OPERATION
static final String RERUN_OPERATION
| Method Detail |
|---|
void control(String jobId,
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.
CoreExceptionString getControlId()
IJobStatus getJobStatus(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(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
String submitJob(ILaunchConfiguration launchConfig,
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 | |||||||||