Package 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation -
Constructor Summary
ConstructorsConstructorDescriptionContinuousLogEntryMatcher(LogEntryMatcher initialMatcher, LogEntryMatcher continousMatcher) -
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
-
ContinuousLogEntryMatcher
-
-
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
-