Package org.jppf.server.job.management
Class DriverJobManagement
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jppf.server.job.management.DriverJobManagement
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,org.jppf.server.job.management.DriverJobManagementMBean
public class DriverJobManagement
extends NotificationBroadcasterSupport
implements org.jppf.server.job.management.DriverJobManagementMBean
Implementation of the job management bean.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from interface org.jppf.server.job.management.DriverJobManagementMBean
MBEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) voidvoidcancelJobs(org.jppf.job.JobSelector selector) String[]org.jppf.job.JobInformationgetJobInformation(String jobUuid) Get an object describing the job with the specified uuid.org.jppf.job.JobInformation[]getJobInformation(org.jppf.job.JobSelector selector) org.jppf.server.job.management.NodeJobInformation[]getNodeInformation(String jobUuid) getNodeInformation(org.jppf.job.JobSelector selector) voidvoidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) voidvoidresumeJobs(org.jppf.job.JobSelector selector) voidsendNotification(Notification notification) voidsuspendJob(String jobUuid, Boolean requeue) voidsuspendJobs(org.jppf.job.JobSelector selector, Boolean requeue) voidupdateJobs(org.jppf.job.JobSelector selector, org.jppf.node.protocol.JobSLA sla, org.jppf.node.protocol.JobMetadata metadata) voidupdateMaxNodes(String jobUuid, Integer maxNodes) voidupdateMaxNodes(org.jppf.job.JobSelector selector, Integer maxNodes) voidupdatePriority(String jobUuid, Integer newPriority) voidupdatePriority(org.jppf.job.JobSelector selector, Integer newPriority) Methods inherited from class javax.management.NotificationBroadcasterSupport
getNotificationInfo, handleNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.management.NotificationBroadcaster
getNotificationInfo
-
Constructor Details
-
DriverJobManagement
Initialize this MBean.- Parameters:
driver- reference to the JPPF driver.
-
-
Method Details
-
cancelJob
- Specified by:
cancelJobin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
suspendJob
- Specified by:
suspendJobin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
resumeJob
- Specified by:
resumeJobin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
updateMaxNodes
- Specified by:
updateMaxNodesin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
getAllJobUuids
- Specified by:
getAllJobUuidsin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
getJobInformation
Get an object describing the job with the specified uuid.- Specified by:
getJobInformationin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Parameters:
jobUuid- the id of the job to get information about.- Returns:
- an instance of
JobInformation. - Throws:
Exception- if any error occurs.
-
getNodeInformation
public org.jppf.server.job.management.NodeJobInformation[] getNodeInformation(String jobUuid) throws Exception - Specified by:
getNodeInformationin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
updatePriority
- Specified by:
updatePriorityin interfaceorg.jppf.server.job.management.DriverJobManagementMBean
-
sendNotification
- Overrides:
sendNotificationin classNotificationBroadcasterSupport
-
cancelJobs
- Specified by:
cancelJobsin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
suspendJobs
- Specified by:
suspendJobsin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
resumeJobs
- Specified by:
resumeJobsin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
updateMaxNodes
- Specified by:
updateMaxNodesin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
getJobInformation
public org.jppf.job.JobInformation[] getJobInformation(org.jppf.job.JobSelector selector) throws Exception - Specified by:
getJobInformationin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
getNodeInformation
public Map<String,org.jppf.server.job.management.NodeJobInformation[]> getNodeInformation(org.jppf.job.JobSelector selector) throws Exception - Specified by:
getNodeInformationin interfaceorg.jppf.server.job.management.DriverJobManagementMBean- Throws:
Exception
-
updatePriority
- Specified by:
updatePriorityin interfaceorg.jppf.server.job.management.DriverJobManagementMBean
-
updateJobs
public void updateJobs(org.jppf.job.JobSelector selector, org.jppf.node.protocol.JobSLA sla, org.jppf.node.protocol.JobMetadata metadata) - Specified by:
updateJobsin interfaceorg.jppf.server.job.management.DriverJobManagementMBean
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceNotificationBroadcaster- Overrides:
addNotificationListenerin classNotificationBroadcasterSupport
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationBroadcaster- Overrides:
removeNotificationListenerin classNotificationBroadcasterSupport- Throws:
ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationEmitter- Overrides:
removeNotificationListenerin classNotificationBroadcasterSupport- Throws:
ListenerNotFoundException
-