dk.netarkivet.harvester.harvesting.distribute
Class FrontierReportMessage

java.lang.Object
  extended by dk.netarkivet.common.distribute.NetarkivetMessage
      extended by dk.netarkivet.harvester.distribute.HarvesterMessage
          extended by dk.netarkivet.harvester.harvesting.distribute.FrontierReportMessage
All Implemented Interfaces:
java.io.Serializable

public class FrontierReportMessage
extends HarvesterMessage

Sends a frontier report to the HarvestMonitor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
 
Constructor Summary
FrontierReportMessage(FrontierReportFilter filter, InMemoryFrontierReport report)
          Builds a frontier report wrapper message.
 
Method Summary
 void accept(HarvesterMessageVisitor v)
          Should be implemented as a part of the visitor pattern.
 java.lang.String getFilterId()
           
 InMemoryFrontierReport getReport()
           
 
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

FrontierReportMessage

public FrontierReportMessage(FrontierReportFilter filter,
                             InMemoryFrontierReport report)
Builds a frontier report wrapper message.

Parameters:
filter - the filter that generated the report.
report - the report to wrap.
Method Detail

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

getFilterId

public java.lang.String getFilterId()
Returns:
the filter id

getReport

public InMemoryFrontierReport getReport()
Returns:
the report