public abstract class AbstractEmitterBean extends StandardMBean implements NotificationEmitter
Modifier | Constructor and Description |
---|---|
protected |
AbstractEmitterBean(Class<T> mbeanInterface)
Constructs a AbstractEmitterBean
|
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener notif,
NotificationFilter filter,
Object callBack) |
void |
dispose()
Dispose of this SampledCacheManager and clean up held resources
|
protected abstract void |
doDispose()
Dispose callback of subclasses
|
abstract MBeanNotificationInfo[] |
getNotificationInfo() |
void |
removeNotificationListener(NotificationListener listener) |
void |
removeNotificationListener(NotificationListener notif,
NotificationFilter filter,
Object callBack) |
void |
sendNotification(String eventType)
Sends notification of an event
|
void |
sendNotification(String eventType,
Object data)
Sends notification of an event
|
void |
sendNotification(String eventType,
Object data,
String msg)
Sends notification of an event
|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
protected AbstractEmitterBean(Class<T> mbeanInterface) throws NotCompliantMBeanException
T
- Not used as far as I can seembeanInterface
- The MBean contractNotCompliantMBeanException
- thrown from JMX super ctorpublic void sendNotification(String eventType)
eventType
- The type of eventpublic void sendNotification(String eventType, Object data)
eventType
- The type of eventdata
- The event datapublic void sendNotification(String eventType, Object data, String msg)
eventType
- The type of eventdata
- The event datamsg
- A messagepublic final void dispose()
protected abstract void doDispose()
public void addNotificationListener(NotificationListener notif, NotificationFilter filter, Object callBack)
addNotificationListener
in interface NotificationBroadcaster
public abstract MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public void removeNotificationListener(NotificationListener notif, NotificationFilter filter, Object callBack) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.