public class JobEvent extends EventObject
source| Modifier and Type | Method and Description |
|---|---|
JPPFClientConnection |
getConnection()
Get the remote driver connection through which the job dispatch was sent.
|
JPPFJob |
getJob()
Get the source of this event.
|
List<org.jppf.node.protocol.Task<?>> |
getJobTasks()
Get the tasks that were dispatched or returned.
|
boolean |
isRemoteExecution()
Determine whether the current job dispatch is sent to a remote driver.
|
getSource, toStringpublic JPPFJob getJob()
JPPFJob object.public List<org.jppf.node.protocol.Task<?>> getJobTasks()
This method returns a non null value only for jobDispatched() and jobReturned() events.
Task instances.public boolean isRemoteExecution()
JobListener.jobDispatched(JobEvent) and JobListener.jobReturned(JobEvent) notifications.true if the current job dispatch is executed remotely or the job has not yet been dispatched, false if the job dispatch is executed locally.public JPPFClientConnection getConnection()
JobListener.jobDispatched(JobEvent) and JobListener.jobReturned(JobEvent) notifications.JPPFClientConnection instance, or null if JobEvent.isRemoteExecution() returns false.Copyright © 2005-2019 JPPF Team.