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
LogEntryMatcher
initialize
in interface LogEntryMatcher
IOException
public List<LogEntry> entries()
LogEntryMatcher
Note, 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 LogEntryMatcher
public LogEntryMatcher.Operation match(LogEntry entry)
LogEntryMatcher
LogEntryMatcher.entries()
accumulated will be returned.match
in interface LogEntryMatcher
protected 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.