|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jamonapi.Monitor
com.jamonapi.MonitorComposite
public class MonitorComposite
| Field Summary |
|---|
| Fields inherited from class com.jamonapi.Monitor |
|---|
MAX, MAXACTIVE, MIN, VALUE |
| Constructor Summary | |
|---|---|
MonitorComposite(Monitor[] monitors)
Creates a new instance of MonitorComposite |
|
| Method Summary | |
|---|---|
Monitor |
add(double value)
This method adds a value to the monitor (and aggegates statistics on it) |
void |
disable()
Disable the monitor. |
void |
enable()
enable the monitor. |
double |
getActive()
|
double |
getAvg()
|
double |
getAvgActive()
This returns a weighted average |
java.lang.Object[][] |
getBasicData()
Get basic data (which excludes range data) |
java.lang.String[] |
getBasicHeader()
Return the header that applies to all monitors. |
java.lang.Object[][] |
getData()
Get all data including basic data as well as each element within the range |
java.lang.Object[][] |
getDisplayData()
Get display data including 1 column for each range |
java.lang.String[] |
getDisplayHeader()
Return the header with basic data and one column for each range. |
java.util.Date |
getFirstAccess()
|
java.lang.String[] |
getHeader()
Return the header with basic data and columns for each field within the range. note getHeader only works if the range of all monitors in the composite are the same. |
double |
getHits()
|
JAMonDetailValue |
getJAMonDetailRow()
|
java.util.Date |
getLastAccess()
|
double |
getLastValue()
|
double |
getMax()
|
double |
getMaxActive()
|
double |
getMin()
|
Monitor[] |
getMonitors()
|
static MonitorComposite |
getMonitors(java.lang.String[][] labels)
Pass in an array with col1=lables, and col2=units and then call methods |
MonKey |
getMonKey()
Return the label associated with this monitor. |
int |
getNumRows()
|
Range |
getRange()
Return the Range object associated with this monitor. |
java.lang.String |
getReport()
A basic report in html format. |
java.lang.String |
getReport(int sortCol,
java.lang.String sortOrder)
A basic report in html format that is sorted. |
double |
getStdDev()
This is not a true standard deviation but a average weighted std deviation. |
double |
getTotal()
|
boolean |
hasData()
Does this have data? |
boolean |
hasListeners()
|
boolean |
isActivityTracking()
|
boolean |
isEnabled()
It just takes one of the monitors to not be enabled for the composite to be false |
boolean |
isPrimary()
It just takes one of the monitors to not be primary for the composite to be false |
void |
reset()
reset all values in the monitor to their defaults |
void |
setActive(double value)
|
void |
setActivityTracking(boolean trackActivity)
FROM frequencydistimp |
void |
setFirstAccess(java.util.Date date)
|
void |
setHits(double value)
|
void |
setLastAccess(java.util.Date date)
|
void |
setLastValue(double value)
|
void |
setMax(double value)
|
void |
setMaxActive(double value)
|
void |
setMin(double value)
|
void |
setPrimary(boolean isPrimary)
Indicate that this a primary Monitor. |
void |
setTotal(double value)
|
void |
setTotalActive(double value)
Neeed to reset this to 0.0 to remove avg active numbers |
Monitor |
start()
Start a monitor. |
Monitor |
stop()
Stop a monitor. |
| Methods inherited from class com.jamonapi.Monitor |
|---|
getAvgGlobalActive, getAvgPrimaryActive, getLabel, getListenerType, getUnits, setAccessStats, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MonitorComposite(Monitor[] monitors)
| Method Detail |
|---|
public Monitor[] getMonitors()
public static MonitorComposite getMonitors(java.lang.String[][] labels)
public int getNumRows()
public java.lang.String[] getBasicHeader()
public java.lang.String[] getHeader()
getHeader in interface DetailDatapublic java.lang.String[] getDisplayHeader()
public java.lang.Object[][] getData()
getData in interface DetailDatapublic java.lang.Object[][] getBasicData()
public java.lang.Object[][] getDisplayData()
public java.lang.String getReport()
public java.lang.String getReport(int sortCol,
java.lang.String sortOrder)
public boolean hasData()
public void reset()
reset in class Monitorpublic void disable()
disable in class Monitorpublic void enable()
enable in class Monitorpublic double getActive()
getActive in class Monitorpublic double getAvg()
getAvg in class Monitorpublic double getAvgActive()
getAvgActive in class Monitorpublic java.util.Date getFirstAccess()
getFirstAccess in class Monitorpublic double getHits()
getHits in class Monitorpublic MonKey getMonKey()
getMonKey in class Monitorpublic java.util.Date getLastAccess()
getLastAccess in class Monitorpublic double getLastValue()
getLastValue in class Monitorpublic double getMax()
getMax in class Monitorpublic double getMaxActive()
getMaxActive in class Monitorpublic double getMin()
getMin in class Monitorpublic Range getRange()
getRange in class Monitorpublic double getStdDev()
getStdDev in class Monitorpublic double getTotal()
getTotal in class Monitorpublic boolean isEnabled()
isEnabled in class Monitorpublic boolean isPrimary()
isPrimary in class Monitorpublic void setActive(double value)
setActive in class Monitorpublic void setFirstAccess(java.util.Date date)
setFirstAccess in class Monitorpublic void setHits(double value)
setHits in class Monitorpublic void setLastAccess(java.util.Date date)
setLastAccess in class Monitorpublic void setLastValue(double value)
setLastValue in class Monitorpublic void setMax(double value)
setMax in class Monitorpublic void setMaxActive(double value)
setMaxActive in class Monitorpublic void setMin(double value)
setMin in class Monitorpublic void setPrimary(boolean isPrimary)
setPrimary in class Monitorpublic void setTotal(double value)
setTotal in class Monitorpublic void setTotalActive(double value)
Monitor
setTotalActive in class Monitorpublic Monitor start()
start in class Monitorpublic Monitor stop()
stop in class Monitorpublic Monitor add(double value)
add in class Monitorpublic boolean hasListeners()
hasListeners in class Monitorpublic JAMonDetailValue getJAMonDetailRow()
getJAMonDetailRow in class Monitorpublic void setActivityTracking(boolean trackActivity)
Monitor
setActivityTracking in class Monitorpublic boolean isActivityTracking()
isActivityTracking in class Monitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||