Package com.gigaspaces.log
Class BeforeTimeLogEntryMatcher
java.lang.Object
com.gigaspaces.log.LogEntryMatcherFilter
com.gigaspaces.log.BeforeTimeLogEntryMatcher
- All Implemented Interfaces:
LogEntryMatcher,Serializable
A matcher filter that will match only on log entries that occurred before the specified time.
- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation -
Constructor Summary
ConstructorsConstructorDescriptionBeforeTimeLogEntryMatcher(long timestamp) BeforeTimeLogEntryMatcher(long timestamp, boolean inclusive) BeforeTimeLogEntryMatcher(long timestamp, boolean inclusive, LogEntryMatcher matcher) BeforeTimeLogEntryMatcher(long timestamp, LogEntryMatcher matcher) BeforeTimeLogEntryMatcher(String time, boolean inclusive) BeforeTimeLogEntryMatcher(String time, boolean inclusive, LogEntryMatcher matcher) BeforeTimeLogEntryMatcher(String time, LogEntryMatcher matcher) BeforeTimeLogEntryMatcher(String time, String format) BeforeTimeLogEntryMatcher(String time, String format, boolean inclusive) BeforeTimeLogEntryMatcher(String time, String format, boolean inclusive, LogEntryMatcher matcher) BeforeTimeLogEntryMatcher(String time, String format, LogEntryMatcher matcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected LogEntryMatcher.OperationShould the operation be filtered or not.protected booleanShould this filter only filter log type entries.Methods inherited from class com.gigaspaces.log.LogEntryMatcherFilter
entries, initialize, match
-
Constructor Details
-
BeforeTimeLogEntryMatcher
- Throws:
ParseException
-
BeforeTimeLogEntryMatcher
- Throws:
ParseException
-
BeforeTimeLogEntryMatcher
- Throws:
ParseException
-
BeforeTimeLogEntryMatcher
public BeforeTimeLogEntryMatcher(String time, String format, boolean inclusive) throws ParseException - Throws:
ParseException
-
BeforeTimeLogEntryMatcher
public BeforeTimeLogEntryMatcher(String time, boolean inclusive, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
BeforeTimeLogEntryMatcher
- Throws:
ParseException
-
BeforeTimeLogEntryMatcher
public BeforeTimeLogEntryMatcher(String time, String format, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
BeforeTimeLogEntryMatcher
public BeforeTimeLogEntryMatcher(String time, String format, boolean inclusive, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
BeforeTimeLogEntryMatcher
public BeforeTimeLogEntryMatcher(long timestamp) -
BeforeTimeLogEntryMatcher
-
BeforeTimeLogEntryMatcher
public BeforeTimeLogEntryMatcher(long timestamp, boolean inclusive) -
BeforeTimeLogEntryMatcher
-
-
Method Details
-
filterJustLogs
protected boolean filterJustLogs()Description copied from class:LogEntryMatcherFilterShould this filter only filter log type entries. Defaults totrue.- Overrides:
filterJustLogsin classLogEntryMatcherFilter
-
filter
Description copied from class:LogEntryMatcherFilterShould the operation be filtered or not.LogEntryMatcher.Operation.BREAKin order to break and finish the matching process.LogEntryMatcher.Operation.IGNOREto ignore the current log entry (so it won't be passed to the delegated matcher). AndLogEntryMatcher.Operation.CONTINUEto pass the current log entry to the delegated matcher.- Specified by:
filterin classLogEntryMatcherFilter
-