Package org.jppf.job

Class JobTasksEvent

java.lang.Object
java.util.EventObject
org.jppf.job.JobTasksEvent
All Implemented Interfaces:
Serializable

public class JobTasksEvent extends EventObject
Instances of this class encapsulate information on job dispatches to nodes.
Since:
5.1
Author:
Laurent Cohen
See Also:
  • 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

      public String getJobUuid()
      Get the uuid of the job to which the tasks belong.
      Returns:
      the uuid as a String.
    • getJobName

      public String getJobName()
      Get the name of the job to which the tasks belong.
      Returns:
      the name as a String.
    • getReturnedTasks

      public List<ServerTaskInformation> getReturnedTasks()
      Get the list of tasks that were disptached.
      Returns:
      a List of ServerTaskInformation objects.
    • getTasks

      public List<ServerTaskInformation> getTasks()
      Get the list of tasks that were disptached.
      Returns:
      a List of ServerTaskInformation objects.
    • getReturnReason

      public JobReturnReason getReturnReason()
      Get the reason why the set of tasks was returned by a node.
      Returns:
      the return reason as a JobReturnReason element.
    • getNodeInfo

      public JPPFManagementInfo getNodeInfo()
      Get the information on the node to which the job was dispatched.
      Returns:
      a JPPFManagementInfo object.
    • getJobSLA

      public JobSLA getJobSLA()
      Get the job SLA from this event.
      Returns:
      an instance of JobSLA.
    • getJobMetadata

      public JobMetadata getJobMetadata()
      Get the job metadata from this event.
      Returns:
      an instance of JobMetadata.