wt.jmx.core.mbeans
Interface NotificationHandlerManagerMBean

All Superinterfaces:
SelfEmailingMBean

public interface NotificationHandlerManagerMBean
extends SelfEmailingMBean

Provides management of e-mail notification MBeans

Supported API: true

Extendable: true


Method Summary
 ObjectName addNotificationHandler(String handlerName, ObjectName targetMBeanObjectName)
          Add a NotificationHandler MBean and returns its ObjectName

Supported API: true
 ObjectName addNotificationHandler(String handlerName, ObjectName targetMBeanObjectName, boolean addIfNotExists)
          Add a NotificationHandler MBean and returns its ObjectName

Supported API: true
 String[] getNotificationHandlerNames()
          Names of NotificationHandler MBeans registered with this manager

Supported API: true
 void removeNotificationHandler(String handlerName)
          Remove the NotificationHandler MBean with the given name

Supported API: true
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Method Detail

getNotificationHandlerNames

String[] getNotificationHandlerNames()
Names of NotificationHandler MBeans registered with this manager

Supported API: true


addNotificationHandler

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 unique
targetMBeanObjectName - 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:
InstanceNotFoundException
InstanceAlreadyExistsException
IllegalArgumentException

addNotificationHandler

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 unique
targetMBeanObjectName - ObjectName (or ObjectName pattern) of MBean(s) to listen to for notifications
addIfNotExists - Whether to produce a notification handler or produce an exception when no MBean matching the specified 'targetMBeanObjectName' parameter is found
Throws:
InstanceNotFoundException
InstanceAlreadyExistsException
IllegalArgumentException

removeNotificationHandler

void removeNotificationHandler(String handlerName)
Remove the NotificationHandler MBean with the given name

Supported API: true

Parameters:
handlerName - Name of new NotificationHandler