Top Description Fields Constructors Methods
org.apache.tomcat.util.modeler

public Class NotificationInfo

extends FeatureInfo
Class Inheritance
Imports
java.util.concurrent.locks.Lock, .ReadWriteLock, .ReentrantReadWriteLock, javax.management.MBeanNotificationInfo

Internal configuration information for a Notification descriptor.

Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
pack-priv transient MBeanNotificationInfo
info

Hides org.apache.tomcat.util.modeler.FeatureInfo.info.

The ModelMBeanNotificationInfo object that corresponds to this NotificationInfo instance.
protected String[]
protected final ReadWriteLock
private static final long
Inherited from org.apache.tomcat.util.modeler.FeatureInfo:
descriptionnametype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addNotifType(String
The new notification type
notifType
)

Add a new notification type to the set managed by an MBean.

public MBeanNotificationInfo

Returns:

the notification info
createNotificationInfo
()

Create and return a ModelMBeanNotificationInfo object that corresponds to the attribute described by this instance.

public String[]

Returns:

the set of notification types for this MBean.
getNotifTypes
()

public void
setDescription(String
The new description
description
)

Overrides org.apache.tomcat.util.modeler.FeatureInfo.setDescription.

Override the description property setter.

public void
setName(String
The new name
name
)

Overrides org.apache.tomcat.util.modeler.FeatureInfo.setName.

Override the name property setter.

public String
toString()

Overrides java.lang.Object.toString.

Return a string representation of this notification descriptor.

Inherited from org.apache.tomcat.util.modeler.FeatureInfo:
getDescriptiongetNamegetTypesetType

Field Detail

infoback to summary
pack-priv transient MBeanNotificationInfo info

Hides org.apache.tomcat.util.modeler.FeatureInfo.info.

The ModelMBeanNotificationInfo object that corresponds to this NotificationInfo instance.

notifTypesback to summary
protected String[] notifTypes
notifTypesLockback to summary
protected final ReadWriteLock notifTypesLock
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.tomcat.util.modeler.FeatureInfo.serialVersionUID.

Constructor Detail

NotificationInfoback to summary
public NotificationInfo()

Method Detail

addNotifTypeback to summary
public void addNotifType(String notifType)

Add a new notification type to the set managed by an MBean.

Parameters
notifType:String

The new notification type

createNotificationInfoback to summary
public MBeanNotificationInfo createNotificationInfo()

Create and return a ModelMBeanNotificationInfo object that corresponds to the attribute described by this instance.

Returns:MBeanNotificationInfo

the notification info

getNotifTypesback to summary
public String[] getNotifTypes()
Returns:String[]

the set of notification types for this MBean.

setDescriptionback to summary
public void setDescription(String description)

Overrides org.apache.tomcat.util.modeler.FeatureInfo.setDescription.

Override the description property setter.

Parameters
description:String

The new description

Annotations
@Override
setNameback to summary
public void setName(String name)

Overrides org.apache.tomcat.util.modeler.FeatureInfo.setName.

Override the name property setter.

Parameters
name:String

The new name

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a string representation of this notification descriptor.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override