|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jamonapi.JAMonBufferListener
com.jamonapi.log4j.Log4jBufferListener
public class Log4jBufferListener
This class can act as a standard JAMonBufferListener/FIFOBuffer or more interestingly if used with log4j it will put in the Buffer data that although designed to work as a Buffer that displays details unique to log4j, if the monitor does not have a Log4jMonKey, it will fallback to Standard JAMonBufferListener behaviour. This makes it so no problems exist if someone inadvertently assigns a Log4jBufferListener to a non log4j entity.
| Constructor Summary | |
|---|---|
Log4jBufferListener()
Constructor that creaates this object with its default name (the class name) |
|
Log4jBufferListener(java.lang.String name)
Pass in the jamonListener name |
|
Log4jBufferListener(java.lang.String name,
BufferList list)
Name the listener and pass in the jamon BufferList to use |
|
| Method Summary | |
|---|---|
JAMonListener |
copy()
Makes a usable copy of this BufferListener |
protected java.lang.String[] |
getDefaultHeader()
|
java.lang.String[] |
getHeader()
Returns the valid header for display of this buffer |
void |
processEvent(Monitor mon)
When this event is fired the monitor will be added to the rolling buffer. |
protected java.lang.Object[] |
toArray(org.apache.log4j.spi.LoggingEvent event,
Monitor mon)
method that returns an array to use in the Buffer. |
| Methods inherited from class com.jamonapi.JAMonBufferListener |
|---|
addRow, addRow, getBufferList, getDetailData, getName, getRowCount, hasData, isEmpty, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log4jBufferListener()
public Log4jBufferListener(java.lang.String name)
public Log4jBufferListener(java.lang.String name,
BufferList list)
| Method Detail |
|---|
public void processEvent(Monitor mon)
processEvent in interface JAMonListenerprocessEvent in class JAMonBufferListener
protected java.lang.Object[] toArray(org.apache.log4j.spi.LoggingEvent event,
Monitor mon)
event - mon -
protected java.lang.String[] getDefaultHeader()
public JAMonListener copy()
copy in interface CopyJAMonListenercopy in class JAMonBufferListenerpublic java.lang.String[] getHeader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||