Class HarvesterMessage
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.harvester.distribute.HarvesterMessage
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CrawlProgressMessage
,CrawlStatusMessage
,DoOneCrawlMessage
,FrontierReportMessage
,HarvesterReadyMessage
,HarvesterRegistrationRequest
,HarvesterRegistrationResponse
,IndexReadyMessage
,IndexRequestMessage
,JobEndedMessage
public abstract class HarvesterMessage extends NetarkivetMessage implements java.io.Serializable
Common base class for messages exchanged between a harvester server and a harvester client.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HarvesterMessage(ChannelID to, ChannelID replyTo)
Creates a new HarvesterMessage.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern.-
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
-
-
-
-
Constructor Detail
-
HarvesterMessage
protected HarvesterMessage(ChannelID to, ChannelID replyTo)
Creates a new HarvesterMessage.- Parameters:
to
- the initial receiver of the messagereplyTo
- the initial sender of the message- Throws:
ArgumentNotValid
- if to==replyTo or there is a null parameter.
-
-
Method Detail
-
accept
public abstract void accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern. fx.: public void accept(HarvesterMessageVisitor v) { v.visit(this); }- Parameters:
v
- A message visitor
-
-