|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 MapStatistic
public final int getint(String name)
getint
in interface MapStatistic
public final String getString(String name)
getString
in interface MapStatistic
public final Object getValue(String name)
getValue
in interface MapStatistic
public String getDescription()
getDescription
in interface Statistic
public long getLastSampleTime()
getLastSampleTime
in interface Statistic
public String getName()
getName
in interface Statistic
public String setName(String newName)
setName
in interface MapStatistic
public long getStartTime()
getStartTime
in interface Statistic
public String getUnit()
getUnit
in interface Statistic
public Set valueNames()
valueNames
in interface MapStatistic
public Map<String,Object> asMap()
asMap
in interface MapStatistic
public String toString()
toString
in interface MapStatistic
toString
in class Object
public int hashCode()
hashCode
in class Object
public 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.