public abstract class AbstractEmitterBean
extends javax.management.StandardMBean
implements javax.management.NotificationEmitter
Modifier | Constructor and Description |
---|---|
protected |
AbstractEmitterBean(java.lang.Class<T> mbeanInterface)
Constructs a AbstractEmitterBean
|
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(javax.management.NotificationListener notif,
javax.management.NotificationFilter filter,
java.lang.Object callBack) |
void |
dispose()
Dispose of this SampledCacheManager and clean up held resources
|
protected abstract void |
doDispose()
Dispose callback of subclasses
|
abstract javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
void |
removeNotificationListener(javax.management.NotificationListener listener) |
void |
removeNotificationListener(javax.management.NotificationListener notif,
javax.management.NotificationFilter filter,
java.lang.Object callBack) |
void |
sendNotification(java.lang.String eventType)
Sends notification of an event
|
void |
sendNotification(java.lang.String eventType,
java.lang.Object data)
Sends notification of an event
|
void |
sendNotification(java.lang.String eventType,
java.lang.Object data,
java.lang.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(java.lang.Class<T> mbeanInterface) throws javax.management.NotCompliantMBeanException
T
- Not used as far as I can seembeanInterface
- The MBean contractjavax.management.NotCompliantMBeanException
- thrown from JMX super ctorpublic void sendNotification(java.lang.String eventType)
eventType
- The type of eventpublic void sendNotification(java.lang.String eventType, java.lang.Object data)
eventType
- The type of eventdata
- The event datapublic void sendNotification(java.lang.String eventType, java.lang.Object data, java.lang.String msg)
eventType
- The type of eventdata
- The event datamsg
- A messagepublic final void dispose()
protected abstract void doDispose()
public void addNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)
addNotificationListener
in interface javax.management.NotificationBroadcaster
public abstract javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
javax.management.ListenerNotFoundException
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.