org.jboss.mx.remoting
Class MBeanServerClientInvokerProxy

java.lang.Object
  extended byorg.jboss.mx.remoting.MBeanServerClientInvokerProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

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

MBeanServerClientInvokerProxy is an MBeanServer dynamic proxy that will forward all MBeanServer requests to a remote MBeanServer via a RemoteClientInvoker.


Method Summary
static MBeanServer (src) create(InvokerLocator (src)  locator, java.lang.String localJmxId, java.lang.String jmxId)
           
 void deliverNotifications(NotificationQueue (src)  queue, boolean async)
           
 void destroy()
          called to destroy the proxy and the invoker
static MBeanServerClientInvokerProxy (src) get(java.lang.String id)
          get a proxy for a given JMX Id
 InvokerLocator (src) getLocator()
          return the invoker locator
 java.lang.String[] getMethodSignature(java.lang.reflect.Method method)
           
 java.lang.String getServerId()
          return the remote JMX id
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
static MBeanServerClientInvokerProxy (src) remove(java.lang.String id)
          remove the proxy for a given JMX id
protected  void setupPollingTimer()
          setup the polling based on the pollinterval locator attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

remove

public static MBeanServerClientInvokerProxy (src)  remove(java.lang.String id)
remove the proxy for a given JMX id

Parameters:
id -
Returns:

get

public static MBeanServerClientInvokerProxy (src)  get(java.lang.String id)
get a proxy for a given JMX Id

Parameters:
id -
Returns:

setupPollingTimer

protected void setupPollingTimer()
setup the polling based on the pollinterval locator attribute.

For example, to set the pollinterval to every 2.5 seconds, you would configure the client invoker locator to be:

      soap://192.168.10.1/pollinterval=2500
 
The default interval if not specified is 1000, for every 1 second. You can disable polling by setting the interval to <=0.


getServerId

public java.lang.String getServerId()
return the remote JMX id

Returns:

getLocator

public InvokerLocator (src)  getLocator()
return the invoker locator

Returns:

create

public static MBeanServer (src)  create(InvokerLocator (src)  locator,
                                 java.lang.String localJmxId,
                                 java.lang.String jmxId)
                          throws java.lang.Exception
Throws:
java.lang.Exception

destroy

public void destroy()
called to destroy the proxy and the invoker


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

deliverNotifications

public void deliverNotifications(NotificationQueue (src)  queue,
                                 boolean async)
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

getMethodSignature

public java.lang.String[] getMethodSignature(java.lang.reflect.Method method)