|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.external.statistics.impl.StatisticImpl
public abstract class StatisticImpl
| Field Summary | |
|---|---|
static String |
LAST_SAMPLE_TIME
|
protected static String |
NEWLINE
|
protected long |
sampleTime
|
static String |
START_TIME
|
protected Map<String,Object> |
statMap
|
static String |
UNIT_COUNT
|
static String |
UNIT_MICROSECOND
|
static String |
UNIT_MILLISECOND
|
static String |
UNIT_NANOSECOND
|
static String |
UNIT_SECOND
|
| Constructor Summary | |
|---|---|
protected |
StatisticImpl(String name,
String unit,
String desc)
|
protected |
StatisticImpl(String name,
String unit,
String desc,
long start_time,
long sample_time)
|
| Method Summary | |
|---|---|
protected void |
checkMethod(Method method)
|
String |
getDescription()
A human-readable description of the Statistic. |
long |
getLastSampleTime()
The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00. |
String |
getName()
The name of this Statistic. |
long |
getStartTime()
The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00. |
Map |
getStaticAsMap()
|
String |
getUnit()
The unit of measurement for this Statistic. |
protected static boolean |
isValidString(String str)
|
void |
reset()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long sampleTime
public static final String UNIT_COUNT
public static final String UNIT_SECOND
public static final String UNIT_MILLISECOND
public static final String UNIT_MICROSECOND
public static final String UNIT_NANOSECOND
public static final String START_TIME
public static final String LAST_SAMPLE_TIME
protected final Map<String,Object> statMap
protected static final String NEWLINE
| Constructor Detail |
|---|
protected StatisticImpl(String name,
String unit,
String desc,
long start_time,
long sample_time)
protected StatisticImpl(String name,
String unit,
String desc)
| Method Detail |
|---|
public Map getStaticAsMap()
public String getName()
Statistic
getName in interface Statisticpublic String getDescription()
Statistic
getDescription in interface Statisticpublic String getUnit()
Statistic
getUnit in interface Statisticpublic long getLastSampleTime()
Statistic
getLastSampleTime in interface Statisticpublic long getStartTime()
Statistic
getStartTime in interface Statisticpublic void reset()
public String toString()
toString in class Objectprotected static boolean isValidString(String str)
protected void checkMethod(Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||