FileDocCategorySizeDatePackage
ManagedProfiler.javaAPI DocGlassfish v2 API5122Fri May 04 22:33:56 BST 2007com.sun.enterprise.admin.server.core.mbean.config

ManagedProfiler

public class ManagedProfiler extends ConfigMBeanBase implements ConfigAttributeName.Profiler
This Config MBean represents a Profiler element. It extends ConfigMBeanBase class which provides get/set attribute(s) and getMBeanInfo services according to text descriptions. ObjectName of this MBean is: ias: type=auth-db, instance-name=, class=, server= name=

Fields Summary
private static final String[]
MAPLIST
MAPLIST array defines mapping between "external" name and its location in XML relatively base node
private static final String[]
ATTRIBUTES
ATTRIBUTES array specifies attributes descriptions in format defined for MBeanEasyConfig
private static final String[]
OPERATIONS
OPERATIONS array specifies operations descriptions in format defined for MBeanEasyConfig
Constructors Summary
public ManagedProfiler()
Default constructor sets MBean description tables

    
                     
       
    
        this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS);
    
public ManagedProfiler(String instanceName)
Constructs Config MBean for Profiler.

param
instanceName The server instance name.

        this(); //set description tables
        initialize(ObjectNames.kProfiler, new String[]{instanceName});
    
Methods Summary
public java.lang.String[]getJvmOptions()
This operation returns list of JvmOptions connected to this class.

        Profiler  profiler  = (Profiler)getBaseConfigBean();
        return profiler.getJvmOptions();
    
public voidsetJvmOptions(java.lang.String[] options)
This operation returns list of JvmOptions connected to this class.

        Profiler  profiler  = (Profiler)getBaseConfigBean();
        profiler.setJvmOptions(options);
        getConfigContext().flush();