test.compliance.standard.support
Class MyStandardMBean

java.lang.Object
  extended byjavax.management.StandardMBean (src) 
      extended bytest.compliance.standard.support.MyStandardMBean
All Implemented Interfaces:
DynamicMBean (src) , MyManagementInterface (src)
Direct Known Subclasses:
NoConstructorsStandardMBean (src)

public class MyStandardMBean
extends StandardMBean (src)
implements MyManagementInterface (src)


Field Summary
static java.lang.String MBEAN_ATTRIBUTE_DESCRIPTION
           
static java.lang.String MBEAN_CLASSNAME
           
static java.lang.String MBEAN_CONSTRUCTOR_DESCRIPTION
           
static java.lang.String MBEAN_DESCRIPTION
           
static java.lang.String MBEAN_OPERATION_DESCRIPTION
           
static java.lang.String MBEAN_PARAMETER
           
static java.lang.String MBEAN_PARAMETER_DESCRIPTION
           
 
Constructor Summary
MyStandardMBean()
           
MyStandardMBean(java.lang.String param1, java.lang.String param2)
           
 
Method Summary
 void anOperation(java.lang.String param1, java.lang.String param2)
           
 java.lang.String getAnAttribute()
           
protected  java.lang.String getClassName(MBeanInfo (src)  info)
          Retrieve the class name of the mbean
protected  java.lang.String getDescription(MBeanAttributeInfo (src)  info)
          Retrieve the description of the mbean attribute
protected  java.lang.String getDescription(MBeanConstructorInfo (src)  info)
          Retrieve the description of the mbean constructor
protected  java.lang.String getDescription(MBeanConstructorInfo (src)  info, MBeanParameterInfo (src)  param, int sequence)
          Retrieve the description of the mbean constructor parameter
protected  java.lang.String getDescription(MBeanInfo (src)  info)
          Retrieve the description of the mbean
protected  java.lang.String getDescription(MBeanOperationInfo (src)  info)
          Retrieve the description of the mbean operation
protected  java.lang.String getDescription(MBeanOperationInfo (src)  info, MBeanParameterInfo (src)  param, int sequence)
          Retrieve the description of the mbean operation parameter
protected  int getImpact(MBeanOperationInfo (src)  info)
          Retrieve the impact of the mbean operation
protected  java.lang.String getParameterName(MBeanConstructorInfo (src)  info, MBeanParameterInfo (src)  param, int sequence)
          Retrieve the parameter name for a constructor
protected  java.lang.String getParameterName(MBeanOperationInfo (src)  info, MBeanParameterInfo (src)  param, int sequence)
          Retrieve the parameter name for an operation
 void setAnAttribute(java.lang.String value)
           
 
Methods inherited from class javax.management.StandardMBean (src)
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 java.lang.String MBEAN_CLASSNAME
See Also:
Constant Field Values (src)

MBEAN_DESCRIPTION

public static final java.lang.String MBEAN_DESCRIPTION
See Also:
Constant Field Values (src)

MBEAN_ATTRIBUTE_DESCRIPTION

public static final java.lang.String MBEAN_ATTRIBUTE_DESCRIPTION
See Also:
Constant Field Values (src)

MBEAN_CONSTRUCTOR_DESCRIPTION

public static final java.lang.String MBEAN_CONSTRUCTOR_DESCRIPTION
See Also:
Constant Field Values (src)

MBEAN_OPERATION_DESCRIPTION

public static final java.lang.String MBEAN_OPERATION_DESCRIPTION
See Also:
Constant Field Values (src)

MBEAN_PARAMETER

public static final java.lang.String MBEAN_PARAMETER
See Also:
Constant Field Values (src)

MBEAN_PARAMETER_DESCRIPTION

public static final java.lang.String MBEAN_PARAMETER_DESCRIPTION
See Also:
Constant Field Values (src)
Constructor Detail

MyStandardMBean

public MyStandardMBean()
                throws java.lang.Exception

MyStandardMBean

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

getAnAttribute

public java.lang.String getAnAttribute()
Specified by:
getAnAttribute in interface MyManagementInterface (src)

setAnAttribute

public void setAnAttribute(java.lang.String value)
Specified by:
setAnAttribute in interface MyManagementInterface (src)

anOperation

public void anOperation(java.lang.String param1,
                        java.lang.String param2)
Specified by:
anOperation in interface MyManagementInterface (src)

getClassName

protected java.lang.String getClassName(MBeanInfo (src)  info)
Description copied from class: StandardMBean (src)
Retrieve the class name of the mbean

Overrides:
getClassName in class StandardMBean (src)
Parameters:
info - the default mbeaninfo derived by reflection
Returns:
the class name

getDescription

protected java.lang.String getDescription(MBeanInfo (src)  info)
Description copied from class: StandardMBean (src)
Retrieve the description of the mbean

Overrides:
getDescription in class StandardMBean (src)
Parameters:
info - the default mbeaninfo derived by reflection
Returns:
the description

getDescription

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

Overrides:
getDescription in class StandardMBean (src)
Parameters:
info - the default mbeanattributeinfo derived by reflection
Returns:
the description

getDescription

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

Overrides:
getDescription in class StandardMBean (src)
Parameters:
info - the default mbeanconstructorinfo derived by reflection
Returns:
the description

getDescription

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

Overrides:
getDescription in class StandardMBean (src)
Parameters:
info - the default mbeanoperationinfo derived by reflection
Returns:
the description

getDescription

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

Overrides:
getDescription in class StandardMBean (src)
Parameters:
info - the default mbeanconstructorinfo derived by reflection
param - the parameter information
sequence - the parameter index, starting with zero
Returns:
the description

getDescription

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

Overrides:
getDescription in class StandardMBean (src)
Parameters:
info - the default mbeanoperationinfo derived by reflection
param - the parameter information
sequence - the parameter index, starting with zero
Returns:
the description

getParameterName

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

Overrides:
getParameterName in class StandardMBean (src)
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 java.lang.String getParameterName(MBeanOperationInfo (src)  info,
                                            MBeanParameterInfo (src)  param,
                                            int sequence)
Description copied from class: StandardMBean (src)
Retrieve the parameter name for an operation

Overrides:
getParameterName in class StandardMBean (src)
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(MBeanOperationInfo (src)  info)
Description copied from class: StandardMBean (src)
Retrieve the impact of the mbean operation

Overrides:
getImpact in class StandardMBean (src)
Parameters:
info - the default mbeanoperationinfo derived by reflection
Returns:
the impact