public class MonitorComposite extends Monitor implements DetailData
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE |
static java.lang.String |
AVG |
static java.lang.String |
AVGACTIVE |
static java.lang.String |
FIRSTACCESS |
static java.lang.String |
HITS |
static java.lang.String |
LASTACCESS |
static java.lang.String |
LASTVALUE |
static java.lang.String |
MAX |
static java.lang.String |
MAXACTIVE |
static java.lang.String |
MIN |
static java.lang.String |
STDDEV |
static java.lang.String |
TOTAL |
static java.lang.String |
VALUE
Used in call to addListener(...).
|
Constructor and Description |
---|
MonitorComposite(Monitor[] monitors)
Creates a new instance of MonitorComposite
|
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
addListener, getAvgGlobalActive, getAvgPrimaryActive, getLabel, getListenerType, getUnits, getValue, hasListener, hasListeners, isActivityTracking, removeListener, setAccessStats, skip, toString
public static final java.lang.String VALUE
public static final java.lang.String LASTVALUE
public static final java.lang.String MAX
public static final java.lang.String MIN
public static final java.lang.String MAXACTIVE
public static final java.lang.String TOTAL
public static final java.lang.String AVG
public static final java.lang.String HITS
public static final java.lang.String STDDEV
public static final java.lang.String FIRSTACCESS
public static final java.lang.String LASTACCESS
public static final java.lang.String ACTIVE
public static final java.lang.String AVGACTIVE
public MonitorComposite(Monitor[] monitors)
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()
public void disable()
public void enable()
public double getAvgActive()
getAvgActive
in class Monitor
public java.util.Date getFirstAccess()
getFirstAccess
in class Monitor
public MonKey getMonKey()
public java.util.Date getLastAccess()
getLastAccess
in class Monitor
public double getLastValue()
getLastValue
in class Monitor
public double getMaxActive()
getMaxActive
in class Monitor
public Range getRange()
public double getStdDev()
public boolean isEnabled()
public boolean isPrimary()
public void setFirstAccess(java.util.Date date)
setFirstAccess
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 setMaxActive(double value)
setMaxActive
in class Monitor
public void setPrimary(boolean isPrimary)
setPrimary
in class Monitor
public void setTotalActive(double value)
Monitor
setTotalActive
in class Monitor
public Monitor start()
public Monitor stop()
public Monitor add(double value)
public boolean hasListeners()
hasListeners
in class Monitor
public JAMonDetailValue getJAMonDetailRow()
getJAMonDetailRow
in class Monitor
public void setActivityTracking(boolean trackActivity)
Monitor
setActivityTracking
in class Monitor