Class JobEndedMessage

  • All Implemented Interfaces:
    Serializable

    public class JobEndedMessage
    extends HarvesterMessage
    implements Serializable
    This message is sent by the HarvestSchedulerMonitorServer to the HarvestMonitor to notify it that a job ended and should not be monitored anymore, and that any resource used to monitor this job should be freed.
    See Also:
    Serialized Form
    • Constructor Detail

      • JobEndedMessage

        public JobEndedMessage​(long jobId,
                               JobStatus jobStatus)
        Constructs a new message.
        Parameters:
        jobId - the job ID.
        jobStatus - the job's current status.
    • Method Detail

      • getJobId

        public long getJobId()
        Returns:
        the job id
      • getJobStatus

        public JobStatus getJobStatus()
        Returns:
        the job status
      • accept

        public void accept​(HarvesterMessageVisitor v)
        Description copied from class: HarvesterMessage
        Should be implemented as a part of the visitor pattern. fx.: public void accept(HarvesterMessageVisitor v) { v.visit(this); }
        Specified by:
        accept in class HarvesterMessage
        Parameters:
        v - A message visitor