is new.
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanOperationInfo
javax.management.modelmbean.ModelMBeanOperationInfo
public class ModelMBeanOperationInfo
The ModelMBeanOperationInfo object describes a management operation of the ModelMBean. It is a subclass of MBeanOperationInfo with the addition of an associated Descriptor and an implementation of the DescriptorAccess interface.
The fields in the descriptor are defined, but not limited to, the following: name : operation name descriptorType : must be "operation" class : class where method is defined (fully qualified) role : must be "operation", "getter", or "setter targetObject : object on which to execute this method targetType : type of object reference for targetObject. Can be: ObjectReference | Handle | EJBHandle | IOR | RMIReference. value : cached value for operation currencyTimeLimit : how long cached value is valid lastUpdatedTimeStamp : when cached value was set visibility : 1-4 where 1: always visible 4: rarely visible presentationString : xml formatted string to describe how to present operationThe default descriptor will have name, descriptorType, displayName and role fields set.
Note: because of inconsistencies in previous versions of this specification, it is recommended not to use negative or zero values for currencyTimeLimit. To indicate that a cached value is never valid, omit the currencyTimeLimit field. To indicate that it is always valid, use a very large number for this field.
The
serialVersionUID
of this class is 6532732096650090465L.
| 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 | |
|---|---|
|
ModelMBeanOperationInfo
(
ModelMBeanOperationInfo
inInfo) Constructs a new ModelMBeanOperationInfo object from this ModelMBeanOperation Object. |
|
|
ModelMBeanOperationInfo
(
String
description,
Method
operationMethod) Constructs a ModelMBeanOperationInfo object with a default descriptor. |
|
|
ModelMBeanOperationInfo
(
String
description,
Method
operationMethod,
Descriptor
descriptor) Constructs a ModelMBeanOperationInfo object. |
|
|
ModelMBeanOperationInfo
(
String
name,
String
description,
MBeanParameterInfo
[] signature,
String
type, int impact) Constructs a ModelMBeanOperationInfo object with a default descriptor. |
|
|
ModelMBeanOperationInfo
(
String
name,
String
description,
MBeanParameterInfo
[] signature,
String
type, int impact,
Descriptor
descriptor) Constructs a ModelMBeanOperationInfo object. |
|
| Method Summary | |
|---|---|
| Object |
clone
() Creates and returns a new ModelMBeanOperationInfo which is a duplicate of this ModelMBeanOperationInfo. |
| Descriptor |
getDescriptor
() Returns a copy of the associated Descriptor of the ModelMBeanOperationInfo. |
| void |
setDescriptor
(
Descriptor
inDescriptor) Sets associated Descriptor (full replace) for the ModelMBeanOperationInfo If the new Descriptor is null, then the associated Descriptor reverts to a default descriptor. |
| String |
toString
() Returns a string containing the entire contents of the ModelMBeanOperationInfo in human readable form. |
| Methods inherited from class javax.management. MBeanOperationInfo |
|---|
| equals , getImpact , getReturnType , getSignature , hashCode |
| Methods inherited from class javax.management. MBeanFeatureInfo |
|---|
| getDescription , getName |
| Methods inherited from class java.lang. Object |
|---|
| finalize , getClass , notify , notifyAll , wait , wait , wait |
| Constructor Detail |
|---|
public ModelMBeanOperationInfo(String description,
Method operationMethod)
The
Descriptor
of the constructed object will include fields contributed by any annotations on the Method object that contain the
DescriptorKey
meta-annotation.
public ModelMBeanOperationInfo(String description,
Method operationMethod,
Descriptor descriptor)
The
Descriptor
of the constructed object will include fields contributed by any annotations on the Method object that contain the
DescriptorKey
meta-annotation.
public ModelMBeanOperationInfo(String name,
String description,
MBeanParameterInfo[] signature,
String type,
int impact)
public ModelMBeanOperationInfo(String name,
String description,
MBeanParameterInfo[] signature,
String type,
int impact,
Descriptor descriptor)
public ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)
| Method Detail |
|---|
public Object clone()
public Descriptor getDescriptor()
public void setDescriptor(Descriptor inDescriptor)
public String toString()