dk.netarkivet.harvester.harvesting.distribute
Class JobEndedMessage
java.lang.Object
dk.netarkivet.common.distribute.NetarkivetMessage
dk.netarkivet.harvester.distribute.HarvesterMessage
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JobEndedMessage
public JobEndedMessage(long jobId,
JobStatus jobStatus)
- Constructs a new message.
- Parameters:
jobId
- the job ID.jobStatus
- the job's current status.
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