Package jetbrains.buildServer.serverSide
Interface MessageProcessor
-
- All Known Implementing Classes:
BaseMessageProcessor
,DuplicatesMessageProcessor
,InspectionsMessageProcessor
public interface MessageProcessor
Processes build messages. For the new build new message processor is being created.- See Also:
MessageProcessorFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getSourceId()
void
onBuildFinish()
Called when last message has been received for the build from the agent.default void
onShutdown()
Called when build server is about to shutdown.void
persistState()
Called when current state (if any) of this message processor must be persisted (for instance, to allow other nodes see it)boolean
processMessage(BuildMessage1 message)
-
-
-
Method Detail
-
getSourceId
@NotNull 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
-
-