dk.netarkivet.harvester.harvesting.distribute
Class HarvesterRegistrationResponse
java.lang.Object
dk.netarkivet.common.distribute.NetarkivetMessage
dk.netarkivet.harvester.distribute.HarvesterMessage
dk.netarkivet.harvester.harvesting.distribute.HarvesterRegistrationResponse
- All Implemented Interfaces:
- java.io.Serializable
public class HarvesterRegistrationResponse
- extends HarvesterMessage
Message sent by the HarvesterStatusReceiver
after processing a
HarvesterRegistrationRequest
message. It notifies crawlers
whether a given harvest channel effectively matches a HarvestChannel
defined in the harvest database.
- See Also:
- Serialized Form
Constructor Summary |
HarvesterRegistrationResponse(java.lang.String harvestChannelName,
boolean isValid,
boolean isSnapshot)
Constructor from fields. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HarvesterRegistrationResponse
public HarvesterRegistrationResponse(java.lang.String harvestChannelName,
boolean isValid,
boolean isSnapshot)
- Constructor from fields.
- Parameters:
harvestChannelName
- the harvest channel nameisValid
- whether the given name denotes an existing channelisSnapshot
- true if the channel accepts snapshot harvest, false for partial.
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
isValid
public final boolean isValid()
- Returns:
- the isValid
isSnapshot
public final boolean isSnapshot()
- Returns:
- the isSnapshot