GigaSpaces XAP 10.0.1 API

com.gigaspaces.log
Class ContainsStringLogEntryMatcher

java.lang.Object
  extended by com.gigaspaces.log.LogEntryMatcherFilter
      extended by com.gigaspaces.log.ContainsStringLogEntryMatcher
All Implemented Interfaces:
LogEntryMatcher, Serializable

public class ContainsStringLogEntryMatcher
extends LogEntryMatcherFilter

A matcher filter that will filter out all log entries that do not contain the provided string.

Author:
kimchy
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation
 
Constructor Summary
ContainsStringLogEntryMatcher(String regex)
           
ContainsStringLogEntryMatcher(String str, LogEntryMatcher matcher)
           
 
Method Summary
protected  LogEntryMatcher.Operation filter(LogEntry entry)
          Should the operation be filtered or not.
 void initialize(LogEntryMatcher.InitializationContext context)
          Called on the loggable component side (server) before starting to traverse the log file.
 
Methods inherited from class com.gigaspaces.log.LogEntryMatcherFilter
entries, filterJustLogs, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainsStringLogEntryMatcher

public ContainsStringLogEntryMatcher(String regex)

ContainsStringLogEntryMatcher

public ContainsStringLogEntryMatcher(String str,
                                     LogEntryMatcher matcher)
Method Detail

initialize

public void initialize(LogEntryMatcher.InitializationContext context)
                throws IOException
Description copied from interface: LogEntryMatcher
Called on the loggable component side (server) before starting to traverse the log file.

Specified by:
initialize in interface LogEntryMatcher
Overrides:
initialize in class LogEntryMatcherFilter
Throws:
IOException

filter

protected LogEntryMatcher.Operation filter(LogEntry entry)
Description copied from class: LogEntryMatcherFilter
Should the operation be filtered or not. LogEntryMatcher.Operation.BREAK in order to break and finish the matching process. LogEntryMatcher.Operation.IGNORE to ignore the current log entry (so it won't be passed to the delegated matcher). And LogEntryMatcher.Operation.CONTINUE to pass the current log entry to the delegated matcher.

Specified by:
filter in class LogEntryMatcherFilter

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.