|
|||||||||
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. |
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 DetailData
public java.lang.String[] getDisplayHeader()
public java.lang.Object[][] getData()
getData
in interface DetailData
public 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 Monitor
public void disable()
disable
in class Monitor
public void enable()
enable
in class Monitor
public double getActive()
getActive
in class Monitor
public double getAvg()
getAvg
in class Monitor
public double getAvgActive()
getAvgActive
in class Monitor
public java.util.Date getFirstAccess()
getFirstAccess
in class Monitor
public double getHits()
getHits
in class Monitor
public MonKey getMonKey()
getMonKey
in class Monitor
public java.util.Date getLastAccess()
getLastAccess
in class Monitor
public double getLastValue()
getLastValue
in class Monitor
public double getMax()
getMax
in class Monitor
public double getMaxActive()
getMaxActive
in class Monitor
public double getMin()
getMin
in class Monitor
public Range getRange()
getRange
in class Monitor
public double getStdDev()
getStdDev
in class Monitor
public double getTotal()
getTotal
in class Monitor
public boolean isEnabled()
isEnabled
in class Monitor
public boolean isPrimary()
isPrimary
in class Monitor
public void setActive(double value)
setActive
in class Monitor
public void setFirstAccess(java.util.Date date)
setFirstAccess
in class Monitor
public void setHits(double value)
setHits
in class Monitor
public void setLastAccess(java.util.Date date)
setLastAccess
in class Monitor
public void setLastValue(double value)
setLastValue
in class Monitor
public void setMax(double value)
setMax
in class Monitor
public void setMaxActive(double value)
setMaxActive
in class Monitor
public void setMin(double value)
setMin
in class Monitor
public void setPrimary(boolean isPrimary)
setPrimary
in class Monitor
public void setTotal(double value)
setTotal
in class Monitor
public void setTotalActive(double value)
Monitor
setTotalActive
in class Monitor
public Monitor start()
start
in class Monitor
public Monitor stop()
stop
in class Monitor
public Monitor add(double value)
add
in class Monitor
public boolean hasListeners()
hasListeners
in class Monitor
public JAMonDetailValue getJAMonDetailRow()
getJAMonDetailRow
in class Monitor
public void setActivityTracking(boolean trackActivity)
Monitor
setActivityTracking
in class Monitor
public boolean isActivityTracking()
isActivityTracking
in class Monitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |