Class HarvesterRegistrationRequest
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.harvester.distribute.HarvesterMessage
-
- 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.- Author:
- ngiraud
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
-
-
Constructor Summary
Constructors Constructor Description HarvesterRegistrationRequest(java.lang.String harvestChannelName, java.lang.String instanceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern.java.lang.String
getHarvestChannelName()
java.lang.String
getHostname()
java.lang.String
getInstanceId()
-
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
-
-
-
-
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 classHarvesterMessage
- 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
-
getHostname
public final java.lang.String getHostname()
- Returns:
- the hostname of the sender
-
-