|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jamonapi.FactoryEnabled
public class FactoryEnabled
Factory that creates Monitors. This can be created directly. MonitorFactory is simply a wrapper that makes calling this class simpler. MonitorFactory contains a static reference to a FactoryEnabled class.
| Constructor Summary | |
|---|---|
FactoryEnabled()
Creates a new instance of MonFactoryEnabled. |
|
| Method Summary | |
|---|---|
Monitor |
add(MonKey key,
double value)
Used when you want to create your own key for the monitor. |
Monitor |
add(java.lang.String label,
java.lang.String units,
double value)
Return a monitor with the given label and units. |
void |
enableGlobalActive(boolean enable)
|
boolean |
exists(MonKey key)
Return true if the monitor associated with the passed in key exists |
boolean |
exists(java.lang.String label,
java.lang.String units)
Return true if the monitor associated with the passed in label and units exists |
MonitorComposite |
getComposite(java.lang.String units)
Pass in the units (or range type) and return all monitors of that type. |
Monitor |
getMonitor()
Returns a non-TimeMonitor that won't update the jamon factory. |
Monitor |
getMonitor(MonKey key)
Get the monitor associated with the passed in key. |
Monitor |
getMonitor(java.lang.String label,
java.lang.String units)
Get the monitor with the passed in label, and units. |
int |
getNumRows()
Get the number of monitors in this factory |
java.lang.String[] |
getRangeHeader()
Return the header associated with range names |
java.lang.Object[][] |
getRangeNames()
Retun an array of range names. |
MonitorComposite |
getRootMonitor()
getComposite("AllMonitors") is the same as getRootMonitor() |
Monitor |
getTimeMonitor(MonKey key)
Get the time monitor associated with the passed in key. |
Monitor |
getTimeMonitor(java.lang.String label)
Get the time monitor associated with the passed in label. |
java.lang.String |
getVersion()
Get JAMon's version. |
boolean |
isGlobalActiveEnabled()
|
java.util.Iterator |
iterator()
|
void |
remove(MonKey key)
Remove the monitor associated with the passed in key |
void |
remove(java.lang.String label,
java.lang.String units)
Remove the monitor associated with the passed in label and units |
void |
reset()
Wipe out existing jamon data. |
void |
setMap(java.util.Map map)
allows for using a faster/open source map |
void |
setRangeDefault(java.lang.String key,
RangeHolder rangeHolder)
Note if a null is passed in it will have the same effect as an empty RangeHolder (i.e. it will perform null operations) |
Monitor |
start()
Returns a TimeMonitor that won't update the jamon factory. |
Monitor |
start(MonKey key)
Start using the passed in key. |
Monitor |
start(java.lang.String label)
Return a time monitor (the units are implied and are ms. |
Monitor |
startPrimary(MonKey key)
Start a monitor with the specified key and mark it as primary |
Monitor |
startPrimary(java.lang.String label)
Start a time monitor and mark it as primary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryEnabled()
| Method Detail |
|---|
public Monitor add(MonKey key,
double value)
MonitorFactoryInterface
add in interface MonitorFactoryInterface
public Monitor add(java.lang.String label,
java.lang.String units,
double value)
MonitorFactoryInterface
add in interface MonitorFactoryInterfacepublic Monitor start(MonKey key)
MonitorFactoryInterface
start in interface MonitorFactoryInterfacepublic Monitor start(java.lang.String label)
MonitorFactoryInterface
start in interface MonitorFactoryInterfacepublic Monitor startPrimary(MonKey key)
MonitorFactoryInterface
startPrimary in interface MonitorFactoryInterfacepublic Monitor startPrimary(java.lang.String label)
MonitorFactoryInterface
startPrimary in interface MonitorFactoryInterfacepublic Monitor start()
MonitorFactoryInterface
start in interface MonitorFactoryInterfacepublic Monitor getMonitor()
MonitorFactoryInterface
getMonitor in interface MonitorFactoryInterfacepublic void setMap(java.util.Map map)
setMap in interface MonitorFactoryInterfacepublic Monitor getMonitor(MonKey key)
MonitorFactoryInterface
getMonitor in interface MonitorFactoryInterface
public Monitor getMonitor(java.lang.String label,
java.lang.String units)
MonitorFactoryInterface
getMonitor in interface MonitorFactoryInterfacepublic Monitor getTimeMonitor(MonKey key)
MonitorFactoryInterface
getTimeMonitor in interface MonitorFactoryInterfacepublic Monitor getTimeMonitor(java.lang.String label)
MonitorFactoryInterface
getTimeMonitor in interface MonitorFactoryInterface
public void setRangeDefault(java.lang.String key,
RangeHolder rangeHolder)
setRangeDefault in interface MonitorFactoryInterfacepublic java.lang.String[] getRangeHeader()
MonitorFactoryInterface
getRangeHeader in interface MonitorFactoryInterfacepublic java.lang.Object[][] getRangeNames()
MonitorFactoryInterface
getRangeNames in interface MonitorFactoryInterfacepublic void remove(MonKey key)
MonitorFactoryInterface
remove in interface MonitorFactoryInterface
public void remove(java.lang.String label,
java.lang.String units)
MonitorFactoryInterface
remove in interface MonitorFactoryInterfacepublic boolean exists(MonKey key)
MonitorFactoryInterface
exists in interface MonitorFactoryInterface
public boolean exists(java.lang.String label,
java.lang.String units)
MonitorFactoryInterface
exists in interface MonitorFactoryInterfacepublic int getNumRows()
MonitorFactoryInterface
getNumRows in interface MonitorFactoryInterfacepublic MonitorComposite getRootMonitor()
getRootMonitor in interface MonitorFactoryInterfacepublic MonitorComposite getComposite(java.lang.String units)
getComposite in interface MonitorFactoryInterfacepublic java.lang.String getVersion()
MonitorFactoryInterface
getVersion in interface MonitorFactoryInterfacepublic void reset()
reset in interface MonitorFactoryInterfacepublic void enableGlobalActive(boolean enable)
enableGlobalActive in interface MonitorFactoryInterfacepublic boolean isGlobalActiveEnabled()
isGlobalActiveEnabled in interface MonitorFactoryInterfacepublic java.util.Iterator iterator()
iterator in interface MonitorFactoryInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||