Package org.apache.lucene.luke.util
Class CircularLogBufferHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- org.apache.lucene.luke.util.CircularLogBufferHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCircularLogBufferHandler.ImmutableLogRecordProvides an immutable clone of the required data from aLogRecordlogged elsewhere.static interfaceCircularLogBufferHandler.LogUpdateListenerListeners receiving log state updates.
-
Constructor Summary
Constructors Constructor Description CircularLogBufferHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUpdateListener(CircularLogBufferHandler.LogUpdateListener listener)voidclose()voidflush()List<CircularLogBufferHandler.ImmutableLogRecord>getLogRecords()voidpublish(LogRecord record)voidremoveUpdateListener(CircularLogBufferHandler.LogUpdateListener listener)-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Method Detail
-
close
public void close() throws SecurityException- Specified by:
closein classHandler- Throws:
SecurityException
-
addUpdateListener
public void addUpdateListener(CircularLogBufferHandler.LogUpdateListener listener)
-
removeUpdateListener
public void removeUpdateListener(CircularLogBufferHandler.LogUpdateListener listener)
-
getLogRecords
public List<CircularLogBufferHandler.ImmutableLogRecord> getLogRecords()
- Returns:
- Return a clone of the buffered records so far.
-
-