dk.netarkivet.harvester.distribute
Class IndexReadyMessage
java.lang.Object
dk.netarkivet.common.distribute.NetarkivetMessage
dk.netarkivet.harvester.distribute.HarvesterMessage
dk.netarkivet.harvester.distribute.IndexReadyMessage
- All Implemented Interfaces:
- java.io.Serializable
public class IndexReadyMessage
- extends HarvesterMessage
A message to send from the IndexServer to HarvestJobManager, that the
index required by harvest with a given ID is ready.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndexReadyMessage
public IndexReadyMessage(java.lang.Long harvestId,
ChannelID to,
ChannelID replyTo)
- Constructor for the IndexReadyMessage.
- Parameters:
harvestId
- The harvestId that requires the index.to
- The destination channelreplyTo
- The channel to reply to (not really used).
getHarvestId
public java.lang.Long getHarvestId()
- Returns:
- the Id of the harvest that requires this index.
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