|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.monitor.stats.StatisticImpl
public abstract class StatisticImpl
An abstract class providing implementation of the Statistic interface The intent is for this to be subclassed by all the StatisticImpls.
| Field Summary | |
|---|---|
static String |
DEFAULT_UNIT
DEFAULT_UNIT is an empty string |
static long |
DEFAULT_VALUE
DEFAULT_VALUE of any statistic is 0 |
static StringManager |
localStrMgr
|
protected static String |
NEWLINE
|
| Constructor Summary | |
|---|---|
protected |
StatisticImpl(String name,
String unit,
String desc,
long start_time,
long sample_time)
Constructor |
| Method Summary | |
|---|---|
String |
getDescription()
returns the description of the statistic |
long |
getLastSampleTime()
returns the time in millis, at which the last measurement was taken |
String |
getName()
returns the name of the statistic |
long |
getStartTime()
returns the time in millis, at which the first measurement was taken |
String |
getUnit()
returns the unit of measurement for the statistic |
void |
setDescription(String desc)
This is a hack. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_UNIT
public static final StringManager localStrMgr
public static final long DEFAULT_VALUE
protected static final String NEWLINE
| Constructor Detail |
|---|
protected StatisticImpl(String name,
String unit,
String desc,
long start_time,
long sample_time)
name - The name of the statisticunit - The unit of measurement for this statisticdesc - A brief description of the statisticstartTime - Time in milliseconds at which the measurement was startedsampleTime - Time at which the last measurement was done.| Method Detail |
|---|
public String getName()
getName in interface Statisticpublic String getDescription()
getDescription in interface Statisticpublic String getUnit()
getUnit in interface Statisticpublic long getLastSampleTime()
getLastSampleTime in interface Statisticpublic long getStartTime()
getStartTime in interface Statisticpublic void setDescription(String desc)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||