Class HierarchyMessagesProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.processors.HierarchyMessagesProcessor
-
- All Implemented Interfaces:
LowLevelMessageProcessor
public class HierarchyMessagesProcessor extends Object implements LowLevelMessageProcessor
This processor collects all messages which can affect hierarchy of blocks: open/close/flowStart/flowFinish. Hierarchy is collected up to the specified threshold message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.buildLog.LowLevelMessageProcessor
LowLevelMessageProcessor.Result
-
-
Constructor Summary
Constructors Constructor Description HierarchyMessagesProcessor(int thresholdMessageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<LogMessageInfo,Integer>getCollectedHierarchyAndThresholdMessages()LowLevelMessageProcessor.ResultpreProcess(IndexRecord indexRecord, int index)Called before loading message data from the build log.booleanprocess(LogMessageInfo message, int index)Called for each message loaded from the build log.
-
-
-
Method Detail
-
preProcess
@NotNull public LowLevelMessageProcessor.Result preProcess(@NotNull IndexRecord indexRecord, int index)
Description copied from interface:LowLevelMessageProcessorCalled before loading message data from the build log.- Specified by:
preProcessin interfaceLowLevelMessageProcessor- Parameters:
indexRecord- index recordindex- the record index which is the number in the index file- Returns:
- result of filtering
-
process
public boolean process(@NotNull LogMessageInfo message, int index)Description copied from interface:LowLevelMessageProcessorCalled for each message loaded from the build log.- Specified by:
processin interfaceLowLevelMessageProcessor- Parameters:
message- log message- Returns:
- true if processing should be continued and false otherwise
-
getCollectedHierarchyAndThresholdMessages
@Nullable public Map<LogMessageInfo,Integer> getCollectedHierarchyAndThresholdMessages()
-
-