org.jboss.test.jmx.compliance.standard.support
Class MyStandardMBean

java.lang.Object
  extended byjavax.management.StandardMBean
      extended byorg.jboss.test.jmx.compliance.standard.support.MyStandardMBean
All Implemented Interfaces:
javax.management.DynamicMBean, MyManagementInterface
Direct Known Subclasses:
NoConstructorsStandardMBean

public class MyStandardMBean
extends javax.management.StandardMBean
implements MyManagementInterface


Field Summary
static String MBEAN_ATTRIBUTE_DESCRIPTION
           
static String MBEAN_CLASSNAME
           
static String MBEAN_CONSTRUCTOR_DESCRIPTION
           
static String MBEAN_DESCRIPTION
           
static String MBEAN_OPERATION_DESCRIPTION
           
static String MBEAN_PARAMETER
           
static String MBEAN_PARAMETER_DESCRIPTION
           
 
Constructor Summary
MyStandardMBean()
           
MyStandardMBean(String param1, String param2)
           
 
Method Summary
 void anOperation(String param1, String param2)
           
 String getAnAttribute()
           
protected  String getClassName(javax.management.MBeanInfo info)
          Retrieve the class name of the mbean
protected  String getDescription(javax.management.MBeanAttributeInfo info)
          Retrieve the description of the mbean attribute
protected  String getDescription(javax.management.MBeanConstructorInfo info)
          Retrieve the description of the mbean constructor
protected  String getDescription(javax.management.MBeanConstructorInfo info, javax.management.MBeanParameterInfo param, int sequence)
          Retrieve the description of the mbean constructor parameter
protected  String getDescription(javax.management.MBeanInfo info)
          Retrieve the description of the mbean
protected  String getDescription(javax.management.MBeanOperationInfo info)
          Retrieve the description of the mbean operation
protected  String getDescription(javax.management.MBeanOperationInfo info, javax.management.MBeanParameterInfo param, int sequence)
          Retrieve the description of the mbean operation parameter
protected  int getImpact(javax.management.MBeanOperationInfo info)
          Retrieve the impact of the mbean operation
protected  String getParameterName(javax.management.MBeanConstructorInfo info, javax.management.MBeanParameterInfo param, int sequence)
          Retrieve the parameter name for a constructor
protected  String getParameterName(javax.management.MBeanOperationInfo info, javax.management.MBeanParameterInfo param, int sequence)
          Retrieve the parameter name for an operation
 void setAnAttribute(String value)
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getConstructors, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MBEAN_CLASSNAME

public static final String MBEAN_CLASSNAME
See Also:
Constant Field Values

MBEAN_DESCRIPTION

public static final String MBEAN_DESCRIPTION
See Also:
Constant Field Values

MBEAN_ATTRIBUTE_DESCRIPTION

public static final String MBEAN_ATTRIBUTE_DESCRIPTION
See Also:
Constant Field Values

MBEAN_CONSTRUCTOR_DESCRIPTION

public static final String MBEAN_CONSTRUCTOR_DESCRIPTION
See Also:
Constant Field Values

MBEAN_OPERATION_DESCRIPTION

public static final String MBEAN_OPERATION_DESCRIPTION
See Also:
Constant Field Values

MBEAN_PARAMETER

public static final String MBEAN_PARAMETER
See Also:
Constant Field Values

MBEAN_PARAMETER_DESCRIPTION

public static final String MBEAN_PARAMETER_DESCRIPTION
See Also:
Constant Field Values
Constructor Detail

MyStandardMBean

public MyStandardMBean()
                throws Exception

MyStandardMBean

public MyStandardMBean(String param1,
                       String param2)
                throws Exception
Method Detail

getAnAttribute

public String getAnAttribute()
Specified by:
getAnAttribute in interface MyManagementInterface

setAnAttribute

public void setAnAttribute(String value)
Specified by:
setAnAttribute in interface MyManagementInterface

anOperation

public void anOperation(String param1,
                        String param2)
Specified by:
anOperation in interface MyManagementInterface

getClassName

protected String getClassName(javax.management.MBeanInfo info)
Description copied from class: javax.management.StandardMBean
Retrieve the class name of the mbean

Parameters:
info - the default mbeaninfo derived by reflection
Returns:
the class name

getDescription

protected String getDescription(javax.management.MBeanInfo info)
Description copied from class: javax.management.StandardMBean
Retrieve the description of the mbean

Parameters:
info - the default mbeaninfo derived by reflection
Returns:
the description

getDescription

protected String getDescription(javax.management.MBeanAttributeInfo info)
Description copied from class: javax.management.StandardMBean
Retrieve the description of the mbean attribute

Parameters:
info - the default mbeanattributeinfo derived by reflection
Returns:
the description

getDescription

protected String getDescription(javax.management.MBeanConstructorInfo info)
Description copied from class: javax.management.StandardMBean
Retrieve the description of the mbean constructor

Parameters:
info - the default mbeanconstructorinfo derived by reflection
Returns:
the description

getDescription

protected String getDescription(javax.management.MBeanOperationInfo info)
Description copied from class: javax.management.StandardMBean
Retrieve the description of the mbean operation

Parameters:
info - the default mbeanoperationinfo derived by reflection
Returns:
the description

getDescription

protected String getDescription(javax.management.MBeanConstructorInfo info,
                                javax.management.MBeanParameterInfo param,
                                int sequence)
Description copied from class: javax.management.StandardMBean
Retrieve the description of the mbean constructor parameter

Parameters:
info - the default mbeanconstructorinfo derived by reflection
param - the parameter information
sequence - the parameter index, starting with zero
Returns:
the description

getDescription

protected String getDescription(javax.management.MBeanOperationInfo info,
                                javax.management.MBeanParameterInfo param,
                                int sequence)
Description copied from class: javax.management.StandardMBean
Retrieve the description of the mbean operation parameter

Parameters:
info - the default mbeanoperationinfo derived by reflection
param - the parameter information
sequence - the parameter index, starting with zero
Returns:
the description

getParameterName

protected String getParameterName(javax.management.MBeanConstructorInfo info,
                                  javax.management.MBeanParameterInfo param,
                                  int sequence)
Description copied from class: javax.management.StandardMBean
Retrieve the parameter name for a constructor

Parameters:
info - the default mbeanconstructorinfo derived by reflection
param - the parameter information
sequence - the parameter index, starting with zero
Returns:
the parameter name

getParameterName

protected String getParameterName(javax.management.MBeanOperationInfo info,
                                  javax.management.MBeanParameterInfo param,
                                  int sequence)
Description copied from class: javax.management.StandardMBean
Retrieve the parameter name for an operation

Parameters:
info - the default mbeanoperationinfo derived by reflection
param - the parameter information
sequence - the parameter index, starting with zero
Returns:
the parameter name

getImpact

protected int getImpact(javax.management.MBeanOperationInfo info)
Description copied from class: javax.management.StandardMBean
Retrieve the impact of the mbean operation

Parameters:
info - the default mbeanoperationinfo derived by reflection
Returns:
the impact


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.