Package org.jppf.job
Class JobNotification
java.lang.Object
java.util.EventObject
javax.management.Notification
org.jppf.job.JobNotification
- All Implemented Interfaces:
Serializable
Instances of this class represent events emitted by a JPPFJobManager.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class javax.management.Notification
source -
Constructor Summary
ConstructorsConstructorDescriptionJobNotification(String driverUuid, JobEventType eventType, JobInformation jobInfo, JPPFManagementInfo nodeInfo, long timestamp) Initialize this event with the specified job and node information. -
Method Summary
Modifier and TypeMethodDescriptionGet the uuid of the driver that sent this notification.Get the type of this job event.Get the information about the job.Get the information about the node.toString()Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserDataMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
JobNotification
public JobNotification(String driverUuid, JobEventType eventType, JobInformation jobInfo, JPPFManagementInfo nodeInfo, long timestamp) Initialize this event with the specified job and node information.- Parameters:
driverUuid- the type of this job event.eventType- the type of this job event.jobInfo- information about the job.nodeInfo- information about the node.timestamp- the creation timestamp for this event.
-
-
Method Details
-
getJobInformation
Get the information about the job.- Returns:
- a
JobInformationinstance.
-
getNodeInfo
Get the information about the node.- Returns:
- a
JPPFManagementInfoinstance.
-
getEventType
Get the type of this job event.- Returns:
- a
JobEventTypeenum value.
-
getDriverUuid
Get the uuid of the driver that sent this notification.- Returns:
- the driver uuid as a string.
-
toString
- Overrides:
toStringin classNotification
-