public class JMXNotifier extends AbstractActiveChangeListener implements JMXNotifierMBean, NotificationEmitter
Modifier and Type | Class and Description |
---|---|
protected class |
JMXNotifier.NotificationDetails
This class provides a container for the listener details.
|
Constructor and Description |
---|
JMXNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener l,
NotificationFilter filter,
Object handback) |
protected String |
getDescription(Object value)
This method returns the description associated with the
supplied value.
|
String |
getDescriptionScript()
This method gets the description script for the JMX MBean.
|
String |
getInsertType()
This method gets the insert type for the JMX MBean.
|
protected String |
getInsertType(Object value)
This method returns the type associated with the value.
|
String |
getInsertTypeScript()
This method gets the insert type script for the JMX MBean.
|
MBeanNotificationInfo[] |
getNotificationInfo() |
String |
getObjectName()
This method gets the object name for the JMX MBean.
|
String |
getRemoveType()
This method gets the remove type for the JMX MBean.
|
protected String |
getRemoveType(Object value)
This method returns the type associated with the value.
|
String |
getRemoveTypeScript()
This method gets the remove type script for the JMX MBean.
|
String |
getUpdateType()
This method gets the update type for the JMX MBean.
|
protected String |
getUpdateType(Object value)
This method returns the type associated with the value.
|
String |
getUpdateTypeScript()
This method gets the update type script for the JMX MBean.
|
void |
inserted(Object key,
Object value)
This method notifies the listener that an object has been
inserted.
|
protected void |
preInit()
This method pre-initializes the active change listener
in situations where it needs to be initialized before
registration with the collection.
|
void |
removed(Object key,
Object value)
This method notifies the listener that an object has been
inserted.
|
void |
removeNotificationListener(NotificationListener l) |
void |
removeNotificationListener(NotificationListener l,
NotificationFilter filter,
Object handback) |
void |
setDescriptionScript(String script)
This method sets the description script for the JMX MBean.
|
void |
setInsertType(String type)
This method sets the insert type for the JMX MBean.
|
void |
setInsertTypeScript(String script)
This method sets the insert type script for the JMX MBean.
|
void |
setObjectName(String name)
This method sets the object name for the JMX MBean.
|
void |
setRemoveType(String type)
This method sets the remove type for the JMX MBean.
|
void |
setRemoveTypeScript(String script)
This method sets the remove type script for the JMX MBean.
|
void |
setUpdateType(String type)
This method sets the update type for the JMX MBean.
|
void |
setUpdateTypeScript(String script)
This method sets the update type script for the JMX MBean.
|
void |
updated(Object key,
Object value)
This method notifies the listener that an object has been
inserted.
|
close, init
public void setObjectName(String name)
name
- The object namepublic String getObjectName()
getObjectName
in interface JMXNotifierMBean
public void setDescriptionScript(String script)
script
- The description scriptpublic String getDescriptionScript()
public void setInsertType(String type)
type
- The insert typepublic String getInsertType()
public void setInsertTypeScript(String script)
script
- The insert type scriptpublic String getInsertTypeScript()
public void setUpdateType(String type)
type
- The update typepublic String getUpdateType()
public void setUpdateTypeScript(String script)
script
- The update type scriptpublic String getUpdateTypeScript()
public void setRemoveType(String type)
type
- The remove typepublic String getRemoveType()
public void setRemoveTypeScript(String script)
script
- The remove type scriptpublic String getRemoveTypeScript()
protected void preInit() throws Exception
preInit
in class AbstractActiveChangeListener
Exception
- Failed to pre-initializeprotected String getDescription(Object value)
value
- The valueprotected String getInsertType(Object value)
value
- The valuepublic void inserted(Object key, Object value)
inserted
in interface ActiveChangeListener
key
- The key, which for a list will be an indexvalue
- The valueprotected String getUpdateType(Object value)
value
- The valuepublic void updated(Object key, Object value)
updated
in interface ActiveChangeListener
key
- The key, which for a list will be an indexvalue
- The valueprotected String getRemoveType(Object value)
value
- The valuepublic void removed(Object key, Object value)
removed
in interface ActiveChangeListener
key
- The key, which for a list will be an indexvalue
- The valuepublic void addNotificationListener(NotificationListener l, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
IllegalArgumentException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener l) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public void removeNotificationListener(NotificationListener l, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.