public abstract class BaseEmitterBean
extends javax.management.StandardMBean
implements javax.management.NotificationEmitter
Modifier and Type | Class and Description |
---|---|
private class |
BaseEmitterBean.Emitter |
Modifier and Type | Field and Description |
---|---|
protected BaseEmitterBean.Emitter |
emitter
emitter
|
private java.util.List<javax.management.NotificationListener> |
notificationListeners |
protected java.util.concurrent.atomic.AtomicLong |
sequenceNumber
sequenceNumber
|
Modifier | Constructor and Description |
---|---|
protected |
BaseEmitterBean(java.lang.Class<T> mbeanInterface)
BaseEmitterBean
|
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() |
private void |
removeAllNotificationListeners()
remove all added notification listeners
|
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)
sendNotification
|
void |
sendNotification(java.lang.String eventType,
java.lang.Object data)
sendNotification
|
void |
sendNotification(java.lang.String eventType,
java.lang.Object data,
java.lang.String msg)
sendNotification
|
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 final BaseEmitterBean.Emitter emitter
protected final java.util.concurrent.atomic.AtomicLong sequenceNumber
private final java.util.List<javax.management.NotificationListener> notificationListeners
protected BaseEmitterBean(java.lang.Class<T> mbeanInterface) throws javax.management.NotCompliantMBeanException
T
- mbeanInterface
- javax.management.NotCompliantMBeanException
public void sendNotification(java.lang.String eventType)
eventType
- public void sendNotification(java.lang.String eventType, java.lang.Object data)
eventType
- data
- public void sendNotification(java.lang.String eventType, java.lang.Object data, java.lang.String msg)
eventType
- data
- msg
- public 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
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener,
javax.management.NotificationFilter, java.lang.Object)
private void removeAllNotificationListeners()
public abstract javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
NotificationBroadcaster.getNotificationInfo()
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
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
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener,
javax.management.NotificationFilter, java.lang.Object)