Class BaseMessageProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.stat.BaseMessageProcessor
-
- All Implemented Interfaces:
MessageProcessor
- Direct Known Subclasses:
DuplicatesMessageProcessor
,InspectionsMessageProcessor
public abstract class BaseMessageProcessor extends Object implements MessageProcessor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseMessageProcessor()
protected
BaseMessageProcessor(Set<String> types)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
canProcess(BuildMessage1 message)
protected abstract void
doProcessMessage(BuildMessage1 message)
void
onBuildFinish()
Called when last message has been received for the build from the agent.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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.MessageProcessor
getSourceId, onShutdown
-
-
-
-
Method Detail
-
processMessage
public boolean processMessage(@NotNull BuildMessage1 message)
- Specified by:
processMessage
in interfaceMessageProcessor
- Parameters:
message
- new message in the build.- Returns:
- true if the message processed or false if processor was not able to process the message
-
canProcess
protected boolean canProcess(@NotNull BuildMessage1 message)
-
persistState
public void persistState()
Description copied from interface:MessageProcessor
Called when current state (if any) of this message processor must be persisted (for instance, to allow other nodes see it)- Specified by:
persistState
in interfaceMessageProcessor
-
onBuildFinish
public void onBuildFinish()
Description copied from interface:MessageProcessor
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.- Specified by:
onBuildFinish
in interfaceMessageProcessor
-
doProcessMessage
protected abstract void doProcessMessage(BuildMessage1 message)
-
-