|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.Sample
org.javasimon.CounterSample
org.javasimon.jmx.CounterSample
public final class CounterSample
Value object for retrieving data from Counter Simon. Basically, it's
CounterSample with added JMX capabilities to be return as object via
MXBean method.
SimonManagerMXBean simon = JMX.newMXBeanProxy(..., new ObjectName("domain:type=Simon"), SimonManagerMXBean.class);
CounterSample = simon.getCounterSample("simon.counter");
| Constructor Summary | |
|---|---|
CounterSample(CounterSample sample)
Internall, framework constructor for Simon MBean implementation to initialize all properties by sample obtained from Simon. |
|
CounterSample(String name,
String note,
long firstUsage,
long lastUsage,
long lastReset,
long counter,
long min,
long max,
long minTimestamp,
long maxTimestamp,
long incSum,
long decSum)
JMX constructor. |
|
| Method Summary | |
|---|---|
Date |
getFirstUsageAsDate()
Timestamp of the first usage from the sampled Simon as a formatted date. |
String |
getFirstUsageAsString()
Timestamp of the first usage from the sampled Simon as a formatted string. |
Date |
getLastResetAsDate()
Timestamp of the last reset from the sampled Simon as a formatted date. |
String |
getLastResetAsString()
Timestamp of the last reset from the sampled Simon as a formatted string. |
Date |
getLastUsageAsDate()
Timestamp of the last usage from the sampled Simon as a date. |
String |
getLastUsageAsString()
Timestamp of the last usage from the sampled Simon as a formatted string. |
Date |
getMaxTimestampAsDate()
Returns ms timestamp when the max value was measured as a formatted date. |
String |
getMaxTimestampAsString()
Returns ms timestamp when the max value was measured as a formatted string. |
Date |
getMinTimestampAsDate()
Returns ms timestamp when the min value was measured as a formatted date. |
String |
getMinTimestampAsString()
Returns ms timestamp when the min value was measured as a formatted string. |
| Methods inherited from class org.javasimon.CounterSample |
|---|
counterToString, getCounter, getDecrementSum, getIncrementSum, getMax, getMaxTimestamp, getMin, getMinTimestamp, getTotalAsString, setCounter, setDecrementSum, setIncrementSum, setMax, setMaxTimestamp, setMin, setMinTimestamp, toString |
| Methods inherited from class org.javasimon.Sample |
|---|
getFirstUsage, getLastReset, getLastUsage, getName, getNote, setFirstUsage, setLastReset, setLastUsage, setName, setNote, simonToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@ConstructorProperties(value={"name","note","firstUsage","lastUsage","lastReset","counter","min","max","minTimestamp","maxTimestamp","incrementSum","decrementSum"})
public CounterSample(String name,
String note,
long firstUsage,
long lastUsage,
long lastReset,
long counter,
long min,
long max,
long minTimestamp,
long maxTimestamp,
long incSum,
long decSum)
name - Simon's namenote - note (provided optionally)firstUsage - first usage ms timestamplastUsage - last usage ms timestamplastReset - last reset ms timestampcounter - actual counter valuemin - minimal counter valuemax - maximal counter valueminTimestamp - time when counter reached minimal valuemaxTimestamp - time when counter reached maximal valueincSum - sum of all incrementsdecSum - sum of all decrementsCounterSample(CounterSample sample)
sample - sample object obtained from Counter Simon| Method Detail |
|---|
public String getFirstUsageAsString()
public Date getFirstUsageAsDate()
public String getLastUsageAsString()
public Date getLastUsageAsDate()
public String getLastResetAsString()
public Date getLastResetAsDate()
public final String getMinTimestampAsString()
public final Date getMinTimestampAsDate()
public final String getMaxTimestampAsString()
public final Date getMaxTimestampAsDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||