public class ClientQueueEvent extends EventObject
source| Constructor and Description |
|---|
ClientQueueEvent(JPPFClient client,
JPPFJob job,
JPPFPriorityQueue queue)
Initialize this event with the specified source JPPF client and Job.
|
| Modifier and Type | Method and Description |
|---|---|
JPPFClient |
getClient()
Get the JPPF client source of this event.
|
JPPFJob |
getJob()
Get the job that was added or removed.
|
List<JPPFJob> |
getQueuedJobs()
Get all the
JPPFJobs currently in the queue. |
int |
getQueueSize()
Get the size of this job queue.
|
getSource, toStringpublic ClientQueueEvent(JPPFClient client, JPPFJob job, JPPFPriorityQueue queue)
client - the client whose queue emitted the event.job - the job this event is for.queue - the job queue which emitted this event.public JPPFClient getClient()
JPPFClient instance.public List<JPPFJob> getQueuedJobs()
JPPFJobs currently in the queue.
This method should be used with caution, as its cost is in O(n), with n being the number of jobs in the queue.
JPPFJob instances ordered by their priority.public int getQueueSize()
This method should be used with caution, as its cost is in O(n), with n being the number of jobs in the queue.
Copyright © 2005-2019 JPPF Team.