|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.core.logging.CircularFIFOLogEventBuffer
public class CircularFIFOLogEventBuffer
Field Summary | |
---|---|
protected org.apache.commons.collections.buffer.CircularFifoBuffer |
buffer
|
protected LogEvent.Level |
logLevel
|
Constructor Summary | |
---|---|
CircularFIFOLogEventBuffer(int size)
|
Method Summary | |
---|---|
boolean |
add(LogEvent event)
Adds the given log event to this buffer. |
void |
clear()
Clears this buffer. |
LogEvent |
get()
Returns the least recently inserted element in this buffer. |
LogEvent.Level |
getLevel()
Returns log level |
String |
getLevelName()
Returns log level name |
boolean |
isEmpty()
Returns true if this buffer is empty; false otherwise. |
boolean |
isFull()
Returns true if this collection is full and no new elements can be added. |
Iterator<LogEvent> |
iterator()
Returns an iterator over this buffer's elements. |
int |
maxSize()
Gets the maximum size of the collection (the bound). |
LogEvent |
remove()
Removes the least recently inserted element from this buffer. |
void |
setLevel(LogEvent.Level logLevel)
Sets log level to store. |
void |
setLevelByName(String logLevelName)
Sets log level by its name to store. |
int |
size()
Returns the number of elements stored in the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.collections.buffer.CircularFifoBuffer buffer
protected LogEvent.Level logLevel
Constructor Detail |
---|
public CircularFIFOLogEventBuffer(int size)
Method Detail |
---|
public boolean add(LogEvent event)
LogEventBuffer
add
in interface LogEventBuffer
public void clear()
LogEventBuffer
clear
in interface LogEventBuffer
public LogEvent get()
LogEventBuffer
get
in interface LogEventBuffer
public boolean isEmpty()
LogEventBuffer
isEmpty
in interface LogEventBuffer
public boolean isFull()
LogEventBuffer
isFull
in interface LogEventBuffer
public Iterator<LogEvent> iterator()
LogEventBuffer
iterator
in interface LogEventBuffer
public int maxSize()
LogEventBuffer
maxSize
in interface LogEventBuffer
public LogEvent remove()
LogEventBuffer
remove
in interface LogEventBuffer
public int size()
LogEventBuffer
size
in interface LogEventBuffer
public void setLevel(LogEvent.Level logLevel)
LogEventBuffer
setLevel
in interface LogEventBuffer
public void setLevelByName(String logLevelName)
LogEventBuffer
setLevelByName
in interface LogEventBuffer
public LogEvent.Level getLevel()
LogEventBuffer
getLevel
in interface LogEventBuffer
public String getLevelName()
LogEventBuffer
getLevelName
in interface LogEventBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |