Class StringStatisticImpl
- java.lang.Object
-
- com.sun.enterprise.admin.monitor.stats.StatisticImpl
-
- com.sun.enterprise.admin.monitor.stats.StringStatisticImpl
-
- All Implemented Interfaces:
StringStatistic
,Serializable
,Statistic
public final class StringStatisticImpl extends StatisticImpl implements StringStatistic
A basic implementation of the StringStatistic Interface. All the instances of this class are immutable.- Since:
- S1AS8.0
- Version:
- 1.0
- Author:
- Muralidhar Vempaty, Kedar Mhaswade
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.monitor.stats.StatisticImpl
DEFAULT_UNIT, DEFAULT_VALUE, localStrMgr, NEWLINE
-
-
Constructor Summary
Constructors Constructor Description StringStatisticImpl(String str, String name, String unit, String desc, long startTime, long sampleTime)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCurrent()
Returns the String value of the statistic.String
toString()
-
Methods inherited from class com.sun.enterprise.admin.monitor.stats.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
-
-
-
Constructor Detail
-
StringStatisticImpl
public StringStatisticImpl(String str, String name, String unit, String desc, long startTime, long sampleTime)
Constructor- Parameters:
str
- The current value of this statisticname
- 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
-
getCurrent
public String getCurrent()
Returns the String value of the statistic.- Specified by:
getCurrent
in interfaceStringStatistic
-
toString
public String toString()
- Overrides:
toString
in classStatisticImpl
-
-