Class JobEndedMessage
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.harvester.distribute.HarvesterMessage
-
- dk.netarkivet.harvester.harvesting.distribute.JobEndedMessage
-
- All Implemented Interfaces:
Serializable
public class JobEndedMessage extends HarvesterMessage implements Serializable
This message is sent by the HarvestSchedulerMonitorServer to theHarvestMonitor
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
Constructors Constructor Description JobEndedMessage(long jobId, JobStatus jobStatus)
Constructs a new message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classHarvesterMessage
- Parameters:
v
- A message visitor
-
-