Package com.gigaspaces.log
Class ReverseLogEntryMatcher
java.lang.Object
com.gigaspaces.log.ReverseLogEntryMatcher
- All Implemented Interfaces:
ClientLogEntryMatcherCallback,LogEntryMatcher,StreamLogEntryMatcher,Serializable
public class ReverseLogEntryMatcher
extends Object
implements LogEntryMatcher, ClientLogEntryMatcherCallback, StreamLogEntryMatcher
A streaming log entry matcher that allows to traverse the log entries in a streaming manner in a
reverse order.
- 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 TypeMethodDescriptionclientSideProcess(LogEntries entries) Process the log entries and use the resulted entries.entries()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.
-
Constructor Details
-
ReverseLogEntryMatcher
-
-
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
-
clientSideProcess
Description copied from interface:ClientLogEntryMatcherCallbackProcess the log entries and use the resulted entries.- Specified by:
clientSideProcessin interfaceClientLogEntryMatcherCallback
-