public abstract class LogEntryMatcherFilter extends Object implements LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation| Modifier | Constructor and Description |
|---|---|
protected |
LogEntryMatcherFilter(LogEntryMatcher matcher) |
| Modifier and Type | Method and Description |
|---|---|
List<LogEntry> |
entries()
Returns all the relevant entries this matcher accumulated.
|
protected abstract LogEntryMatcher.Operation |
filter(LogEntry entry)
Should the operation be filtered or not.
|
protected boolean |
filterJustLogs()
Should this filter only filter log type entries.
|
void |
initialize(LogEntryMatcher.InitializationContext context)
Called on the loggable component side (server) before starting to traverse the log file.
|
LogEntryMatcher.Operation |
match(LogEntry entry)
Controls if the traversal of the log file should continue, or break.
|
protected LogEntryMatcherFilter(LogEntryMatcher matcher)
public void initialize(LogEntryMatcher.InitializationContext context) throws IOException
LogEntryMatcherinitialize in interface LogEntryMatcherIOExceptionpublic List<LogEntry> entries()
LogEntryMatcherNote, for ease of use in implementing the matcher, the entries are assumed to be from newest to oldest (if the matcher value order).
entries in interface LogEntryMatcherpublic LogEntryMatcher.Operation match(LogEntry entry)
LogEntryMatcherLogEntryMatcher.entries() accumulated will be returned.match in interface LogEntryMatcherprotected boolean filterJustLogs()
true.protected abstract LogEntryMatcher.Operation filter(LogEntry entry)
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.Copyright © GigaSpaces.