public interface JobManagerMXBean
The JobManagerMXBean provides client side administrative job related functions.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MXBEAN_OBJECT_NAME
The object name by which a JMX client can find the JobManagerMXBean
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortJob(java.lang.String jobRunId,
java.lang.String jobName,
java.lang.String solutionName)
Aborts a running job if one exists for the given job run id, job name, and solution name.
|
void |
abortJobByName(java.lang.String jobName,
java.lang.String solutionName)
Aborts a running job if one exists for the given job name.
|
JobRunId[] |
getActiveJobs()
Returns an array of job run identifiers for active jobs.
|
JobRunId[] |
getActiveJobs(java.lang.String solutionName)
Returns an array of job run identifiers for active jobs that correspond to the given solution name.
|
JobRunId[] |
getActiveJobs(java.lang.String jobName,
java.lang.String solutionName)
Returns an array of job identifiers for active jobs that correspond to the given job name and solution name,
or null.
|
int |
getActiveJobsCount()
Returns the number of active jobs.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getIsGlobalRuntimeRunningByContainer()
Returns whether or not the global runtime is running by container.
|
JobRunId[] |
getJobRunIds()
Returns an array of job run identifiers for all job runs that have been submitted
regardless of their status (QUEUED, RUNNING, COMPLETED, FAILED, etc).
|
JobRunInfo |
getJobRunInfo(java.lang.String jobName,
java.lang.String solutionName)
Gets the latest
JobRunInfo that corresponds to the given job name. |
JobRunInfo |
getJobRunInfo(java.lang.String jobRunId,
java.lang.String jobName,
java.lang.String solutionName)
Returns a
JobRunInfo for the given job run id, job name, and solution name. |
JobRunInfo[] |
getJobRunInfos()
Returns an array of
JobRunInfo objects for all job runs that have been submitted
regardless of their status (QUEUED, RUNNING, COMPLETED, FAILED, etc). |
JobRunInfo[] |
getJobRunInfos(JobRunId[] jobRunIds)
Returns an array of
JobRunInfo objects that correspond to the given array of JobRunId objects. |
java.lang.String |
getJobSchedule(java.lang.String jobName,
java.lang.String solutionName)
retrieves the schedule of a job for the given job name, solution name.
|
JobRunInfo[] |
getQueuedJobs(java.lang.String solutionName)
Returns an array of
JobRunInfo objects for all jobs that are currently in the job queue. |
boolean |
isGlobalRuntimeRunning()
Returns whether or not the global runtime is running on all containers.
|
boolean |
removeJobSchedule(java.lang.String jobName,
java.lang.String solutionName)
Removes the schedule of a job for the given job name, solution name.
|
void |
startGlobalRuntime()
Starts the global runtime on all containers.
|
void |
stopGlobalRuntime()
Stops the global runtime on all containers.
|
JobRunId |
submitJob(java.lang.String jobName,
java.lang.String solutionName,
java.lang.String description,
java.util.List<JobParameter> params)
Submits a job that corresponds to the given global variable name in order
to update its value.
|
boolean |
updateJobSchedule(java.lang.String jobName,
java.lang.String solutionName,
java.lang.String intervalString,
java.lang.String crontabString)
Updates the schedule of a job for the given job name, solution name with the schedule identified with the crontabString.
|
static final java.lang.String MXBEAN_OBJECT_NAME
int getActiveJobsCount()
JobRunId[] getActiveJobs()
JobRunId[] getActiveJobs(java.lang.String solutionName)
solutionName - The name of the solution.JobRunId[] getActiveJobs(java.lang.String jobName, java.lang.String solutionName)
jobName - The job name.solutionName - The solutionName name.null.JobRunId[] getJobRunIds()
The number of returned job run identifiers will vary based on the volume of jobs and time to live setting of the job history map.
JobRunInfo[] getJobRunInfos(JobRunId[] jobRunIds)
JobRunInfo objects that correspond to the given array of JobRunId objects.jobRunIds - The array of job run identifiers.JobRunInfo objects.JobRunInfo[] getJobRunInfos()
JobRunInfo objects for all job runs that have been submitted
regardless of their status (QUEUED, RUNNING, COMPLETED, FAILED, etc).
The number of returned job run identifiers will vary based on the volume of jobs and time to live setting of the job history map.
JobRunInfo objects.JobRunId submitJob(java.lang.String jobName, java.lang.String solutionName, java.lang.String description, java.util.List<JobParameter> params) throws java.lang.Exception
If a job with the same name is already in the job queue, the submitted job is skipped, otherwise it is put into the job queue. Note that even if a job with the same name is already running, the sbmitted job is still put into the queue.
java.lang.Exception - if the job fails to be submitted for any reason.jobName - The job name. The name is the technical name of the global aggregate variable defined in the tooling.solutionName - The solutionName name.description - An optional description which will appear in the JobRunInfo when looking at job history.params - An optional list of job parameters.boolean updateJobSchedule(java.lang.String jobName,
java.lang.String solutionName,
java.lang.String intervalString,
java.lang.String crontabString)
jobName - The job name.solutionName - The solutionName name.intervalString - a description of the recurrent job schedulecrontabString - a description of the restricted job schedulejava.lang.String getJobSchedule(java.lang.String jobName,
java.lang.String solutionName)
jobName - The job name.solutionName - The solutionName name.boolean removeJobSchedule(java.lang.String jobName,
java.lang.String solutionName)
jobName - The job name.solutionName - The solutionName name.void abortJobByName(java.lang.String jobName,
java.lang.String solutionName)
throws java.lang.Exception
java.lang.Exception - if no job with the given name is found.jobName - The job name.solutionName - The solutionName name.void abortJob(java.lang.String jobRunId,
java.lang.String jobName,
java.lang.String solutionName)
throws java.lang.Exception
java.lang.Exception - if no job with the given name is found.jobRunId - The job run identifier.jobName - The job name.solutionName - The solutionName name.JobRunInfo getJobRunInfo(java.lang.String jobRunId, java.lang.String jobName, java.lang.String solutionName)
JobRunInfo for the given job run id, job name, and solution name.id - The job run identifier.jobName - The job name.solutionName - The solutionName name.JobRunInfo for the given job run id, job name, and solution name.JobRunInfo getJobRunInfo(java.lang.String jobName, java.lang.String solutionName)
JobRunInfo that corresponds to the given job name.jobName - The job name.solutionName - The solutionName name.JobResultInfo or null.JobRunInfo[] getQueuedJobs(java.lang.String solutionName)
JobRunInfo objects for all jobs that are currently in the job queue.
The job queue contains a list of jobs waiting to be run.JobRunInfo objects.void stopGlobalRuntime()
throws java.lang.Exception
java.lang.Exceptionvoid startGlobalRuntime()
throws java.lang.Exception
java.lang.Exceptionboolean isGlobalRuntimeRunning()
throws java.lang.Exception
java.lang.Exceptionjava.util.Map<java.lang.String,java.lang.Boolean> getIsGlobalRuntimeRunningByContainer()
throws java.lang.Exception
java.lang.Exception© Copyright IBM 2017