|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.log.LogEntryMatcherFilter
public abstract class LogEntryMatcherFilter
A base class for entry matchers that act as filters to a delegated matcher.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher |
---|
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation |
Constructor Summary | |
---|---|
protected |
LogEntryMatcherFilter(LogEntryMatcher matcher)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LogEntryMatcherFilter(LogEntryMatcher matcher)
Method Detail |
---|
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.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |