public class DynamicReadableWrapper extends AbstractDynamicWrapper implements DynamicMBeanWithInstance
Module
in a
DynamicMBeanWithInstance
. Setting attributes is disabled.attributeHolderMap, internalServer, module, moduleIdentifier, objectNameInternal
Constructor and Description |
---|
DynamicReadableWrapper(Module module,
AutoCloseable instance,
ModuleIdentifier moduleIdentifier,
MBeanServer internalServer,
MBeanServer configMBeanServer) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attributeName) |
AutoCloseable |
getInstance()
Gets 'live object' associated with current config object.
|
Module |
getModule()
Get original module that is wrapped with this instance.
|
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
equals, fixObjectName, getAttributes, getEmptyOperations, getMBeanInfo, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAttributes, getMBeanInfo
public DynamicReadableWrapper(Module module, AutoCloseable instance, ModuleIdentifier moduleIdentifier, MBeanServer internalServer, MBeanServer configMBeanServer)
public Module getModule()
DynamicMBeanWithInstance
getModule
in interface DynamicMBeanWithInstance
public AutoCloseable getInstance()
DynamicMBeanWithInstance
Module
instances.getInstance
in interface DynamicMBeanWithInstance
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
invoke
in class AbstractDynamicWrapper
MBeanException
ReflectionException
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
getAttribute
in class AbstractDynamicWrapper
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
Copyright © 2019 OpenDaylight. All rights reserved.