Package com.gigaspaces.log
Interface LogEntryMatcher
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ClientLogEntryMatcherCallback,StreamLogEntryMatcher
- All Known Implementing Classes:
AfterEntryLogEntryMatcher,AfterTimeLogEntryMatcher,AllLogEntryMatcher,BeforeEntryLogEntryMatcher,BeforeTimeLogEntryMatcher,ContainsStringLogEntryMatcher,ContinuousLogEntryMatcher,FirstFileLogEntryMatcher,ForwardChunkLogEntryMatcher,LastNLogEntryMatcher,LogEntryMatcherFilter,NoneLogEntryMatcher,RegexLogEntryMatcher,ReverseLogEntryMatcher,SameFileLogEntryMatcher,SizeLogEntryMatcher
A matcher allowing to control the traversal of the log file. Also accumulates the required log
entries to be processed in order to return them.
- Author:
- kimchy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns all the relevant entries this matcher accumulated.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.
-
Method Details
-
initialize
Called on the loggable component side (server) before starting to traverse the log file.- Throws:
IOException
-
entries
Returns 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).
-
match
Controls if the traversal of the log file should continue, or break. If it should break, then all theentries()accumulated will be returned.
-