This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.openmbean
class OpenMBeanOperationInfoSupport

java.lang.Object extended by javax.management.MBeanFeatureInfo extended by javax.management.MBeanOperationInfo extended by javax.management.openmbean.OpenMBeanOperationInfoSupport
All Implemented Interfaces:
Serializable, Cloneable, DescriptorRead, OpenMBeanOperationInfo

public class OpenMBeanOperationInfoSupport
extends MBeanOperationInfo
implements OpenMBeanOperationInfo

Describes an operation of an Open MBean.


Field Summary
 
Fields inherited from class javax.management.MBeanOperationInfo
ACTION, ACTION_INFO, INFO, UNKNOWN
 
Fields inherited from class javax.management.MBeanFeatureInfo
description, name
 
Constructor Summary
OpenMBeanOperationInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, OpenType returnOpenType, int impact)

          Constructs an instance, which describes the operation of a class of open MBeans, with the specified , , , and .
OpenMBeanOperationInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, OpenType returnOpenType, int impact, Descriptor descriptor)

          Constructs an instance, which describes the operation of a class of open MBeans, with the specified , , , , , and .
 
Method Summary
 boolean

          Compares the specified parameter with this instance for equality.
 OpenType

          Returns the open type of the values returned by the operation described by this instance.
 int

          Returns the hash code value for this instance.
 String

          Returns a string representation of this instance.
 
Methods inherited from class javax.management.MBeanOperationInfo
clone, equals, getImpact, getReturnType, getSignature, hashCode, toString
 
Methods inherited from class javax.management.MBeanFeatureInfo
equals, getDescription, getDescriptor, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenMBeanOperationInfoSupport

public OpenMBeanOperationInfoSupport(String name,
                                     String description,
                                     OpenMBeanParameterInfo[] signature,
                                     OpenType returnOpenType,
                                     int impact)

Constructs an {@code OpenMBeanOperationInfoSupport} instance, which describes the operation of a class of open MBeans, with the specified {@code name}, {@code description}, {@code signature}, {@code returnOpenType} and {@code impact}.

The {@code signature} array parameter is internally copied, so that subsequent changes to the array referenced by {@code signature} have no effect on this instance.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
signature - can be null or empty if there are no parameters to describe.
returnOpenType - cannot be null: use {@code SimpleType.VOID} for operations that return nothing.
impact - must be one of {@code ACTION}, {@code ACTION_INFO}, {@code INFO}, or {@code UNKNOWN}.

OpenMBeanOperationInfoSupport

public OpenMBeanOperationInfoSupport(String name,
                                     String description,
                                     OpenMBeanParameterInfo[] signature,
                                     OpenType returnOpenType,
                                     int impact,
                                     Descriptor descriptor)

Constructs an {@code OpenMBeanOperationInfoSupport} instance, which describes the operation of a class of open MBeans, with the specified {@code name}, {@code description}, {@code signature}, {@code returnOpenType}, {@code impact}, and {@code descriptor}.

The {@code signature} array parameter is internally copied, so that subsequent changes to the array referenced by {@code signature} have no effect on this instance.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
signature - can be null or empty if there are no parameters to describe.
returnOpenType - cannot be null: use {@code SimpleType.VOID} for operations that return nothing.
impact - must be one of {@code ACTION}, {@code ACTION_INFO}, {@code INFO}, or {@code UNKNOWN}.
descriptor - The descriptor for the operation. This may be null, which is equivalent to an empty descriptor.
Method Detail

equals

public boolean equals(Object obj)

Compares the specified {@code obj} parameter with this {@code OpenMBeanOperationInfoSupport} instance for equality.

Returns {@code true} if and only if all of the following statements are true:

This ensures that this {@code equals} method works properly for {@code obj} parameters which are different implementations of the {@code OpenMBeanOperationInfo} interface.

Overrides:
equals in class MBeanOperationInfo
Parameters:
obj - the object to be compared for equality with this {@code OpenMBeanOperationInfoSupport} instance;
Returns:
{@code true} if the specified object is equal to this {@code OpenMBeanOperationInfoSupport} instance.

getReturnOpenType

public OpenType getReturnOpenType()
Returns the open type of the values returned by the operation described by this {@code OpenMBeanOperationInfo} instance.


hashCode

public int hashCode()

Returns the hash code value for this {@code OpenMBeanOperationInfoSupport} instance.

The hash code of an {@code OpenMBeanOperationInfoSupport} instance is the sum of the hash codes of all elements of information used in {@code equals} comparisons (ie: its name, return open type, impact and signature, where the signature hashCode is calculated by a call to {@code java.util.Arrays.asList(this.getSignature).hashCode()}).

This ensures that {@code t1.equals(t2) } implies that {@code t1.hashCode()==t2.hashCode() } for any two {@code OpenMBeanOperationInfoSupport} instances {@code t1} and {@code t2}, as required by the general contract of the method {@link Object#hashCode() Object.hashCode()}.

However, note that another instance of a class implementing the {@code OpenMBeanOperationInfo} interface may be equal to this {@code OpenMBeanOperationInfoSupport} instance as defined by {@link #equals(java.lang.Object)}, but may have a different hash code if it is calculated differently.

As {@code OpenMBeanOperationInfoSupport} instances are immutable, the hash code for this instance is calculated once, on the first call to {@code hashCode}, and then the same value is returned for subsequent calls.

Overrides:
hashCode in class MBeanOperationInfo
Returns:
the hash code value for this {@code OpenMBeanOperationInfoSupport} instance

toString

public String toString()

Returns a string representation of this {@code OpenMBeanOperationInfoSupport} instance.

The string representation consists of the name of this class (ie {@code javax.management.openmbean.OpenMBeanOperationInfoSupport}), and the name, signature, return open type and impact of the described operation and the string representation of its descriptor.

As {@code OpenMBeanOperationInfoSupport} instances are immutable, the string representation for this instance is calculated once, on the first call to {@code toString}, and then the same value is returned for subsequent calls.

Overrides:
toString in class MBeanOperationInfo
Returns:
a string representation of this {@code OpenMBeanOperationInfoSupport} instance


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.