Package wt.jmx.core.mbeans
Interface NotificationHandlerManagerMBean
- All Superinterfaces:
SelfEmailingMBean
Provides management of e-mail notification MBeans
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionaddNotificationHandler(String handlerName, ObjectName targetMBeanObjectName) Add a NotificationHandler MBean and returns its ObjectName
Supported API: trueaddNotificationHandler(String handlerName, ObjectName targetMBeanObjectName, boolean addIfNotExists) Add a NotificationHandler MBean and returns its ObjectName
Supported API: trueString[]Names of NotificationHandler MBeans registered with this manager
Supported API: truevoidremoveNotificationHandler(String handlerName) Remove the NotificationHandler MBean with the given name
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getNotificationHandlerNames
String[] getNotificationHandlerNames()Names of NotificationHandler MBeans registered with this manager
Supported API: true -
addNotificationHandler
@MBeanOperationImpact(1) ObjectName addNotificationHandler(String handlerName, ObjectName targetMBeanObjectName) throws InstanceNotFoundException, InstanceAlreadyExistsException, IllegalArgumentException Add a NotificationHandler MBean and returns its ObjectName
Supported API: true- Parameters:
handlerName- Name of new NotificationHandler, must be uniquetargetMBeanObjectName- ObjectName (or ObjectName pattern) of MBean(s) to listen to for notifications; handler is only created if at least one matching MBean is found, else an exception is thrown- Throws:
InstanceNotFoundExceptionInstanceAlreadyExistsExceptionIllegalArgumentException
-
addNotificationHandler
@MBeanOperationImpact(1) ObjectName addNotificationHandler(String handlerName, ObjectName targetMBeanObjectName, boolean addIfNotExists) throws InstanceNotFoundException, InstanceAlreadyExistsException, IllegalArgumentException Add a NotificationHandler MBean and returns its ObjectName
Supported API: true- Parameters:
handlerName- Name of new NotificationHandler, must be uniquetargetMBeanObjectName- ObjectName (or ObjectName pattern) of MBean(s) to listen to for notificationsaddIfNotExists- Whether to produce a notification handler or produce an exception when no MBean matching the specified 'targetMBeanObjectName' parameter is found- Throws:
InstanceNotFoundExceptionInstanceAlreadyExistsExceptionIllegalArgumentException
-
removeNotificationHandler
Remove the NotificationHandler MBean with the given name
Supported API: true- Parameters:
handlerName- Name of new NotificationHandler
-