dk.netarkivet.harvester.distribute
Class HarvesterMessage

java.lang.Object
  extended by dk.netarkivet.common.distribute.NetarkivetMessage
      extended by dk.netarkivet.harvester.distribute.HarvesterMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CrawlProgressMessage, CrawlStatusMessage, DoOneCrawlMessage, FrontierReportMessage, HarvesterStatusMessage, IndexReadyMessage, 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
protected HarvesterMessage(ChannelID to, ChannelID replyTo)
          Creates a new HarvesterMessage.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HarvesterMessage

protected HarvesterMessage(ChannelID to,
                           ChannelID replyTo)
Creates a new HarvesterMessage.

Parameters:
to - the initial receiver of the message
replyTo - 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