dk.netarkivet.harvester.harvesting.distribute
Class HarvesterRegistrationRequest

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

public class HarvesterRegistrationRequest
extends HarvesterMessage

Message sent by a HarvestController at startup, to check if the channel name it has been assigned is valid (e.g. registered in the harvest database). The message is sent on a dedicated queue, and processed by the HarvestMonitor, which checks if the channel name matches a channel defined in the harvest database. In reply a HarvesterRegistrationResponse is sent back.

See Also:
Serialized Form

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

HarvesterRegistrationRequest

public HarvesterRegistrationRequest(java.lang.String harvestChannelName,
                                    java.lang.String instanceId)
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 final java.lang.String getHarvestChannelName()
Returns:
the harvestChannelName

getInstanceId

public final java.lang.String getInstanceId()
Returns:
the instanceId