Class HarvesterRegistrationResponse

    • Constructor Detail

      • HarvesterRegistrationResponse

        public HarvesterRegistrationResponse​(String harvestChannelName,
                                             boolean isValid,
                                             boolean isSnapshot)
        Constructor from fields.
        Parameters:
        harvestChannelName - the harvest channel name
        isValid - whether the given name denotes an existing channel
        isSnapshot - 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 class HarvesterMessage
        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