Package org.jppf.job
Class JobTasksEvent
java.lang.Object
java.util.EventObject
org.jppf.job.JobTasksEvent
- All Implemented Interfaces:
Serializable
Instances of this class encapsulate information on job dispatches to nodes.
- Since:
- 5.1
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionJobTasksEvent(String jobUuid, String jobName, List<ServerTaskInformation> serverTasks, JobReturnReason returnReason, JPPFManagementInfo nodeInfo) Intialize this job dispatch event with the specified information.JobTasksEvent(String jobUuid, String jobName, JobSLA jobSLA, JobMetadata jobMetadata, List<ServerTaskInformation> serverTasks, JobReturnReason returnReason, JPPFManagementInfo nodeInfo) Initialize this job dispatch event with the specified information. -
Method Summary
Modifier and TypeMethodDescriptionGet the job metadata from this event.Get the name of the job to which the tasks belong.Get the job SLA from this event.Get the uuid of the job to which the tasks belong.Get the information on the node to which the job was dispatched.Get the list of tasks that were disptached.Get the reason why the set of tasks was returned by a node.getTasks()Get the list of tasks that were disptached.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
JobTasksEvent
public JobTasksEvent(String jobUuid, String jobName, List<ServerTaskInformation> serverTasks, JobReturnReason returnReason, JPPFManagementInfo nodeInfo) Intialize this job dispatch event with the specified information.- Parameters:
jobUuid- the uuid of the job whose tasks were dispatched.jobName- the name of the job whose tasks were dispatched.serverTasks- the list of tasks that were disptached.returnReason- the reason why the set of tasks wass returned by a node.nodeInfo- info on the node to which the job was dispatched.
-
JobTasksEvent
public JobTasksEvent(String jobUuid, String jobName, JobSLA jobSLA, JobMetadata jobMetadata, List<ServerTaskInformation> serverTasks, JobReturnReason returnReason, JPPFManagementInfo nodeInfo) Initialize this job dispatch event with the specified information.- Parameters:
jobUuid- the uuid of the job whose tasks were dispatched.jobName- the name of the job whose tasks were dispatched.jobSLA- the job SLA.jobMetadata- the job metadata.serverTasks- the list of tasks that were disptached.returnReason- the reason why the set of tasks wass returned by a node.nodeInfo- info on the node to which the job was dispatched.
-
-
Method Details
-
getJobUuid
Get the uuid of the job to which the tasks belong.- Returns:
- the uuid as a
String.
-
getJobName
Get the name of the job to which the tasks belong.- Returns:
- the name as a
String.
-
getReturnedTasks
Get the list of tasks that were disptached.- Returns:
- a
ListofServerTaskInformationobjects.
-
getTasks
Get the list of tasks that were disptached.- Returns:
- a
ListofServerTaskInformationobjects.
-
getReturnReason
Get the reason why the set of tasks was returned by a node.- Returns:
- the return reason as a
JobReturnReasonelement.
-
getNodeInfo
Get the information on the node to which the job was dispatched.- Returns:
- a
JPPFManagementInfoobject.
-
getJobSLA
Get the job SLA from this event.- Returns:
- an instance of
JobSLA.
-
getJobMetadata
Get the job metadata from this event.- Returns:
- an instance of
JobMetadata.
-