org.ow2.orchestra.util
Class MBeanInvocationHandler

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

public class MBeanInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

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

Field Summary
static int CONNECTION_TIMEOUT
           
 
Constructor Summary
MBeanInvocationHandler(java.lang.String jmxServiceUrl, java.lang.String jmxObjectName)
           
 
Method Summary
 void closeJmxc()
           
 javax.management.remote.JMXConnector getJmxc()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.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(java.lang.String jmxServiceUrl,
                              java.lang.String jmxObjectName)
                       throws java.net.MalformedURLException,
                              javax.management.MalformedObjectNameException
Throws:
java.net.MalformedURLException
javax.management.MalformedObjectNameException
Method Detail

getJmxc

public javax.management.remote.JMXConnector getJmxc()
                                             throws java.io.IOException
Returns:
the jmxc
Throws:
java.io.IOException

closeJmxc

public void closeJmxc()
               throws java.io.IOException
Throws:
java.io.IOException

invoke

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.