Class HarvesterReadyMessage

    • Constructor Detail

      • HarvesterReadyMessage

        public HarvesterReadyMessage​(String applicationInstanceId,
                                     String harvestChannelName)
        Builds a new message.
        Parameters:
        harvestChannelName - the channel of jobs crawled by the sender.
        applicationInstanceId - the sender's application instance ID.
    • 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 String getHarvestChannelName()
        Returns:
        the associated harvest channel name
      • getApplicationInstanceId

        public String getApplicationInstanceId()
        Returns:
        the application instance ID.
      • getHostName

        public String getHostName()
        Returns:
        the hostname of the sender.