Package org.jppf.management
Class TaskExecutionNotification
java.lang.Object
java.util.EventObject
javax.management.Notification
org.jppf.management.OffloadableNotification
org.jppf.management.TaskExecutionNotification
- All Implemented Interfaces:
Serializable
Notification sent to provide information about a task that was executed in a node.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class javax.management.Notification
source -
Constructor Summary
ConstructorsConstructorDescriptionTaskExecutionNotification(ObjectName source, long sequenceNumber, TaskInformation taskInformation, Object userObject, boolean userNotification) Initialize this notification with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet the object encapsulating information about the task.booleanDetermine whether this is a user-defined notification sent from a task.voidsetUserData(Object userData) toString()Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, setSequenceNumber, setSource, setTimeStampMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TaskExecutionNotification
public TaskExecutionNotification(ObjectName source, long sequenceNumber, TaskInformation taskInformation, Object userObject, boolean userNotification) Initialize this notification with the specified parameters.- Parameters:
source- the emitter MBean's object name.sequenceNumber- the notification sequence number.taskInformation- information about the task that triggered this notification.userObject- an user-defined object sent along with this notification.userNotification- determines whether this is a user-defined notification sent from a task.
-
-
Method Details
-
getTaskInformation
Get the object encapsulating information about the task.- Returns:
- a
TaskInformationinstance.
-
isUserNotification
public boolean isUserNotification()Determine whether this is a user-defined notification sent from a task.- Returns:
trueif this is a user notification,falseotherwise.- Since:
- 4.1
-
getUserData
- Overrides:
getUserDatain classOffloadableNotification
-
setUserData
- Overrides:
setUserDatain classOffloadableNotification
-
toString
- Overrides:
toStringin classNotification
-