Class ConditionalMessageProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.processors.ConditionalMessageProcessor
-
- All Implemented Interfaces:
LowLevelMessageProcessor
public class ConditionalMessageProcessor extends Object implements LowLevelMessageProcessor
Searches and stores the firstLogMessageInfo
satisfying the provided condition.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.buildLog.LowLevelMessageProcessor
LowLevelMessageProcessor.Result
-
-
Constructor Summary
Constructors Constructor Description ConditionalMessageProcessor(Function<LogMessageInfo,Boolean> condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogMessageInfo
getSatisfyingMessage()
boolean
process(LogMessageInfo message, int index)
Called for each message loaded from the build log.-
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.buildLog.LowLevelMessageProcessor
preProcess
-
-
-
-
Constructor Detail
-
ConditionalMessageProcessor
public ConditionalMessageProcessor(@NotNull Function<LogMessageInfo,Boolean> condition)
-
-
Method Detail
-
process
public boolean process(@NotNull LogMessageInfo message, int index)
Description copied from interface:LowLevelMessageProcessor
Called for each message loaded from the build log.- Specified by:
process
in interfaceLowLevelMessageProcessor
- Parameters:
message
- log message- Returns:
- true if processing should be continued and false otherwise
-
getSatisfyingMessage
@Nullable public LogMessageInfo getSatisfyingMessage()
-
-