Java EE 5 SDK

com.sun.appserv.management.j2ee.statistics
Interface MapStatistic

All Superinterfaces:
Statistic
All Known Implementing Classes:
CompositeDataStatistic, MapStatisticImpl

public interface MapStatistic
extends Statistic

A Statistic which contains its members in a Map.


Method Summary
 Map<String,Object> asMap()
           
 int getint(String name)
          Get a Statistic value which is expected to be an Integer (int)
 long getlong(String name)
          Get a Statistic value which is expected to be a Long (long)
 String getString(String name)
          Get a Statistic value which is expected to be a String
 Object getValue(String name)
          Get a Statistic value which is expected to be any Object
 String setName(String newName)
          Set the name of this Statistic
 String toString()
           
 Set valueNames()
          Get the values associated with this statistic.
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Method Detail

getlong

long getlong(String name)
Get a Statistic value which is expected to be a Long (long)


getint

int getint(String name)
Get a Statistic value which is expected to be an Integer (int)


getString

String getString(String name)
Get a Statistic value which is expected to be a String


getValue

Object getValue(String name)
Get a Statistic value which is expected to be any Object


setName

String setName(String newName)
Set the name of this Statistic


valueNames

Set valueNames()
Get the values associated with this statistic. Note the name--"get" is avoided so it won't be introspected as another Statistic field.

Returns:
an unmodifiableSet of the field names (String)

asMap

Map<String,Object> asMap()

toString

String toString()
Overrides:
toString in class Object

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.