cz.cuni.amis.introspection.jmx
Class DynamicProxy

Package class diagram package DynamicProxy
java.lang.Object
  extended by 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

Field Summary
protected  ObjectName objectName
          Name of the wrapped object.
 
Constructor Summary
DynamicProxy(ObjectName objectName, MBeanServerConnection mbsc)
          Create proxy for DynamicMBean registered under the objectName on mbsc server.
 
Method Summary
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 MBeanServerConnection getMBeanServerConnection()
           
 ObjectName getObjectName()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 Object invokeNoException(String actionName, Object[] params, String[] signature)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectName

protected ObjectName objectName
Name of the wrapped object.

Constructor Detail

DynamicProxy

public DynamicProxy(ObjectName objectName,
                    MBeanServerConnection mbsc)
Create proxy for DynamicMBean registered under the objectName on mbsc server.

Parameters:
objectName - the name of proxied object
mbsc - connection to server where the MBean is registered
Method Detail

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.