dk.netarkivet.harvester.harvesting.distribute
Class HarvesterReadyMessage

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

public class HarvesterReadyMessage
extends HarvesterMessage
implements java.io.Serializable

The HarvestControllerServer periodically sends HarvesterReadyMessages to the JobDispatcher to notify it whether it is available for processing a job or already processing one.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
 
Constructor Summary
HarvesterReadyMessage(java.lang.String applicationInstanceId, java.lang.String harvestChannelName)
          Builds a new message.
 
Method Summary
 void accept(HarvesterMessageVisitor v)
          Should be implemented as a part of the visitor pattern.
 java.lang.String getApplicationInstanceId()
           
 java.lang.String getHarvestChannelName()
           
 
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

HarvesterReadyMessage

public HarvesterReadyMessage(java.lang.String applicationInstanceId,
                             java.lang.String harvestChannelName)
Builds a new message.

Parameters:
harvestChannelName - the channel of jobs crawled by the sender.
applicationInstanceId - the sender's application instance ID.
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

getHarvestChannelName

public java.lang.String getHarvestChannelName()
Returns:
the associated harvest channel name

getApplicationInstanceId

public java.lang.String getApplicationInstanceId()
Returns:
the application instance ID.