|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
javax.management.modelmbean
|
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)
operationMethod
- The java.lang.reflect.Method object
describing the MBean operation.description
- A human readable description of the operation.public ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)
operationMethod
- The java.lang.reflect.Method object
describing the MBean operation.description
- A human readable description of the
operation.descriptor
- An instance of Descriptor containing the
appropriate metadata for this instance of the
ModelMBeanOperationInfo. If it is null a default
descriptor will be created. If the descriptor does not
contain the fields "displayName" or "role" these fields are
added in the descriptor with their default values.
RuntimeOperationsException
- Wraps an
IllegalArgumentException. The descriptor is invalid, or
descriptor field "name" is not equal to operation name, or
descriptor field "DescriptorType" is not equal to
"operation", or descriptor field "role" is not equal to
"operation".public ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)
name
- The name of the method.description
- A human readable description of the operation.signature
- MBeanParameterInfo objects describing the parameters(arguments) of the method.type
- The type of the method's return value.impact
- The impact of the method, one of INFO, ACTION, ACTION_INFO, UNKNOWN.public ModelMBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact, Descriptor descriptor)
name
- The name of the method.description
- A human readable description of the operation.signature
- MBeanParameterInfo objects describing the parameters(arguments) of the method.type
- The type of the method's return value.impact
- The impact of the method, one of INFO, ACTION, ACTION_INFO, UNKNOWN.descriptor
- An instance of Descriptor containing the appropriate metadata.
for this instance of the MBeanOperationInfo.If it is null then a default descriptor will be created.
If the descriptor does not contain the fields
"displayName" or "role" these fields are added in the descriptor with their default values.
RuntimeOperationsException
- Wraps an IllegalArgumentException. The descriptor is invalid, or descriptor field "name"
is not equal to operation name, or descriptor field "DescriptorType" is not equal to "operation", or descriptor field "role" is not equal to
"operation".public ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)
inInfo
- the ModelMBeanOperationInfo to be duplicatedMethod Detail |
---|
public Object clone()
clone
in class MBeanOperationInfo
Cloneable
public Descriptor getDescriptor()
getDescriptor
in interface DescriptorAccess
setDescriptor(javax.management.Descriptor)
public void setDescriptor(Descriptor inDescriptor)
setDescriptor
in interface DescriptorAccess
inDescriptor
- replaces the Descriptor associated with the
ModelMBeanOperation.
RuntimeOperationsException
- Wraps an
IllegalArgumentException for invalid Descriptor.getDescriptor()
public String toString()