cz.cuni.amis.introspection.jmx
Class DynamicProxy
java.lang.Object
cz.cuni.amis.introspection.jmx.DynamicProxy
- All Implemented Interfaces:
- DynamicMBean
public class DynamicProxy
- extends Object
- implements DynamicMBean
Proxy object of remote DynamicMBean exposing this object through the same interface.
- Author:
- Ik
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objectName
protected ObjectName objectName
- Name of the wrapped object.
DynamicProxy
public DynamicProxy(ObjectName objectName,
MBeanServerConnection mbsc)
- Create proxy for DynamicMBean registered under the objectName on mbsc server.
- Parameters:
objectName - the name of proxied objectmbsc - connection to server where the MBean is registered
getAttribute
public Object getAttribute(String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute in interface DynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute in interface DynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributes in interface DynamicMBean
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes in interface DynamicMBean
invoke
public Object invoke(String actionName,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
- Specified by:
invoke in interface DynamicMBean
- Throws:
MBeanException
ReflectionException
invokeNoException
public Object invokeNoException(String actionName,
Object[] params,
String[] signature)
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo in interface DynamicMBean
getMBeanServerConnection
public MBeanServerConnection getMBeanServerConnection()
- Returns:
- connection to server where the MBean is registered
getObjectName
public ObjectName getObjectName()
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.