org.jboss.test.jmx.compliance.openmbean
Class OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport

java.lang.Object
  extended byorg.jboss.test.jmx.compliance.openmbean.OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport
All Implemented Interfaces:
javax.management.openmbean.OpenMBeanOperationInfo
Enclosing class:
OpenMBeanInfoSupportTestCase

public static class OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport
extends Object
implements javax.management.openmbean.OpenMBeanOperationInfo


Constructor Summary
OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport()
           
 
Method Summary
 boolean equals(Object o)
          Compares an object for equality with the implementing class.
 String getDescription()
          Retrieve a human readable description of the open MBean operation the implementation of this interface describes.
 int getImpact()
          Retrieves the impact of the operation. One of
MBeanOperationInfo.INFO
MBeanOperationInfo.ACTION
MBeanOperationInfo.ACTION_INFO
 String getName()
          Retrieve the name of the operation described.
 javax.management.openmbean.OpenType getReturnOpenType()
          Retrieves the open type return type of operation.
 String getReturnType()
          Retrieves the return type of operation. This must be same as getReturnOpenType().getClassName()
 javax.management.MBeanParameterInfo[] getSignature()
          Returns an array of the parameters passed to the operation
 int hashCode()
          Generates a hashcode for the implementation.
 String toString()
          A string representation of the open mbean operation info.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport

public OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport()
Method Detail

equals

public boolean equals(Object o)
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Compares an object for equality with the implementing class.

The object is not null
The object implements the open mbean operation info interface
The operation names are equal
The signatures are equal
The return types are equal
The impacts are equal

Specified by:
equals in interface javax.management.openmbean.OpenMBeanOperationInfo

getDescription

public String getDescription()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Retrieve a human readable description of the open MBean operation the implementation of this interface describes.

Specified by:
getDescription in interface javax.management.openmbean.OpenMBeanOperationInfo
Returns:
the description.

getImpact

public int getImpact()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Retrieves the impact of the operation. One of
MBeanOperationInfo.INFO
MBeanOperationInfo.ACTION
MBeanOperationInfo.ACTION_INFO

Specified by:
getImpact in interface javax.management.openmbean.OpenMBeanOperationInfo
Returns:
the impact.

getName

public String getName()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Retrieve the name of the operation described.

Specified by:
getName in interface javax.management.openmbean.OpenMBeanOperationInfo
Returns:
the name.

getReturnOpenType

public javax.management.openmbean.OpenType getReturnOpenType()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Retrieves the open type return type of operation.

Specified by:
getReturnOpenType in interface javax.management.openmbean.OpenMBeanOperationInfo
Returns:
the open type of the return type.

getReturnType

public String getReturnType()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Retrieves the return type of operation. This must be same as getReturnOpenType().getClassName()

Specified by:
getReturnType in interface javax.management.openmbean.OpenMBeanOperationInfo
Returns:
the return type.

getSignature

public javax.management.MBeanParameterInfo[] getSignature()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Returns an array of the parameters passed to the operation

The parameters must be OpenMBeanParameterInfos.

Specified by:
getSignature in interface javax.management.openmbean.OpenMBeanOperationInfo
Returns:
the operation's parameters.

hashCode

public int hashCode()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
Generates a hashcode for the implementation.

The sum of the hashCodes for the elements mentioned in the equals method

Specified by:
hashCode in interface javax.management.openmbean.OpenMBeanOperationInfo

toString

public String toString()
Description copied from interface: javax.management.openmbean.OpenMBeanOperationInfo
A string representation of the open mbean operation info.

It is made up of implementation class and the values mentioned in the equals method

Specified by:
toString in interface javax.management.openmbean.OpenMBeanOperationInfo


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