org.mc4j.ems.impl.jmx.connection.support.providers.proxy
Class JSR77ManagementMBeanServerProxy
java.lang.Object
org.mc4j.ems.impl.jmx.connection.support.providers.proxy.JSR77ManagementMBeanServerProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, StatsProxy
public class JSR77ManagementMBeanServerProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, StatsProxy
- Version:
- $Revision: 570 $($Author: ghinkl $ / $Date: 2006-04-12 15:14:16 -0400 (Wed, 12 Apr 2006) $)
- Author:
- Greg Hinkle (ghinkle@users.sourceforge.net), January 2002
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSR77ManagementMBeanServerProxy
public JSR77ManagementMBeanServerProxy(Management mejb)
- Creates a new instance of Proxy
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
buildServerProxy
public javax.management.MBeanServer buildServerProxy()
- Specified by:
buildServerProxy in interface StatsProxy
- Returns:
- a newly built dynamic proxy that will manage the connection
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