org.jboss.mx.remoting
Class MBeanServerClientInvokerProxy

java.lang.Object
  extended by org.jboss.mx.remoting.MBeanServerClientInvokerProxy
All Implemented Interfaces:
InvocationHandler

public class MBeanServerClientInvokerProxy
extends Object
implements InvocationHandler

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

Version:
$Revision: 81023 $
Author:
Jeff Haynie

Method Summary
static MBeanServer create(org.jboss.remoting.InvokerLocator locator, String localJmxId, String jmxId)
           
 void deliverNotifications(NotificationQueue queue, boolean async)
           
 void destroy()
          called to destroy the proxy and the invoker
static MBeanServerClientInvokerProxy get(String id)
          get a proxy for a given JMX Id
 org.jboss.remoting.InvokerLocator getLocator()
          return the invoker locator
 String[] getMethodSignature(Method method)
           
 String getServerId()
          return the remote JMX id
 Object invoke(Object proxy, Method method, Object[] args)
           
static MBeanServerClientInvokerProxy remove(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 remove(String id)
remove the proxy for a given JMX id

Parameters:
id -
Returns:

get

public static MBeanServerClientInvokerProxy get(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 String getServerId()
return the remote JMX id

Returns:

getLocator

public org.jboss.remoting.InvokerLocator getLocator()
return the invoker locator

Returns:

create

public static MBeanServer create(org.jboss.remoting.InvokerLocator locator,
                                 String localJmxId,
                                 String jmxId)
                          throws Exception
Throws:
Exception

destroy

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


invoke

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

deliverNotifications

public void deliverNotifications(NotificationQueue queue,
                                 boolean async)
                          throws InterruptedException
Throws:
InterruptedException

getMethodSignature

public String[] getMethodSignature(Method method)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.