org.mc4j.ems.impl.jmx.connection.support.providers.proxy
Class GenericMBeanServerProxy
java.lang.Object
org.mc4j.ems.impl.jmx.connection.support.providers.proxy.GenericMBeanServerProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, StatsProxy
public class GenericMBeanServerProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, StatsProxy
- Version:
- $Revision: 599 $($Author: ianpspringer $ / $Date: 2009-07-10 17:35:14 -0400 (Fri, 10 Jul 2009) $)
- Author:
- Greg Hinkle (ghinkle@users.sourceforge.net), January 2002, Ian Springer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericMBeanServerProxy
public GenericMBeanServerProxy(java.lang.Object remoteServer)
- Creates a new instance of Proxy
GenericMBeanServerProxy
public GenericMBeanServerProxy()
getProvider
public ConnectionProvider getProvider()
setProvider
public void setProvider(ConnectionProvider provider)
getRemoteServer
public java.lang.Object getRemoteServer()
setRemoteServer
public void setRemoteServer(java.lang.Object remoteServer)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
getRoundTrips
public long getRoundTrips()
- Specified by:
getRoundTrips in interface StatsProxy
- Returns:
- the count of server calls made by this proxied connection
getFailures
public long getFailures()
- Specified by:
getFailures in interface StatsProxy
- Returns:
- the count of server calls that threw an exception
buildServerProxy
public javax.management.MBeanServer buildServerProxy()
- Specified by:
buildServerProxy in interface StatsProxy
- Returns:
- a newly built dynamic proxy that will manage the connection