|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.j2ee.statistics.MapStatisticImpl
public class MapStatisticImpl
Generic implementation of Statistic which contains its members in a Map.
| Constructor Summary | |
|---|---|
MapStatisticImpl(Map<String,?> map)
|
|
MapStatisticImpl(Statistic statistic)
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
asMap()
|
boolean |
equals(Object rhs)
|
String |
getDescription()
Get the description for this Statistic |
int |
getint(String name)
Get a Statistic value which is expected to be an Integer (int) |
long |
getLastSampleTime()
Get the last sample time for this Statistic |
long |
getlong(String name)
Get a Statistic value which is expected to be a Long (long) |
String |
getName()
Get the name of this Statistic |
long |
getStartTime()
Get the start time for this Statistic |
String |
getString(String name)
Get a Statistic value which is expected to be a String |
String |
getUnit()
Get the units associated with this statistic. |
Object |
getValue(String name)
Get a Statistic value which is expected to be any Object |
int |
hashCode()
|
String |
setName(String newName)
Get the name of this Statistic |
String |
toString()
|
Set |
valueNames()
Get the fields associated with this statistic. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapStatisticImpl(Map<String,?> map)
public MapStatisticImpl(Statistic statistic)
| Method Detail |
|---|
public final long getlong(String name)
getlong in interface MapStatisticpublic final int getint(String name)
getint in interface MapStatisticpublic final String getString(String name)
getString in interface MapStatisticpublic final Object getValue(String name)
getValue in interface MapStatisticpublic String getDescription()
getDescription in interface Statisticpublic long getLastSampleTime()
getLastSampleTime in interface Statisticpublic String getName()
getName in interface Statisticpublic String setName(String newName)
setName in interface MapStatisticpublic long getStartTime()
getStartTime in interface Statisticpublic String getUnit()
getUnit in interface Statisticpublic Set valueNames()
valueNames in interface MapStatisticpublic Map<String,Object> asMap()
asMap in interface MapStatisticpublic String toString()
toString in interface MapStatistictoString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object rhs)
equals in class Object
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.