jetbrains.buildServer.serverSide.buildLog
Class LogMessageFilter.DefaultFilter

java.lang.Object
  extended by jetbrains.buildServer.serverSide.buildLog.LogMessageFilter
      extended by jetbrains.buildServer.serverSide.buildLog.LogMessageFilter.DefaultFilter
Enclosing class:
LogMessageFilter

public static class LogMessageFilter.DefaultFilter
extends LogMessageFilter

This filter accepts all messages with priority WARNING, ERROR and FAILURE, and messages from incomplete blocks. All messages are returned with their parents in order of appearance in the build log.


Nested Class Summary
 
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.buildLog.LogMessageFilter
LogMessageFilter.DefaultFilter, LogMessageFilter.ProblemsFilter
 
Constructor Summary
LogMessageFilter.DefaultFilter()
           
 
Method Summary
 boolean acceptMessage(LogMessage message, boolean lastMessageInParent)
          Called if simple log message appeared.
protected  java.util.List<LogMessage> getListForStoringMessages(int maxImportantListSize)
          Returns list for storing log messages
 LogMessage getOverflowMessage()
           
 java.util.List<LogMessage> postProcess(java.util.List<LogMessage> filteredMessages)
          Called before returning result.
protected  void rememberStopLoadingMessage(java.util.List<LogMessage> filtered, LogMessage stopLoadingMessage)
           
protected  boolean shouldCheckMaxListSize()
          Returns true if should check maximum list size, false otherwise
 
Methods inherited from class jetbrains.buildServer.serverSide.buildLog.LogMessageFilter
acceptBlockMessage, appendMessageWithParents, filter, getStopLoadingMessage, rememberMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogMessageFilter.DefaultFilter

public LogMessageFilter.DefaultFilter()
Method Detail

acceptMessage

public boolean acceptMessage(LogMessage message,
                             boolean lastMessageInParent)
Description copied from class: LogMessageFilter
Called if simple log message appeared.

Specified by:
acceptMessage in class LogMessageFilter
Parameters:
message - message to filter
lastMessageInParent - true if this is the last message in parent block
Returns:
true if message accepted and false if message should be removed. If message is accepted then all its parents are accepted too.

postProcess

public java.util.List<LogMessage> postProcess(java.util.List<LogMessage> filteredMessages)
Description copied from class: LogMessageFilter
Called before returning result.

Overrides:
postProcess in class LogMessageFilter
Parameters:
filteredMessages - filtered messages
Returns:
post processed messages

rememberStopLoadingMessage

protected void rememberStopLoadingMessage(java.util.List<LogMessage> filtered,
                                          LogMessage stopLoadingMessage)
Overrides:
rememberStopLoadingMessage in class LogMessageFilter

getOverflowMessage

@Nullable
public LogMessage getOverflowMessage()

shouldCheckMaxListSize

protected boolean shouldCheckMaxListSize()
Description copied from class: LogMessageFilter
Returns true if should check maximum list size, false otherwise

Overrides:
shouldCheckMaxListSize in class LogMessageFilter
Returns:
true if should check maximum list size, false otherwise

getListForStoringMessages

protected java.util.List<LogMessage> getListForStoringMessages(int maxImportantListSize)
Description copied from class: LogMessageFilter
Returns list for storing log messages

Overrides:
getListForStoringMessages in class LogMessageFilter
Parameters:
maxImportantListSize - maximal important list size
Returns:
list for storing log messages