public interface IJobControl
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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
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.CoreException
String 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
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.