org.jppf.job
Class JobNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by 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

Field Summary
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
JobNotification(JobEventType eventType, JobInformation jobInfo, JPPFManagementInfo nodeInfo, long timestamp)
          Initialize this event with the specified job and node information.
 
Method Summary
 JobEventType getEventType()
          Get the type of this job event.
 JobInformation getJobInformation()
          Get the information about the job.
 JPPFManagementInfo getNodeInfo()
          Get the information about the node.
 long getTimestamp()
          Get the creation timestamp for this event.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.