Package com.gigaspaces.log
Class LogEntryMatchers
java.lang.Object
com.gigaspaces.log.LogEntryMatchers
A set of static construction methods for
LogEntryMatchers.- Author:
- kimchy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AfterEntryLogEntryMatcherafterEntry(LogEntries logEntries, LogEntry logEntry) static AfterEntryLogEntryMatcherafterEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive) static AfterEntryLogEntryMatcherafterEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive, LogEntryMatcher matcher) static AfterEntryLogEntryMatcherafterEntry(LogEntries logEntries, LogEntry logEntry, LogEntryMatcher matcher) static AfterTimeLogEntryMatcherafterTime(long timestamp) static AfterTimeLogEntryMatcherafterTime(long timestamp, boolean inclusive) static AfterTimeLogEntryMatcherafterTime(long timestamp, boolean inclusive, LogEntryMatcher matcher) static AfterTimeLogEntryMatcherafterTime(long timestamp, LogEntryMatcher matcher) static AfterTimeLogEntryMatcherstatic AfterTimeLogEntryMatcherstatic AfterTimeLogEntryMatcherafterTime(String time, boolean inclusive, LogEntryMatcher matcher) static AfterTimeLogEntryMatcherafterTime(String time, LogEntryMatcher matcher) static AfterTimeLogEntryMatcherstatic AfterTimeLogEntryMatcherstatic AfterTimeLogEntryMatcherafterTime(String time, String format, boolean inclusive, LogEntryMatcher matcher) static AfterTimeLogEntryMatcherafterTime(String time, String format, LogEntryMatcher matcher) static AllLogEntryMatcherall()static BeforeEntryLogEntryMatcherbeforeEntry(LogEntries logEntries, LogEntry logEntry) static BeforeEntryLogEntryMatcherbeforeEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive) static BeforeEntryLogEntryMatcherbeforeEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive, LogEntryMatcher matcher) static BeforeEntryLogEntryMatcherbeforeEntry(LogEntries logEntries, LogEntry logEntry, LogEntryMatcher matcher) static BeforeTimeLogEntryMatcherbeforeTime(long timestamp) static BeforeTimeLogEntryMatcherbeforeTime(long timestamp, boolean inclusive) static BeforeTimeLogEntryMatcherbeforeTime(long timestamp, boolean inclusive, LogEntryMatcher matcher) static BeforeTimeLogEntryMatcherbeforeTime(long timestamp, LogEntryMatcher matcher) static BeforeTimeLogEntryMatcherbeforeTime(String time) static BeforeTimeLogEntryMatcherbeforeTime(String time, boolean inclusive) static BeforeTimeLogEntryMatcherbeforeTime(String time, boolean inclusive, LogEntryMatcher matcher) static BeforeTimeLogEntryMatcherbeforeTime(String time, LogEntryMatcher matcher) static BeforeTimeLogEntryMatcherbeforeTime(String time, String format) static BeforeTimeLogEntryMatcherbeforeTime(String time, String format, boolean inclusive) static BeforeTimeLogEntryMatcherbeforeTime(String time, String format, boolean inclusive, LogEntryMatcher matcher) static BeforeTimeLogEntryMatcherbeforeTime(String time, String format, LogEntryMatcher matcher) containsString(String str) containsString(String str, LogEntryMatcher matcher) static ContinuousLogEntryMatchercontinuous(LogEntryMatcher initialMatcher) static ContinuousLogEntryMatchercontinuous(LogEntryMatcher initialMatcher, LogEntryMatcher continousMatcher) static FirstFileLogEntryMatcherstatic FirstFileLogEntryMatcherfirstFile(LogEntryMatcher matcher) static ForwardChunkLogEntryMatcherforwardChunk(LogEntryMatcher matcher) static LastNLogEntryMatcherlastN(int lastN) static LastNLogEntryMatcherlastN(int lastN, LogEntryMatcher matcher) static NoneLogEntryMatchernone()static RegexLogEntryMatcherstatic RegexLogEntryMatcherregex(String regex, LogEntryMatcher matcher) static ReverseLogEntryMatcherreverse(LogEntryMatcher matcher) static SizeLogEntryMatchersize(int size)
-
Field Details
-
INCLUSIVE
public static final boolean INCLUSIVE- See Also:
-
EXCLUSIVE
public static final boolean EXCLUSIVE- See Also:
-
DEFAULT_TIME_FORMAT
- See Also:
-
-
Method Details
-
afterTime
-
afterTime
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(long timestamp, boolean inclusive, LogEntryMatcher matcher) -
afterTime
-
afterTime
- Throws:
ParseException
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(String time, boolean inclusive) throws ParseException - Throws:
ParseException
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(String time, boolean inclusive, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(String time, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
afterTime
- Throws:
ParseException
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(String time, String format, boolean inclusive) throws ParseException - Throws:
ParseException
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(String time, String format, boolean inclusive, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
afterTime
public static AfterTimeLogEntryMatcher afterTime(String time, String format, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
beforeTime
-
beforeTime
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(long timestamp, boolean inclusive, LogEntryMatcher matcher) -
beforeTime
-
beforeTime
- Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, boolean inclusive) throws ParseException - Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, boolean inclusive, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, String format) throws ParseException - Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, String format, boolean inclusive) throws ParseException - Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, String format, boolean inclusive, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
beforeTime
public static BeforeTimeLogEntryMatcher beforeTime(String time, String format, LogEntryMatcher matcher) throws ParseException - Throws:
ParseException
-
afterEntry
-
afterEntry
public static AfterEntryLogEntryMatcher afterEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive) -
afterEntry
public static AfterEntryLogEntryMatcher afterEntry(LogEntries logEntries, LogEntry logEntry, LogEntryMatcher matcher) -
afterEntry
public static AfterEntryLogEntryMatcher afterEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive, LogEntryMatcher matcher) -
beforeEntry
-
beforeEntry
public static BeforeEntryLogEntryMatcher beforeEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive) -
beforeEntry
public static BeforeEntryLogEntryMatcher beforeEntry(LogEntries logEntries, LogEntry logEntry, LogEntryMatcher matcher) -
beforeEntry
public static BeforeEntryLogEntryMatcher beforeEntry(LogEntries logEntries, LogEntry logEntry, boolean inclusive, LogEntryMatcher matcher) -
lastN
-
lastN
-
regex
-
regex
-
containsString
-
containsString
-
firstFile
-
firstFile
-
continuous
-
continuous
public static ContinuousLogEntryMatcher continuous(LogEntryMatcher initialMatcher, LogEntryMatcher continousMatcher) -
forwardChunk
-
reverse
-
all
-
size
-
none
-