|
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.MBeanFeatureInfo |
---|
description, name |
Constructor Summary | |
---|---|
ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
Constructs a new ModelMBeanNotificationInfo object from this ModelMBeanNotfication Object. |
|
ModelMBeanNotificationInfo(String[] notifTypes,
String name,
String description)
Constructs a ModelMBeanNotificationInfo object with a default descriptor. |
|
ModelMBeanNotificationInfo(String[] notifTypes,
String name,
String description,
Descriptor descriptor)
Constructs a ModelMBeanNotificationInfo object. |
Method Summary | |
---|---|
Object |
clone()
Creates and returns a new ModelMBeanNotificationInfo which is a duplicate of this ModelMBeanNotificationInfo. |
Descriptor |
getDescriptor()
Returns a copy of the associated Descriptor for the ModelMBeanNotificationInfo. |
void |
setDescriptor(Descriptor inDescriptor)
Sets associated Descriptor (full replace) for the ModelMBeanNotificationInfo If the new Descriptor is null, then the associated Descriptor reverts to a default descriptor. |
String |
toString()
Returns a human readable string containing ModelMBeanNotificationInfo. |
Methods inherited from class javax.management.MBeanNotificationInfo |
---|
equals, getNotifTypes, 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 ModelMBeanNotificationInfo(String[] notifTypes, String name, String description)
notifTypes
- The array of strings (in dot notation) containing
the notification types that may be emitted.name
- The name of the Notification class.description
- A human readable description of the
Notification. Optional.public ModelMBeanNotificationInfo(String[] notifTypes, String name, String description, Descriptor descriptor)
notifTypes
- The array of strings (in dot notation)
containing the notification types that may be emitted.name
- The name of the Notification class.description
- A human readable description of the Notification.
Optional.descriptor
- An instance of Descriptor containing the
appropriate metadata for this instance of the
MBeanNotificationInfo. If it is null a default descriptor
will be created. If the descriptor does not contain the
fields "displayName" or "severity" 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 parameter name, or
descriptor field "DescriptorType" is not equal to "notification".public ModelMBeanNotificationInfo(ModelMBeanNotificationInfo inInfo)
inInfo
- the ModelMBeanNotificationInfo to be duplicatedMethod Detail |
---|
public Object clone()
clone
in class MBeanNotificationInfo
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
ModelMBeanNotification interface
RuntimeOperationsException
- Wraps an
IllegalArgumentException
for invalid Descriptor.getDescriptor()
public String toString()