org.jppf.server.queue
Class QueueEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jppf.server.queue.QueueEvent
All Implemented Interfaces:
Serializable

public class QueueEvent
extends EventObject

Instances of this class represent JPPFQueue events.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QueueEvent(JPPFQueue queue, BundleWrapper bundleWrapper)
          Initialize this event with the specified queue and bundle.
QueueEvent(JPPFQueue queue, BundleWrapper bundleWrapper, boolean requeue)
          Initialize this event with the specified queue and bundle.
 
Method Summary
 BundleWrapper getBundleWrapper()
          Get the task bundle that is the cause of the event.
 JPPFQueue getQueue()
          Get the queue this event originates from.
 boolean isRequeued()
          Determine if this event is a requeued bundle, following a node failure for instance.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueueEvent

public QueueEvent(JPPFQueue queue,
                  BundleWrapper bundleWrapper)
Initialize this event with the specified queue and bundle.

Parameters:
queue - - the queue this event originates from.
bundleWrapper - - represents part or the totality of a job that was submitted.

QueueEvent

public QueueEvent(JPPFQueue queue,
                  BundleWrapper bundleWrapper,
                  boolean requeue)
Initialize this event with the specified queue and bundle.

Parameters:
queue - - the queue this event originates from.
bundleWrapper - - represents part or the totality of a job that was submitted.
requeue - - determines if the event is a requeued bundle, following a node failure for instance.
Method Detail

getQueue

public JPPFQueue getQueue()
Get the queue this event originates from.

Returns:
an instance of JPPFQueue.

getBundleWrapper

public BundleWrapper getBundleWrapper()
Get the task bundle that is the cause of the event.

Returns:
an instance of BundleWrapper.

isRequeued

public boolean isRequeued()
Determine if this event is a requeued bundle, following a node failure for instance.

Returns:
true if a bundle was requeued, false otherwise.


Copyright © 2005-2010 JPPF Team.