Package | Description |
---|---|
com.jamonapi |
This package contains classes and interfaces used to monitor Java applications.
|
com.jamonapi.log4j |
Modifier and Type | Class and Description |
---|---|
class |
MonitorComposite
Treats groups of monitors the same way you treat one monitor.
|
class |
NullMonitor
Do nothing monitor i.e.
|
Modifier and Type | Method and Description |
---|---|
Monitor |
MonitorComposite.add(double value) |
Monitor |
Monitor.add(double value) |
Monitor |
MonitorFactoryInterface.add(MonKey key,
double value)
Used when you want to create your own key for the monitor.
|
static Monitor |
MonitorFactory.add(MonKey key,
double value)
Used when you want to create your own key for the monitor.
|
Monitor |
FactoryEnabled.add(MonKey key,
double value) |
Monitor |
FactoryDisabled.add(MonKey key,
double value) |
Monitor |
MonitorFactoryInterface.add(String label,
String units,
double value)
Return a monitor with the given label and units.
|
static Monitor |
MonitorFactory.add(String label,
String units,
double value)
Aggregate the passed in value with the monitor associated with the label, and the units.
|
Monitor |
FactoryEnabled.add(String label,
String units,
double value) |
Monitor |
FactoryDisabled.add(String label,
String units,
double value) |
Monitor |
MonitorFactoryInterface.addException(Monitor mon,
Throwable throwable)
Add 2 exception monitors.
|
static Monitor |
MonitorFactory.addException(Monitor mon,
Throwable throwable)
Add 2 exception monitors.
|
Monitor |
FactoryEnabled.addException(Monitor mon,
Throwable throwable)
Note this creates 2 exception monitors and the more specific one is returned
|
Monitor |
FactoryDisabled.addException(Monitor mon,
Throwable throwable) |
Monitor |
MonitorFactoryInterface.addException(Throwable throwable)
Track an exception except there is no other associated monitor to put the details in.
|
static Monitor |
MonitorFactory.addException(Throwable throwable)
Track an exception except there is no other associated monitor to put the details in.
|
Monitor |
FactoryEnabled.addException(Throwable throwable) |
Monitor |
FactoryDisabled.addException(Throwable throwable) |
Monitor |
MonitorFactoryInterface.getMonitor()
Returns a non-TimeMonitor that won't update the jamon factory.
|
static Monitor |
MonitorFactory.getMonitor() |
Monitor |
FactoryEnabled.getMonitor() |
Monitor |
FactoryDisabled.getMonitor() |
Monitor |
MonitorFactoryInterface.getMonitor(MonKey key)
Get the monitor associated with the passed in key.
|
static Monitor |
MonitorFactory.getMonitor(MonKey key)
Get the monitor associated with the passed in key.
|
Monitor |
MonitorComposite.getMonitor(MonKey key) |
Monitor |
FactoryEnabled.getMonitor(MonKey key) |
Monitor |
FactoryDisabled.getMonitor(MonKey key) |
Monitor |
MonitorFactoryInterface.getMonitor(String label,
String units)
Get the monitor with the passed in label, and units.
|
static Monitor |
MonitorFactory.getMonitor(String label,
String units)
Return the monitor associated with the label, and units.
|
Monitor |
FactoryEnabled.getMonitor(String label,
String units) |
Monitor |
FactoryDisabled.getMonitor(String label,
String units) |
Monitor[] |
MonitorComposite.getMonitors() |
Monitor |
MonitorFactoryInterface.getTimeMonitor(MonKey key)
Get the time monitor associated with the passed in key.
|
static Monitor |
MonitorFactory.getTimeMonitor(MonKey key)
Get the time monitor associated with the passed in key.
|
Monitor |
FactoryEnabled.getTimeMonitor(MonKey key) |
Monitor |
FactoryDisabled.getTimeMonitor(MonKey key) |
Monitor |
MonitorFactoryInterface.getTimeMonitor(String label)
Get the time monitor associated with the passed in label.
|
static Monitor |
MonitorFactory.getTimeMonitor(String label)
Return the time monitor associated with the label.
|
Monitor |
FactoryEnabled.getTimeMonitor(String label) |
Monitor |
FactoryDisabled.getTimeMonitor(String label) |
Monitor |
MonitorCompositeIterator.next() |
Monitor |
Monitor.skip()
decrement counters but don't add aggregate stats to monitor.
|
Monitor |
MonitorFactoryInterface.start()
Returns a TimeMonitor that won't update the jamon factory.
|
static Monitor |
MonitorFactory.start()
Return a timing monitor with units in milliseconds, that is not aggregated into the jamon stats.
|
Monitor |
MonitorComposite.start() |
Monitor |
Monitor.start() |
Monitor |
FactoryEnabled.start() |
Monitor |
FactoryDisabled.start() |
Monitor |
MonitorFactoryInterface.start(MonKey key)
Start using the passed in key.
|
static Monitor |
MonitorFactory.start(MonKey key)
Start using the passed in key.
|
Monitor |
FactoryEnabled.start(MonKey key) |
Monitor |
FactoryDisabled.start(MonKey key) |
Monitor |
MonitorFactoryInterface.start(String label)
Return a time monitor (the units are implied and are ms.
|
static Monitor |
MonitorFactory.start(String label)
Return a timing monitor with units in milliseconds.
|
Monitor |
FactoryEnabled.start(String label) |
Monitor |
FactoryDisabled.start(String label) |
Monitor |
MonitorFactoryInterface.startNano(MonKey key)
Provide your own key to a nanosecond timer
|
static Monitor |
MonitorFactory.startNano(MonKey key)
Provide your own key to a nanosecond timer
|
Monitor |
FactoryEnabled.startNano(MonKey key) |
Monitor |
FactoryDisabled.startNano(MonKey key) |
Monitor |
MonitorFactoryInterface.startNano(String label)
Create a timing monitor that uses nanosecond granularity (1,000,000 ns.=1 ms.)
|
static Monitor |
MonitorFactory.startNano(String label)
start nanosecond timer
|
Monitor |
FactoryEnabled.startNano(String label) |
Monitor |
FactoryDisabled.startNano(String label) |
Monitor |
MonitorFactoryInterface.startPrimary(MonKey key)
Start a monitor with the specified key and mark it as primary
|
static Monitor |
MonitorFactory.startPrimary(MonKey key)
Start a monitor with the specified key and mark it as primary
|
Monitor |
FactoryEnabled.startPrimary(MonKey key) |
Monitor |
FactoryDisabled.startPrimary(MonKey key) |
Monitor |
MonitorFactoryInterface.startPrimary(String label)
Start a time monitor and mark it as primary
|
static Monitor |
MonitorFactory.startPrimary(String label)
Return a timing monitor with units in milliseconds, that is not aggregated into the jamon stats.
|
Monitor |
FactoryEnabled.startPrimary(String label) |
Monitor |
FactoryDisabled.startPrimary(String label) |
Monitor |
MonitorComposite.stop() |
Monitor |
Monitor.stop() |
Modifier and Type | Method and Description |
---|---|
List<Monitor> |
MonitorCompositeIterator.toList() |
Modifier and Type | Method and Description |
---|---|
Monitor |
MonitorFactoryInterface.addException(Monitor mon,
Throwable throwable)
Add 2 exception monitors.
|
static Monitor |
MonitorFactory.addException(Monitor mon,
Throwable throwable)
Add 2 exception monitors.
|
Monitor |
FactoryEnabled.addException(Monitor mon,
Throwable throwable)
Note this creates 2 exception monitors and the more specific one is returned
|
Monitor |
FactoryDisabled.addException(Monitor mon,
Throwable throwable) |
Object[] |
JAMonBufferListener.HeaderInfo.getData(List dataList,
Monitor mon)
Pass in list and add monitor data to the end of it
|
Object[] |
JAMonBufferListener.HeaderInfo.getData(Monitor mon)
Return an array with spaces for the values in header and values populated for monitor data - last value, active and last access
|
void |
JAMonListener.processEvent(Monitor mon)
Called and the current monitor is past in.
|
void |
JAMonBufferListener.processEvent(Monitor mon)
When this event is fired the monitor will be added to the rolling buffer
|
void |
JAMonArrayBufferListener.processEvent(Monitor mon)
When this event is fired the monitor will be added to the rolling buffer.
|
void |
CompositeListener.processEvent(Monitor mon)
Notify all listeners that are part of this composite of a jamon event and pass them the
monitor that triggered the event.
|
Constructor and Description |
---|
MonitorComposite(Monitor[] monitors)
Creates a new instance of MonitorComposite
|
Modifier and Type | Method and Description |
---|---|
void |
Log4jBufferListener.processEvent(Monitor mon)
When this event is fired the monitor will be added to the rolling buffer.
|
protected Object[] |
Log4jBufferListener.toArray(org.apache.log4j.spi.LoggingEvent event,
Monitor mon)
method that returns an array to use in the Buffer.
|
Copyright © 2015. All rights reserved.