org.jppf.job
Class JobNotification
java.lang.Object
java.util.EventObject
javax.management.Notification
org.jppf.job.JobNotification
- All Implemented Interfaces:
- Serializable
public class JobNotification
- extends Notification
Instances of this class represent events emitted by a JPPFJobManager.
- Author:
- Laurent Cohen
- See Also:
- Serialized Form
JobNotification
public JobNotification(JobEventType eventType,
JobInformation jobInfo,
JPPFManagementInfo nodeInfo,
long timestamp)
- Initialize this event with the specified job and node information.
- Parameters:
eventType - - the type of this job event.jobInfo - - information about the job.nodeInfo - - information about the node.timestamp - - the creation timestamp for this event.
getJobInformation
public JobInformation getJobInformation()
- Get the information about the job.
- Returns:
- a
JobInformation instance.
getNodeInfo
public JPPFManagementInfo getNodeInfo()
- Get the information about the node.
- Returns:
- a
NodeManagementInfo instance.
getTimestamp
public long getTimestamp()
- Get the creation timestamp for this event.
- Returns:
- the timestamp as a long value.
getEventType
public JobEventType getEventType()
- Get the type of this job event.
- Returns:
- a
JobManagerEventType enum value.
Copyright © 2005-2010 JPPF Team.