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
Notification
descriptor.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
notifTypes
protected java.util.concurrent.locks.ReadWriteLock
notifTypesLock
-
Fields inherited from class org.apache.tomcat.util.modeler.FeatureInfo
description, name, type
-
-
Constructor Summary
Constructors Constructor Description NotificationInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNotifType(java.lang.String notifType)
Add a new notification type to the set managed by an MBean.javax.management.MBeanNotificationInfo
createNotificationInfo()
Create and return aModelMBeanNotificationInfo
object that corresponds to the attribute described by this instance.java.lang.String[]
getNotifTypes()
void
setDescription(java.lang.String description)
Override thedescription
property setter.void
setName(java.lang.String name)
Override thename
property setter.java.lang.String
toString()
Return a string representation of this notification descriptor.-
Methods inherited from class org.apache.tomcat.util.modeler.FeatureInfo
getDescription, getName, getType, setType
-
-
-
-
Method Detail
-
setDescription
public void setDescription(java.lang.String description)
Override thedescription
property setter.- Overrides:
setDescription
in classFeatureInfo
- Parameters:
description
- The new description
-
setName
public void setName(java.lang.String name)
Override thename
property setter.- Overrides:
setName
in classFeatureInfo
- Parameters:
name
- The new name
-
getNotifTypes
public java.lang.String[] getNotifTypes()
- Returns:
- the set of notification types for this MBean.
-
addNotifType
public void addNotifType(java.lang.String notifType)
Add a new notification type to the set managed by an MBean.- Parameters:
notifType
- The new notification type
-
createNotificationInfo
public javax.management.MBeanNotificationInfo createNotificationInfo()
Create and return aModelMBeanNotificationInfo
object that corresponds to the attribute described by this instance.- Returns:
- the notification info
-
toString
public java.lang.String toString()
Return a string representation of this notification descriptor.- Overrides:
toString
in classjava.lang.Object
-
-