public class NotificationServiceMBeanImpl extends NotificationBroadcasterSupport implements NotificationListener, DynamicMBean, Serializable, NotificationService
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentContext |
environmentContext
Jbi Environment context.
|
| Constructor and Description |
|---|
NotificationServiceMBeanImpl(EnvironmentContext anEnvContext)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationEventListener(EventNotificationListener listener)
Add a notification listener
|
Object |
getAttribute(String attribute)
Retrieve an attribute
|
AttributeList |
getAttributes(String[] attributes)
Get an attribute list
|
String |
getDescription() |
protected ObjectName |
getFrameworkDomainNotificationMBean()
Get the Framework Notification MBean
|
MBeanInfo |
getMBeanInfo()
Get the MBean Info
|
String |
getName() |
void |
handleNotification(Notification notification,
Object handback)
Handles event notifications from the runtime and sends to remote clients
|
Object |
invoke(String actionName,
Object[] params,
String[] signature)
Invoke an operation
|
protected void |
registerForLocalNotifications()
Register for notifications from the framework MBean
|
void |
removeNotificationEventListener(EventNotificationListener listener)
Remove a notification listener
|
void |
setAttribute(Attribute attribute)
Set an attribute value
|
AttributeList |
setAttributes(AttributeList attributes)
Set a list of attribute values
|
void |
setDescription(String description) |
void |
setName(String name) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationprotected EnvironmentContext environmentContext
public NotificationServiceMBeanImpl(EnvironmentContext anEnvContext)
public void handleNotification(Notification notification, Object handback)
handleNotification in interface NotificationListenera - notificationa - handbackNotificationListener.handleNotification(javax.management.Notification, java.lang.Object)public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanthe - attribute nameAttributeNotFoundExceptionMBeanExceptionReflectionExceptionDynamicMBean.getAttribute(java.lang.String)public AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanthe - list of attribute namesDynamicMBean.getAttributes(java.lang.String[])public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanDynamicMBean.getMBeanInfo()public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanoperationName - object - parametersparam - signaturesMBeanExceptionReflectionExceptionDynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[])public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanthe - attribute to setAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionDynamicMBean.setAttribute(javax.management.Attribute)public AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanthe - list of attributes to setDynamicMBean.setAttributes(javax.management.AttributeList)public String getName()
public void setName(String name)
name - the name to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic void addNotificationEventListener(EventNotificationListener listener) throws ManagementRemoteException
addNotificationEventListener in interface NotificationServiceevent - notification listener objectManagementRemoteExceptionNotificationService.addNotificationEventListener(com.sun.esb.management.api.notification.EventNotificationListener)public void removeNotificationEventListener(EventNotificationListener listener) throws ManagementRemoteException
removeNotificationEventListener in interface NotificationServiceevent - notification listener objectManagementRemoteExceptionNotificationService.removeNotificationEventListener(com.sun.esb.management.api.notification.EventNotificationListener)protected ObjectName getFrameworkDomainNotificationMBean()
protected void registerForLocalNotifications()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.