Class HarvesterRegistrationResponse
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.harvester.distribute.HarvesterMessage
-
- dk.netarkivet.harvester.harvesting.distribute.HarvesterRegistrationResponse
-
- All Implemented Interfaces:
Serializable
public class HarvesterRegistrationResponse extends HarvesterMessage
Message sent by the HarvesterStatusReceiver after processing aHarvesterRegistrationRequest
message. It notifies crawlers whether a given harvest channel effectively matches aHarvestChannel
defined in the harvest database.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
-
-
Constructor Summary
Constructors Constructor Description HarvesterRegistrationResponse(String harvestChannelName, boolean isValid, boolean isSnapshot)
Constructor from fields.
-
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.String
getHarvestChannelName()
boolean
isSnapshot()
boolean
isValid()
-
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
-
-
-
-
Constructor Detail
-
HarvesterRegistrationResponse
public HarvesterRegistrationResponse(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.
-
-
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 String getHarvestChannelName()
- Returns:
- the harvestChannelName
-
isValid
public final boolean isValid()
- Returns:
- the isValid
-
isSnapshot
public final boolean isSnapshot()
- Returns:
- the isSnapshot
-
-