Package org.jppf.server.job.management
Interface DriverJobManagementMBean
- All Superinterfaces:
NotificationBroadcaster,NotificationEmitter
@MBeanNotif(description="notification on the status of a job",
notifClass=JobNotification.class)
public interface DriverJobManagementMBean
extends NotificationEmitter
This is the job management MBean interface.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name under which this MBean is registered with the MBean server. -
Method Summary
Modifier and TypeMethodDescriptionvoidCancel the job with the specified id.voidcancelJobs(JobSelector selector) Cancel the jobs specified with a given job selector.String[]Get the set of uuids for all the jobs currently queued or executing.getJobInformation(String jobUuid) Get an object describing the job with the specified uuid.getJobInformation(JobSelector selector) Get the job information for all the jobs accepted by the specified selector.getNodeInformation(String jobUuid) Get a list of objects describing the nodes to which the whole or part of a job was dispatched.getNodeInformation(JobSelector selector) Get a list of objects describing the nodes to which the whole or part of a job was dispatched, for all the jobs specified by a job selector.voidResume the job with the specified uuid.voidresumeJobs(JobSelector selector) Resume the jobs specified with a given job selector.voidsuspendJob(String jobUuid, Boolean requeue) Suspend the job with the specified uuid.voidsuspendJobs(JobSelector selector, Boolean requeue) Suspend the jobs specified with a given job selector.voidupdateJobs(JobSelector selector, JobSLA sla, JobMetadata metadata) Update the SLA and/or metadata of the specified jobs.voidupdateMaxNodes(String jobUuid, Integer maxNodes) Update the maximum number of nodes the job with the specified uuid can run on.voidupdateMaxNodes(JobSelector selector, Integer maxNodes) Update the maximum number of nodes the specified jobs can run on.voidupdatePriority(String jobUuid, Integer newPriority) Update the priority of the job with the specified uuid.voidupdatePriority(JobSelector selector, Integer newPriority) Update the priority of the jobs specified by a job selector.Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
MBEAN_NAME
The name under which this MBean is registered with the MBean server.- See Also:
-
-
Method Details
-
cancelJob
Cancel the job with the specified id.- Parameters:
jobUuid- the uuid of the job to cancel.- Throws:
Exception- if any error occurs.
-
cancelJobs
Cancel the jobs specified with a given job selector.- Parameters:
selector- determines which jobs to cancel.- Throws:
Exception- if any error occurs.- Since:
- 5.1
-
suspendJob
Suspend the job with the specified uuid.- Parameters:
jobUuid- the uuid of the job to suspend.requeue-trueif the sub-jobs running on each node should be canceled and requeued,falseif they should be left to execute until completion.- Throws:
Exception- if any error occurs.
-
suspendJobs
Suspend the jobs specified with a given job selector.- Parameters:
selector- determines which jobs to suspend.requeue-trueif the sub-jobs running on each node should be canceled and requeued,falseif they should be left to execute until completion.- Throws:
Exception- if any error occurs.- Since:
- 5.1
-
resumeJob
Resume the job with the specified uuid.- Parameters:
jobUuid- the uuid of the job to resume.- Throws:
Exception- if any error occurs.
-
resumeJobs
Resume the jobs specified with a given job selector.- Parameters:
selector- determines which jobs to resume.- Throws:
Exception- if any error occurs.- Since:
- 5.1
-
updateMaxNodes
Update the maximum number of nodes the job with the specified uuid can run on.- Parameters:
jobUuid- the uuid of the job to update.maxNodes- the new maximum number of nodes for the job.- Throws:
Exception- if any error occurs.
-
updateMaxNodes
Update the maximum number of nodes the specified jobs can run on.- Parameters:
selector- determines for which jobs to change the maximum number of nodes.maxNodes- the new maximum number of nodes for the job.- Throws:
Exception- if any error occurs.- Since:
- 5.1
-
getAllJobUuids
Get the set of uuids for all the jobs currently queued or executing.- Returns:
- an array of uuids as strings.
- Throws:
Exception- if any error occurs.- Since:
- 5.1
-
getJobInformation
Get an object describing the job with the specified uuid.- Parameters:
jobUuid- the uuid of the job to get information about.- Returns:
- an instance of
JobInformation. - Throws:
Exception- if any error occurs.
-
getJobInformation
Get the job information for all the jobs accepted by the specified selector.- Parameters:
selector- determines for which jobs to return information.- Returns:
- an array of
JobInformationobjects, possibly empty if no job matches the selector. - Throws:
Exception- if any error occurs.- Since:
- 5.1
-
getNodeInformation
Get a list of objects describing the nodes to which the whole or part of a job was dispatched.- Parameters:
jobUuid- the uuid of the job for which to find node information.- Returns:
- an array of
NodeManagementInfo,JobInformationinstances. - Throws:
Exception- if any error occurs.
-
getNodeInformation
Get a list of objects describing the nodes to which the whole or part of a job was dispatched, for all the jobs specified by a job selector.- Parameters:
selector- determines for which jobs to return the node disptaches.- Returns:
- a mapping of job uuids to a corresponding array of
NodeJobInformationinstances. - Throws:
Exception- if any error occurs.
-
updatePriority
Update the priority of the job with the specified uuid.- Parameters:
jobUuid- the uuid of the job to update.newPriority- the job's new priority value.
-
updatePriority
Update the priority of the jobs specified by a job selector.- Parameters:
selector- determines for which jobs to change the maximum number of nodes.newPriority- the jobs new priority value.
-
updateJobs
Update the SLA and/or metadata of the specified jobs.- Parameters:
selector- specifies which jobs to update.sla- the new job SLA; ifnullthen the sla is not changed.metadata- the new job metadata; ifnullthen the metadata is not changed.- Since:
- 5.1
-