com.jamonapi
Class JAMonListenerFactory
java.lang.Object
com.jamonapi.JAMonListenerFactory
public class JAMonListenerFactory
- extends java.lang.Object
Factory used to hold JAMonListeners. Developers may put any listeners that implement
JAMonBufferListeners.
Any listener may be retrieved by passing in the JAMonListener name. At this time JAMon ships
with the following listeners that can be referenced by name. Every buffer has a shared counterpart
that allows different montiors to share the same buffer. In every other way they are
the same as their similarly named counterparts.
- FIFOBuffer - Holds most recent objects in the buffer
- NLargestValueBuffer - Keeps the largest values in the buffer
- NSmallestValueBuffer - Keeps the smallest values in the buffer
- NLargestValueBuffer7Days - When buffer is full the oldest data in buffer that is over 7 days is removed. If no data
is older than 7 days then the smallest is removed.
- NLargestValueBuffer24Hrs - When buffer is full the oldest data in buffer that is over 24 hours is removed. If no data
is older than 7 days then the smallest is removed.
- NSmallestValueBuffer7Days - When buffer is full the oldest data in buffer that is over 7 days is removed. If no data
is older than 7 days then the largest is removed.
- NSmallestValueBuffer24Hrs - When buffer is full the oldest data in buffer that is over 24 hours is removed. If no data
is older than 7 days then the largest is removed.
- SharedFIFOBuffer - Holds most recent objects in the buffer
- SharedNLargestValueBuffer - Keeps the largest values in the buffer
- SharedNSmallestValueBuffer - Keeps the smallest values in the buffer
- SharedNLargestValueBuffer7Days - When buffer is full the oldest data in buffer that is over 7 days is removed. If no data
is older than 7 days then the smallest is removed.
- SharedNLargestValueBuffer24Hrs - When buffer is full the oldest data in buffer that is over 24 hours is removed. If no data
is older than 7 days then the smallest is removed.
- SharedNSmallestValueBuffer7Days - When buffer is full the oldest data in buffer that is over 7 days is removed. If no data
is older than 7 days then the largest is removed.
- SharedNSmallestValueBuffer24Hrs - When buffer is full the oldest data in buffer that is over 24 hours is removed. If no data
is older than 7 days then the largest is removed.
- HTTPBufferListener - Buffer that holds data specific to http requests.
- ExceptionBufferListener - Buffer that holds data specific to monitors that track exceptions in the detail buffer
Method Summary |
static JAMonListener |
get(java.lang.String listenerName)
Get an instance of the named factory instance. |
static java.lang.Object[][] |
getData()
Returns an array of all registered JAMonListeners in the format: key, JamonListener factory instance |
static java.lang.String[] |
getHeader()
Returns the header for display of JAMonListeners |
static void |
put(JAMonListener jamonListener)
Developers may register their own listeners to be made available for use in JAMon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAMonListenerFactory
public JAMonListenerFactory()
put
public static void put(JAMonListener jamonListener)
- Developers may register their own listeners to be made available for use in JAMon
getData
public static java.lang.Object[][] getData()
- Returns an array of all registered JAMonListeners in the format: key, JamonListener factory instance
getHeader
public static java.lang.String[] getHeader()
- Returns the header for display of JAMonListeners
get
public static JAMonListener get(java.lang.String listenerName)
- Get an instance of the named factory instance. If the Liistener implements
CopyJAMonListener then copy will be called. If not then the default constructor will
be called.
- Parameters:
listenerName
-
- Returns:
- JAMonListener