public abstract class BaseEmitterBean extends StandardMBean implements NotificationEmitter
Modifier and Type | Field and Description |
---|---|
protected org.hibernate.cache.ehcache.management.impl.BaseEmitterBean.Emitter |
emitter
emitter
|
protected AtomicLong |
sequenceNumber
sequenceNumber
|
Modifier | Constructor and Description |
---|---|
protected |
BaseEmitterBean(Class<T> mbeanInterface)
BaseEmitterBean
|
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)
sendNotification
|
void |
sendNotification(String eventType,
Object data)
sendNotification
|
void |
sendNotification(String eventType,
Object data,
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 org.hibernate.cache.ehcache.management.impl.BaseEmitterBean.Emitter emitter
protected final AtomicLong sequenceNumber
protected BaseEmitterBean(Class<T> mbeanInterface) throws NotCompliantMBeanException
T
- mbeanInterface
- NotCompliantMBeanException
public void sendNotification(String eventType)
eventType
- public void sendNotification(String eventType, Object data)
eventType
- data
- public void sendNotification(String eventType, Object data, String msg)
eventType
- data
- msg
- public final void dispose()
protected abstract void doDispose()
public void addNotificationListener(NotificationListener notif, NotificationFilter filter, Object callBack)
public abstract MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
NotificationBroadcaster.getNotificationInfo()
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
public void removeNotificationListener(NotificationListener notif, NotificationFilter filter, Object callBack) throws ListenerNotFoundException
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.