Class BatchTerminationMessage

    • Constructor Detail

      • BatchTerminationMessage

        public BatchTerminationMessage​(ChannelID to,
                                       String batchID)
                                throws ArgumentNotValid
        Constructor.
        Parameters:
        to - Where the message should be sent.
        batchID - The ID of the batchjob to terminate.
        Throws:
        ArgumentNotValid - If the batchID is either null or the empty string.
      • BatchTerminationMessage

        public BatchTerminationMessage​(ChannelID to,
                                       ChannelID replyTo,
                                       String batchID)
                                throws ArgumentNotValid
        Constructor.
        Parameters:
        to - Where the message should be sent.
        replyTo - Where the message is sent from.
        batchID - The ID of the batchjob to terminate.
        Throws:
        ArgumentNotValid - If the batchID is either null or the empty string.
    • Method Detail

      • getTerminateID

        public String getTerminateID()
        Method for retrieving the ID of the batchjob to terminate.
        Returns:
        The ID of the batchjob to terminate.
      • toString

        public String toString()
        Extends the default toString of NetarkiveMessage with the terminateID.
        Overrides:
        toString in class NetarkivetMessage
        Returns:
        The string representation of this message.