};
MBeanServer server = MBeanServerFactory.createMBeanServer();
ObjectName name = new ObjectName("test:test=test");
Resource res = new Resource();
RequiredModelMBean rmm = new RequiredModelMBean();
rmm.setModelMBeanInfo(getManagementInterface());
rmm.setManagedResource(res, "ObjectReference");
server.registerMBean(rmm, name);
t.start();
while(myThread.isKeepRunning())
{
server.invoke(name, method, args, signature);
}
System.out.println("\nModel MBean Throughput: " +
res.getCount() / (PerformanceSUITE.THROUGHPUT_TIME / PerformanceSUITE.SECOND) +
" invocations per second.");
System.out.println("(Total: " + res.getCount() + ")\n");
}