Package com.gigaspaces.log
Class LogEntryMatcherFilter
java.lang.Object
com.gigaspaces.log.LogEntryMatcherFilter
- All Implemented Interfaces:
LogEntryMatcher,Serializable
- Direct Known Subclasses:
AfterEntryLogEntryMatcher,AfterTimeLogEntryMatcher,BeforeEntryLogEntryMatcher,BeforeTimeLogEntryMatcher,ContainsStringLogEntryMatcher,FirstFileLogEntryMatcher,LastNLogEntryMatcher,NoneLogEntryMatcher,RegexLogEntryMatcher,SameFileLogEntryMatcher
A base class for entry matchers that act as filters to a delegated matcher.
- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns all the relevant entries this matcher accumulated.protected abstract LogEntryMatcher.OperationShould the operation be filtered or not.protected booleanShould this filter only filter log type entries.voidCalled on the loggable component side (server) before starting to traverse the log file.Controls if the traversal of the log file should continue, or break.
-
Constructor Details
-
LogEntryMatcherFilter
-
-
Method Details
-
initialize
Description copied from interface:LogEntryMatcherCalled on the loggable component side (server) before starting to traverse the log file.- Specified by:
initializein interfaceLogEntryMatcher- Throws:
IOException
-
entries
Description copied from interface:LogEntryMatcherReturns all the relevant entries this matcher accumulated.Note, for ease of use in implementing the matcher, the entries are assumed to be from newest to oldest (if the matcher value order).
- Specified by:
entriesin interfaceLogEntryMatcher
-
match
Description copied from interface:LogEntryMatcherControls if the traversal of the log file should continue, or break. If it should break, then all theLogEntryMatcher.entries()accumulated will be returned.- Specified by:
matchin interfaceLogEntryMatcher
-
filterJustLogs
protected boolean filterJustLogs()Should this filter only filter log type entries. Defaults totrue. -
filter
Should the operation be filtered or not.LogEntryMatcher.Operation.BREAKin order to break and finish the matching process.LogEntryMatcher.Operation.IGNOREto ignore the current log entry (so it won't be passed to the delegated matcher). AndLogEntryMatcher.Operation.CONTINUEto pass the current log entry to the delegated matcher.
-