|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jamonapi.Monitor
public abstract class Monitor
Field Summary | |
---|---|
static java.lang.String |
MAX
|
static java.lang.String |
MAXACTIVE
|
static java.lang.String |
MIN
|
static java.lang.String |
VALUE
Used in call to addListener(...). |
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()
|
double |
getAvgGlobalActive()
|
double |
getAvgPrimaryActive()
|
java.util.Date |
getFirstAccess()
|
double |
getHits()
|
JAMonDetailValue |
getJAMonDetailRow()
|
java.lang.String |
getLabel()
Returns the label for the monitor |
java.util.Date |
getLastAccess()
|
double |
getLastValue()
|
ListenerType |
getListenerType(java.lang.String listenerType)
Add a listener that receives notification every time this monitors add method is called. |
double |
getMax()
|
double |
getMaxActive()
|
double |
getMin()
|
MonKey |
getMonKey()
Return the label associated with this monitor. |
Range |
getRange()
Return the Range object associated with this monitor. |
double |
getStdDev()
|
double |
getTotal()
|
java.lang.String |
getUnits()
Returns the units for the monitor |
boolean |
hasListeners()
|
boolean |
isActivityTracking()
|
boolean |
isEnabled()
Is the monitor enabled. |
boolean |
isPrimary()
|
void |
reset()
reset all values in the monitor to their defaults |
void |
setAccessStats(long now)
|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VALUE
public static final java.lang.String MAX
public static final java.lang.String MIN
public static final java.lang.String MAXACTIVE
Method Detail |
---|
public MonKey getMonKey()
public java.lang.String getLabel()
public java.lang.String getUnits()
public void setAccessStats(long now)
public void reset()
public double getTotal()
public void setTotal(double value)
public double getAvg()
public double getMin()
public void setMin(double value)
public double getMax()
public void setMax(double value)
public double getHits()
public void setHits(double value)
public double getStdDev()
public void setFirstAccess(java.util.Date date)
public java.util.Date getFirstAccess()
public void setLastAccess(java.util.Date date)
public java.util.Date getLastAccess()
public double getLastValue()
public void setLastValue(double value)
public void disable()
public void enable()
public boolean isEnabled()
public ListenerType getListenerType(java.lang.String listenerType)
public Monitor start()
public Monitor stop()
public Monitor add(double value)
public Range getRange()
public double getActive()
public void setActive(double value)
public double getMaxActive()
public void setMaxActive(double value)
public void setTotalActive(double value)
public boolean isPrimary()
public void setPrimary(boolean isPrimary)
public boolean hasListeners()
public java.lang.String toString()
toString
in class java.lang.Object
public void setActivityTracking(boolean trackActivity)
public boolean isActivityTracking()
public double getAvgActive()
public double getAvgGlobalActive()
public double getAvgPrimaryActive()
public JAMonDetailValue getJAMonDetailRow()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |