test.compliance.openmbean
Class OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport

java.lang.Object
  extended bytest.compliance.openmbean.OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport
All Implemented Interfaces:
OpenMBeanOperationInfo (src)
Enclosing class:
OpenMBeanInfoSupportTestCase (src)

public static class OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport
extends java.lang.Object
implements OpenMBeanOperationInfo (src)


Constructor Summary
OpenMBeanInfoSupportTestCase.MyOpenMBeanOperationInfoSupport()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares an object for equality with the implementing class.
 java.lang.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
 java.lang.String getName()
          Retrieve the name of the operation described.
 OpenType (src) getReturnOpenType()
          Retrieves the open type return type of operation.
 java.lang.String getReturnType()
          Retrieves the return type of operation. This must be same as getReturnOpenType().getClassName()
 MBeanParameterInfo (src) [] getSignature()
          Returns an array of the parameters passed to the operation
 int hashCode()
          Generates a hashcode for the implementation.
 java.lang.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(java.lang.Object o)
Description copied from interface: OpenMBeanOperationInfo (src)
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 OpenMBeanOperationInfo (src)

getDescription

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

Specified by:
getDescription in interface OpenMBeanOperationInfo (src)
Returns:
the description.

getImpact

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

Specified by:
getImpact in interface OpenMBeanOperationInfo (src)
Returns:
the impact.

getName

public java.lang.String getName()
Description copied from interface: OpenMBeanOperationInfo (src)
Retrieve the name of the operation described.

Specified by:
getName in interface OpenMBeanOperationInfo (src)
Returns:
the name.

getReturnOpenType

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

Specified by:
getReturnOpenType in interface OpenMBeanOperationInfo (src)
Returns:
the open type of the return type.

getReturnType

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

Specified by:
getReturnType in interface OpenMBeanOperationInfo (src)
Returns:
the return type.

getSignature

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

The parameters must be OpenMBeanParameterInfos.

Specified by:
getSignature in interface OpenMBeanOperationInfo (src)
Returns:
the operation's parameters.

hashCode

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

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

Specified by:
hashCode in interface OpenMBeanOperationInfo (src)

toString

public java.lang.String toString()
Description copied from interface: OpenMBeanOperationInfo (src)
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 OpenMBeanOperationInfo (src)