FileDocCategorySizeDatePackage
kstat.javaAPI DocGlassfish v2 API4871Fri May 04 22:25:02 BST 2007com.sun.enterprise.jmx.kstat

kstat

public final class kstat extends Object

Fields Summary
final String
mModuleName
final int
mInstanceNumber
final String
mkstatName
final HashMap
mAttributes
Constructors Summary
public kstat(String moduleName, int instanceNumber, String kstatName)

		mModuleName		= moduleName;
		mkstatName		= kstatName;
		mInstanceNumber	= instanceNumber;
		mAttributes		= new HashMap();
	
Methods Summary
public voidaddAttribute(com.sun.enterprise.jmx.kstat.kstat$kstatAttribute attr)

		mAttributes.put( attr.mName, attr );
	
java.util.SetgetAttributeNames()

		return( mAttributes.keySet() );
	
java.lang.ClassgetAttributeType(java.lang.String name)

		final Object	value	= getValue( name );
		return( value.getClass() );
	
intgetInstanceNumber()

		return( mInstanceNumber );
	
java.lang.StringgetModuleName()

		return( mModuleName );
	
java.lang.StringgetName()

		return( mkstatName );
	
public static java.lang.StringgetScopedName(java.lang.String moduleName, int instanceNumber, java.lang.String name)

		return( getScopedName( moduleName, instanceNumber, name, ':" ) );
	
java.lang.StringgetScopedName(char delim)

		return( getScopedName( mModuleName, mInstanceNumber, mkstatName, delim ) );
	
java.lang.StringgetScopedName()

		return( getScopedName( ':" ) );
	
public static java.lang.StringgetScopedName(java.lang.String moduleName, int instanceNumber, java.lang.String name, char delim)

		return( moduleName + delim + instanceNumber + delim + name );
	
public java.lang.ObjectgetValue(java.lang.String attributeName)

		final kstatAttribute	attr	= (kstatAttribute)mAttributes.get( attributeName );
		
		Object	value	= null;
		if ( attr != null )
		{
			value	= attr.mValue;
		}
		
		return( value );
	
public java.lang.StringtoString()

		return( getScopedName( ':" ) + "\n" + SmartStringifier.toString( mAttributes ) );