javax.management.modelmbean
Class ModelMBeanOperationInfo

java.lang.Object
  extended byjavax.management.MBeanFeatureInfo (src) 
      extended byjavax.management.MBeanOperationInfo (src) 
          extended byjavax.management.modelmbean.ModelMBeanOperationInfo
All Implemented Interfaces:
java.lang.Cloneable, DescriptorAccess (src) , java.io.Serializable

public class ModelMBeanOperationInfo
extends MBeanOperationInfo (src)
implements DescriptorAccess (src)

Represents Model MBean operation.

See Also:
ModelMBeanInfo (src) , ModelMBeanInfoSupport (src) , Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanOperationInfo (src)
ACTION, ACTION_INFO, INFO, UNKNOWN
 
Fields inherited from class javax.management.MBeanFeatureInfo (src)
description, name
 
Constructor Summary
ModelMBeanOperationInfo(ModelMBeanOperationInfo (src)  info)
          Copy constructor.
ModelMBeanOperationInfo(java.lang.String description, java.lang.reflect.Method operationMethod)
          Creates a new operation info with a default descriptor.
ModelMBeanOperationInfo(java.lang.String description, java.lang.reflect.Method operationMethod, Descriptor (src)  descriptor)
          Creates a new operation info with a given descriptor.
ModelMBeanOperationInfo(java.lang.String name, java.lang.String description, MBeanParameterInfo (src) [] signature, java.lang.String type, int impact)
          Creates a new operation info with a default descriptor.
ModelMBeanOperationInfo(java.lang.String name, java.lang.String description, MBeanParameterInfo (src) [] signature, java.lang.String type, int impact, Descriptor (src)  descriptor)
          Creates a new operation info with a given descriptor.
 
Method Summary
 java.lang.Object clone()
          Creates a copy of this object.
 Descriptor (src) getDescriptor()
          Returns a copy of the descriptor associated with this operation.
 void setDescriptor(Descriptor (src)  inDescriptor)
          Replaces the descriptor associated with this operation.
 java.lang.String toString()
          Returns a string representation of this Model MBean operation info object.
 
Methods inherited from class javax.management.MBeanOperationInfo (src)
equals, getImpact, getReturnType, getSignature, hashCode
 
Methods inherited from class javax.management.MBeanFeatureInfo (src)
getDescription, getName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelMBeanOperationInfo

public ModelMBeanOperationInfo(java.lang.String description,
                               java.lang.reflect.Method operationMethod)
Creates a new operation info with a default descriptor.

Parameters:
description - human readable description string
operationMethod - a Method instance representing the management operation

ModelMBeanOperationInfo

public ModelMBeanOperationInfo(java.lang.String description,
                               java.lang.reflect.Method operationMethod,
                               Descriptor (src)  descriptor)
Creates a new operation info with a given descriptor. If a null or invalid descriptor is passed as a paramter, a default descriptor will be created for the operation.

Parameters:
description - human readable description string
operationMethod - a Method instance representing the management operation
descriptor - a descriptor to associate with this operation

ModelMBeanOperationInfo

public ModelMBeanOperationInfo(java.lang.String name,
                               java.lang.String description,
                               MBeanParameterInfo (src) [] signature,
                               java.lang.String type,
                               int impact)
Creates a new operation info with a default descriptor.

Parameters:
name - name of the operation
description - human readable description string
signature - operation signature
type - a fully qualified name of the operations return type
impact - operation impact: INFO, ACTION, ACTION_INFO, UNKNOWN

ModelMBeanOperationInfo

public ModelMBeanOperationInfo(java.lang.String name,
                               java.lang.String description,
                               MBeanParameterInfo (src) [] signature,
                               java.lang.String type,
                               int impact,
                               Descriptor (src)  descriptor)
Creates a new operation info with a given descriptor. If a null or invalid descriptor is passed as a parameter, a default descriptor will be created for the operation.

Parameters:
name - name of the operation
description - human readable description string
signature - operation signature
type - a fully qualified name of the oeprations return type
impact - operation impact: INFO, ACTION, ACTION_INFO, UNKNOWN
descriptor - a descriptor to associate with this operation

ModelMBeanOperationInfo

public ModelMBeanOperationInfo(ModelMBeanOperationInfo (src)  info)
Copy constructor.

Parameters:
info - the operation info to copy
Method Detail

getDescriptor

public Descriptor (src)  getDescriptor()
Returns a copy of the descriptor associated with this operation.

Specified by:
getDescriptor in interface DescriptorAccess (src)
Returns:
a copy of this operation's associated descriptor

setDescriptor

public void setDescriptor(Descriptor (src)  inDescriptor)
Replaces the descriptor associated with this operation. If the inDescriptor argument is null then the existing descriptor is replaced with a default descriptor.

Specified by:
setDescriptor in interface DescriptorAccess (src)
Parameters:
inDescriptor - descriptor used for replacing the existing operation descriptor
Throws:
java.lang.IllegalArgumentException - if the new descriptor is not valid

clone

public java.lang.Object clone()
Creates a copy of this object.

Overrides:
clone in class MBeanOperationInfo (src)
Returns:
clone of this object

toString

public java.lang.String toString()
Returns a string representation of this Model MBean operation info object. The returned string is in the form:

   ModelMBeanOperationInfo[<return type> <operation name>(<signature>),
   Impact=ACTION | INFO | ACTION_INFO | UNKNOWN,
   Descriptor=(fieldName1=fieldValue1, ... , fieldName<n>=fieldValue<n>)]

 

Overrides:
toString in class MBeanOperationInfo (src)
Returns:
string representation of this object