FileDocCategorySizeDatePackage
SystemInfoData.javaAPI DocGlassfish v2 API3337Fri May 04 22:25:52 BST 2007com.sun.enterprise.management.support

SystemInfoData

public final class SystemInfoData extends Object
See also com.sun.enterprise.management.support.SystemInfoImpl
see
com.sun.appserv.management.base.SystemInfo
see
com.sun.enterprise.management.support.SystemInfoImpl

Fields Summary
private static final SystemInfoData
INSTANCE
private final Map
mPerformanceMillis
private final Map
mUnmodifiablePerformanceMillis
Constructors Summary
private SystemInfoData()

    
      
        mPerformanceMillis  = Collections.synchronizedMap( new HashMap<String,Long>() );
        mUnmodifiablePerformanceMillis  = Collections.unmodifiableMap( mPerformanceMillis );
    
Methods Summary
public synchronized voidaddPerformanceMillis(java.lang.String name, long millis)
Add a performance metric.

        if ( mPerformanceMillis.containsKey( name ) ) {
            throw new IllegalStateException();
        }
        mPerformanceMillis.put( name, millis );
    
public static com.sun.enterprise.management.support.SystemInfoDatagetInstance()

        return INSTANCE;
    
public java.util.MapgetPerformanceMillis()

return
unmodifiable Map of performance data

        return mUnmodifiablePerformanceMillis;