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");
}