org.mc4j.ems.impl.jmx.connection.support.providers.proxy
Class JMXRemotingMBeanServerProxy

java.lang.Object
  extended by org.mc4j.ems.impl.jmx.connection.support.providers.proxy.JMXRemotingMBeanServerProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, StatsProxy

public class JMXRemotingMBeanServerProxy
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

Constructor Summary
JMXRemotingMBeanServerProxy(javax.management.MBeanServerConnection remoteServer)
          Creates a new instance of Proxy
 
Method Summary
 javax.management.MBeanServer buildServerProxy()
           
 long getFailures()
           
 long getRoundTrips()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXRemotingMBeanServerProxy

public JMXRemotingMBeanServerProxy(javax.management.MBeanServerConnection remoteServer)
Creates a new instance of Proxy

Method Detail

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