public class ContinuousLogEntryMatcher extends Object implements LogEntryMatcher, ClientLogEntryMatcherCallback, StreamLogEntryMatcher
AfterEntryLogEntryMatcher
will be used with the
last log entry returned.LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation
Constructor and Description |
---|
ContinuousLogEntryMatcher(LogEntryMatcher initialMatcher,
LogEntryMatcher continousMatcher) |
Modifier and Type | Method and Description |
---|---|
LogEntries |
clientSideProcess(LogEntries entries)
Process the log entries and use the resulted entries.
|
List<LogEntry> |
entries()
Returns all the relevant entries this matcher accumulated.
|
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.
|
public ContinuousLogEntryMatcher(LogEntryMatcher initialMatcher, LogEntryMatcher continousMatcher)
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
public LogEntries clientSideProcess(LogEntries entries)
ClientLogEntryMatcherCallback
clientSideProcess
in interface ClientLogEntryMatcherCallback
Copyright © GigaSpaces.