GigaSpaces XAP 9.1 API

com.gigaspaces.log
Class LastNLogEntryMatcher

java.lang.Object
  extended by com.gigaspaces.log.LogEntryMatcherFilter
      extended by com.gigaspaces.log.LastNLogEntryMatcher
All Implemented Interfaces:
LogEntryMatcher, Serializable

public class LastNLogEntryMatcher
extends LogEntryMatcherFilter

Returns the last N log entries.

Author:
kimchy
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation
 
Constructor Summary
LastNLogEntryMatcher(int lastN)
           
LastNLogEntryMatcher(int lastN, LogEntryMatcher matcher)
           
 
Method Summary
protected  LogEntryMatcher.Operation filter(LogEntry entry)
          Should the operation be filtered or not.
 
Methods inherited from class com.gigaspaces.log.LogEntryMatcherFilter
entries, filterJustLogs, initialize, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastNLogEntryMatcher

public LastNLogEntryMatcher(int lastN)

LastNLogEntryMatcher

public LastNLogEntryMatcher(int lastN,
                            LogEntryMatcher matcher)
Method Detail

filter

protected LogEntryMatcher.Operation filter(LogEntry entry)
Description copied from class: LogEntryMatcherFilter
Should the operation be filtered or not. LogEntryMatcher.Operation.BREAK in order to break and finish the matching process. LogEntryMatcher.Operation.IGNORE to ignore the current log entry (so it won't be passed to the delegated matcher). And LogEntryMatcher.Operation.CONTINUE to pass the current log entry to the delegated matcher.

Specified by:
filter in class LogEntryMatcherFilter

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.