org.ow2.petals.component.framework.mbean
Class RuntimeConfigurationNotifier
java.lang.Object
org.ow2.petals.component.framework.mbean.RuntimeConfigurationNotifier
- All Implemented Interfaces:
- javax.management.DynamicMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter
public class RuntimeConfigurationNotifier
- extends java.lang.Object
- implements javax.management.DynamicMBean, javax.management.NotificationEmitter
A runtime configuration MBean which sends notifications to subscribers. It is
used to change configuration values at runtime.
- Since:
- 3.0
- Author:
- chamerling - EBM WebSourcing
|
Constructor Summary |
RuntimeConfigurationNotifier(org.ow2.petals.component.framework.jbidescriptor.generated.Jbi jbiComponentConfiguration,
java.io.File jbiComponentFile,
java.util.logging.Logger logger)
|
|
Method Summary |
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
java.lang.Object |
getAttribute(java.lang.String attribute)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes)
|
protected javax.management.MBeanAttributeInfo[] |
getAttributesInfos()
Dynamically get attributes for the MBean. |
javax.management.MBeanInfo |
getMBeanInfo()
|
javax.management.ObjectName |
getMBeanName()
Get the MBean Name |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
|
void |
removeNotificationListener(javax.management.NotificationListener listener)
|
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
setAttribute(javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList list)
|
void |
setMBeanName(javax.management.ObjectName mbeanName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeConfigurationNotifier
public RuntimeConfigurationNotifier(org.ow2.petals.component.framework.jbidescriptor.generated.Jbi jbiComponentConfiguration,
java.io.File jbiComponentFile,
java.util.logging.Logger logger)
- Parameters:
workspaceRoot - properties -
- Throws:
javax.jbi.JBIException
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
getAttribute in interface javax.management.DynamicMBean
- Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
getAttributes
public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
- Specified by:
getAttributes in interface javax.management.DynamicMBean
setAttribute
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
setAttribute in interface javax.management.DynamicMBean
- Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
setAttributes
public javax.management.AttributeList setAttributes(javax.management.AttributeList list)
- Specified by:
setAttributes in interface javax.management.DynamicMBean
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo in interface javax.management.DynamicMBean
invoke
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
invoke in interface javax.management.DynamicMBean
- Throws:
javax.management.MBeanException
javax.management.ReflectionException
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster
addNotificationListener
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
- Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
- Throws:
javax.management.ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
- Throws:
javax.management.ListenerNotFoundException
getMBeanName
public javax.management.ObjectName getMBeanName()
- Get the MBean Name
- Returns:
setMBeanName
public void setMBeanName(javax.management.ObjectName mbeanName)
- Parameters:
mbeanName -
getAttributesInfos
protected javax.management.MBeanAttributeInfo[] getAttributesInfos()
- Dynamically get attributes for the MBean. The attributes are the ones
from the properties file.
- Returns:
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.