|
J2EE1.4 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
Generic implementation of Statistic which contains its members in a Map.
Constructor Summary | |
MapStatisticImpl(java.util.Map map)
|
|
MapStatisticImpl(Statistic statistic)
|
Method Summary | |
java.util.Map |
asMap()
|
boolean |
equals(java.lang.Object rhs)
|
java.lang.String |
getDescription()
Get the description for this Statistic |
int |
getint(java.lang.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(java.lang.String name)
Get a Statistic value which is expected to be a Long (long) |
java.lang.String |
getName()
Get the name of this Statistic |
long |
getStartTime()
Get the start time for this Statistic |
java.lang.String |
getString(java.lang.String name)
Get a Statistic value which is expected to be a String |
java.lang.String |
getUnit()
Get the units associated with this statistic. |
java.lang.Object |
getValue(java.lang.String name)
Get a Statistic value which is expected to be any Object |
java.lang.String |
setName(java.lang.String newName)
Get the name of this Statistic |
java.lang.String |
toString()
|
java.util.Set |
valueNames()
Get the fields associated with this statistic. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MapStatisticImpl(java.util.Map map)
public MapStatisticImpl(Statistic statistic)
Method Detail |
public final long getlong(java.lang.String name)
getlong
in interface MapStatistic
public final int getint(java.lang.String name)
getint
in interface MapStatistic
public final java.lang.String getString(java.lang.String name)
getString
in interface MapStatistic
public final java.lang.Object getValue(java.lang.String name)
getValue
in interface MapStatistic
public java.lang.String getDescription()
getDescription
in interface Statistic
public long getLastSampleTime()
getLastSampleTime
in interface Statistic
public java.lang.String getName()
getName
in interface Statistic
public java.lang.String setName(java.lang.String newName)
setName
in interface MapStatistic
public long getStartTime()
getStartTime
in interface Statistic
public java.lang.String getUnit()
getUnit
in interface Statistic
public java.util.Set valueNames()
valueNames
in interface MapStatistic
public java.util.Map asMap()
asMap
in interface MapStatistic
public java.lang.String toString()
toString
in interface MapStatistic
public boolean equals(java.lang.Object rhs)
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.