public class InstanceConfiguration extends RuntimeConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,Object> |
mOverridenAttributes
The overriden attributes
|
mCategory, mListeners, mPlatformCtx, mTarget, sMsgBuilder, sNotificationInfo, sTypeMapADMIN_RUNNING_FILE, ADMIN_STOPPED_FILE, CONFIG_NAME_KEY, LOG_LEVEL_DEFAULT, TMP_FOLDER| Constructor and Description |
|---|
InstanceConfiguration(ModelMBeanInfo mbeanInfo,
ConfigurationCategory category)
Creates a new InstanceConfiguration MBean.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOverride(String attrName)
This operation is called when a configuration attribute is to use the
global configuration, the overriden attribute needs to be deleted from the
target configiration
|
void |
setAttribute(Attribute attribute)
Set the value of a specific attribute of the Dynamic MBean.
|
addNotificationListener, checkIsValidAttribute, createMBeanInfo, getAttribute, getAttributeInfo, getAttributes, getEnvironmentContext, getListeners, getLogger, getManagementContext, getMatchingAttribute, getNotificationInfo, getPlatformContext, getRegistry, getTranslator, invoke, isPassword, notifyListenersOfAttributeChange, persist, persistDomainConfig, removeNotificationListener, removeNotificationListener, setAttributesaddAttributeChangeNotificationListener, getClassLoaderRepository, getMBeanInfo, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setManagedResource, setModelMBeanInfo, storeprotected ConcurrentHashMap<String,Object> mOverridenAttributes
public InstanceConfiguration(ModelMBeanInfo mbeanInfo, ConfigurationCategory category) throws Exception
mbeanInfo - metadata returned by the 'real' MBean in the
target instance.Exceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeansetAttribute in class RequiredModelMBeanattribute - The identification of the attribute to
be set and the value it is to be set to.AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanException - Wraps a java.lang.Exception
thrown by the MBean's setter.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the MBean's setter.RuntimeConfiguration.getAttribute(java.lang.String)public void deleteOverride(String attrName) throws Exception
deleteOverride in class RuntimeConfigurationattrName - - attribute to be deletedExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.