org.ow2.orchestra.util
Class MBeanInvocationHandler

java.lang.Object
  extended by org.ow2.orchestra.util.MBeanInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class MBeanInvocationHandler
extends Object
implements InvocationHandler

Author:
Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras

Field Summary
static int CONNECTION_TIMEOUT
           
 
Constructor Summary
MBeanInvocationHandler(String jmxServiceUrl, String jmxObjectName)
           
 
Method Summary
 void closeJmxc()
           
 JMXConnector getJmxc()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_TIMEOUT

public static final int CONNECTION_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

MBeanInvocationHandler

public MBeanInvocationHandler(String jmxServiceUrl,
                              String jmxObjectName)
                       throws MalformedURLException,
                              MalformedObjectNameException
Throws:
MalformedURLException
MalformedObjectNameException
Method Detail

getJmxc

public JMXConnector getJmxc()
                     throws IOException
Returns:
the jmxc
Throws:
IOException

closeJmxc

public void closeJmxc()
               throws IOException
Throws:
IOException

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2012 OW2 Consortium. All Rights Reserved.