public class JobEndedMessage extends HarvesterMessage implements Serializable
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.replyOfId
Constructor and Description |
---|
JobEndedMessage(long jobId,
JobStatus jobStatus)
Constructs a new message.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
long |
getJobId() |
JobStatus |
getJobStatus() |
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
public JobEndedMessage(long jobId, JobStatus jobStatus)
jobId
- the job ID.jobStatus
- the job's current status.public long getJobId()
public JobStatus getJobStatus()
public void accept(HarvesterMessageVisitor v)
HarvesterMessage
accept
in class HarvesterMessage
v
- A message visitorCopyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.