GigaSpaces XAP 8.0 API

com.gigaspaces.log
Class SizeLogEntryMatcher

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

public class SizeLogEntryMatcher
extends Object
implements LogEntryMatcher

A matcher that returns only stores the last N entries but does not break (basically, will return the last N elements processed).

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
SizeLogEntryMatcher(int size)
           
 
Method Summary
 List<LogEntry> entries()
          Returns all the relevant entries this matcher accumulated.
 void initialize(LogEntryMatcher.InitializationContext context)
          Called on the loggable component side (server) before starting to traverse the log file.
 LogEntryMatcher.Operation match(LogEntry entry)
          Controls if the traversal of the log file should continue, or break.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeLogEntryMatcher

public SizeLogEntryMatcher(int size)
Method Detail

initialize

public void initialize(LogEntryMatcher.InitializationContext context)
Description copied from interface: LogEntryMatcher
Called on the loggable component side (server) before starting to traverse the log file.

Specified by:
initialize in interface LogEntryMatcher

entries

public List<LogEntry> entries()
Description copied from interface: LogEntryMatcher
Returns 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:
entries in interface LogEntryMatcher

match

public LogEntryMatcher.Operation match(LogEntry entry)
Description copied from interface: LogEntryMatcher
Controls if the traversal of the log file should continue, or break. If it should break, then all the LogEntryMatcher.entries() accumulated will be returned.

Specified by:
match in interface LogEntryMatcher

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.