org.jppf.server.queue
Class QueueEvent
java.lang.Object
java.util.EventObject
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
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.
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.