Package org.jppf.queue
Class QueueEvent<T,U,V>
java.lang.Object
java.util.EventObject
org.jppf.queue.QueueEvent<T,U,V>
- Type Parameters:
T- the type of jobs that are queued.U- the type of bundles the jobs are split into.V- the type of resulting bundles the jobs are split into.
- All Implemented Interfaces:
Serializable
Instances of this class represent
JPPFQueue events.- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
QueueEvent
Initialize this event with the specified queue and bundle.- Parameters:
queue- the queue this event originates from.job- 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 Details
-
getQueue
Get the queue this event originates from.- Returns:
- an instance of
JPPFQueue.
-
getJob
Get the task bundle that is the cause of the event.- Returns:
- an instance of
ClientJob.
-
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.
-
toString
- Overrides:
toStringin classEventObject
-