com.gigaspaces.log
Class ContinuousLogEntryMatcher
java.lang.Object
com.gigaspaces.log.ContinuousLogEntryMatcher
- All Implemented Interfaces:
- ClientLogEntryMatcherCallback, LogEntryMatcher, StreamLogEntryMatcher, Serializable
public class ContinuousLogEntryMatcher
- extends Object
- implements LogEntryMatcher, ClientLogEntryMatcherCallback, StreamLogEntryMatcher
A reusable matcher (not thread safe) which accepts a matcher that returns the log entries for the
first call, and for any other call, a AfterEntryLogEntryMatcher
will be
used with the last log entry returned.
- Author:
- kimchy
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContinuousLogEntryMatcher
public ContinuousLogEntryMatcher(LogEntryMatcher initialMatcher,
LogEntryMatcher continousMatcher)
initialize
public void initialize(LogEntryMatcher.InitializationContext context)
throws IOException
- Description copied from interface:
LogEntryMatcher
- Called on the loggable component side (server) before starting to traverse the log file.
- Specified by:
initialize
in interface LogEntryMatcher
- Throws:
IOException
entries
public List<LogEntry> entries()
- Description copied from interface:
LogEntryMatcher
- 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).
- Specified by:
entries
in interface LogEntryMatcher
match
public LogEntryMatcher.Operation match(LogEntry entry)
- Description copied from interface:
LogEntryMatcher
- Controls if the traversal of the log file should continue, or break. If it should break, then
all the
LogEntryMatcher.entries()
accumulated will be returned.
- Specified by:
match
in interface LogEntryMatcher
clientSideProcess
public LogEntries clientSideProcess(LogEntries entries)
- Description copied from interface:
ClientLogEntryMatcherCallback
- Process the log entries and use the resulted entries.
- Specified by:
clientSideProcess
in interface ClientLogEntryMatcherCallback
Copyright © GigaSpaces.