dk.netarkivet.harvester.harvesting.distribute
Class JobEndedMessage

java.lang.Object
  extended by dk.netarkivet.common.distribute.NetarkivetMessage
      extended by dk.netarkivet.harvester.distribute.HarvesterMessage
          extended by dk.netarkivet.harvester.harvesting.distribute.JobEndedMessage
All Implemented Interfaces:
java.io.Serializable

public class JobEndedMessage
extends HarvesterMessage
implements java.io.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

Field Summary
 
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
 
Constructor Summary
JobEndedMessage(long jobId, JobStatus jobStatus)
          Constructs a new message.
 
Method Summary
 void accept(HarvesterMessageVisitor v)
          Should be implemented as a part of the visitor pattern.
 long getJobId()
           
 JobStatus getJobStatus()
           
 
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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