Package test.performance.invocationhandler.support

Examples of test.performance.invocationhandler.support.Standard


      Attribute arg3 = new Attribute("attribute", "value");

      MBeanServer server = MBeanServerFactory.createMBeanServer();
      ObjectName name = new ObjectName("test:test=test");

      Standard test = new Standard();
      server.registerMBean(test, name);
      StandardMBean proxy = (StandardMBean) MBeanServerInvocationHandler.newProxyInstance(
         server, name, StandardMBean.class, false);
     
      t.start();
      while(myThread.isKeepRunning())
      {
         proxy.mixedArguments(arg0, arg1, arg2, arg3);
      }

         System.out.println("\nMBeanServerInvocationHandler Throughput: " +
                             test.getCount() / (PerformanceSUITE.THROUGHPUT_TIME / PerformanceSUITE.SECOND) +
                            " invocations per second.");
         System.out.println("(Total: " + test.getCount() + ")\n");
   }
View Full Code Here

TOP

Related Classes of test.performance.invocationhandler.support.Standard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.