Interface MessageProcessor


  • public interface MessageProcessor
    Processes build messages. For the new build new message processor is being created.
    See Also:
    MessageProcessorFactory
    • Method Detail

      • getSourceId

        @NotNull
        java.lang.String getSourceId()
        Returns:
        message source id to be processed by this instance of processor.
      • processMessage

        boolean processMessage​(@NotNull
                               BuildMessage1 message)
        Parameters:
        message - new message in the build.
        Returns:
        true if the message processed or false if processor was not able to process the message
      • onBuildFinish

        void onBuildFinish()
        Called when last message has been received for the build from the agent. Can be used to destroy state which was associated with the build.
        Since:
        10.0
      • onShutdown

        default void onShutdown()
        Called when build server is about to shutdown.
      • persistState

        void persistState()
        Called when current state (if any) of this message processor must be persisted (for instance, to allow other nodes see it)
        Since:
        2019.1.2