public class SizeLogEntryMatcher extends Object implements LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation
Constructor and Description |
---|
SizeLogEntryMatcher(int size) |
Modifier and Type | Method and Description |
---|---|
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 void initialize(LogEntryMatcher.InitializationContext context)
LogEntryMatcher
initialize
in interface LogEntryMatcher
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
Copyright © GigaSpaces.