Package org.apache.tomcat.util.modeler
Class NotificationInfo
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.FeatureInfo
- 
- org.apache.tomcat.util.modeler.NotificationInfo
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class NotificationInfo extends FeatureInfo Internal configuration information for a Notificationdescriptor.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.String[]notifTypesprotected java.util.concurrent.locks.ReadWriteLocknotifTypesLock- 
Fields inherited from class org.apache.tomcat.util.modeler.FeatureInfodescription, name, type
 
- 
 - 
Constructor SummaryConstructors Constructor Description NotificationInfo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotifType(java.lang.String notifType)Add a new notification type to the set managed by an MBean.javax.management.MBeanNotificationInfocreateNotificationInfo()Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.java.lang.String[]getNotifTypes()voidsetDescription(java.lang.String description)Override thedescriptionproperty setter.voidsetName(java.lang.String name)Override thenameproperty setter.java.lang.StringtoString()Return a string representation of this notification descriptor.- 
Methods inherited from class org.apache.tomcat.util.modeler.FeatureInfogetDescription, getName, getType, setType
 
- 
 
- 
- 
- 
Method Detail- 
setDescriptionpublic void setDescription(java.lang.String description) Override thedescriptionproperty setter.- Overrides:
- setDescriptionin class- FeatureInfo
- Parameters:
- description- The new description
 
 - 
setNamepublic void setName(java.lang.String name) Override thenameproperty setter.- Overrides:
- setNamein class- FeatureInfo
- Parameters:
- name- The new name
 
 - 
getNotifTypespublic java.lang.String[] getNotifTypes() - Returns:
- the set of notification types for this MBean.
 
 - 
addNotifTypepublic void addNotifType(java.lang.String notifType) Add a new notification type to the set managed by an MBean.- Parameters:
- notifType- The new notification type
 
 - 
createNotificationInfopublic javax.management.MBeanNotificationInfo createNotificationInfo() Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.- Returns:
- the notification info
 
 - 
toStringpublic java.lang.String toString() Return a string representation of this notification descriptor.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-