FileDocCategorySizeDatePackage
StringStatisticImpl.javaAPI DocGlassfish v2 API3506Fri May 04 22:25:48 BST 2007com.sun.enterprise.admin.monitor.stats

StringStatisticImpl

public final class StringStatisticImpl extends StatisticImpl implements StringStatistic
A basic implementation of the StringStatistic Interface. All the instances of this class are immutable.
author
Muralidhar Vempaty
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
private final String
strVal
Constructors Summary
public StringStatisticImpl(String str, String name, String unit, String desc, long startTime, long sampleTime)
Constructor

param
str The current value of this statistic
param
name The name of the statistic
param
unit The unit of measurement for this statistic
param
desc A brief description of the statistic
param
startTime Time in milliseconds at which the measurement was started
param
sampleTime Time at which the last measurement was done.

        
        super(name, unit, desc, startTime, sampleTime);
        strVal = str;
    
Methods Summary
public java.lang.StringgetCurrent()
Returns the String value of the statistic.

        return strVal;
    
public java.lang.StringtoString()

        return super.toString() + NEWLINE + 
            "Current: " + getCurrent();