dk.netarkivet.harvester.harvesting.distribute
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HarvesterRegistrationRequest
public HarvesterRegistrationRequest(java.lang.String harvestChannelName,
java.lang.String instanceId)
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