Package com.sun.enterprise.management.support

Examples of com.sun.enterprise.management.support.TestDummyMBean


  testNotificationPerformance()
      throws JMException, IOException
  {
      final ObjectName    objectName  = createTestDummy( "testNotificationPerformance" );
     
      final TestDummyMBean  test  = newProxy( objectName, TestDummyMBean.class );
     
      final int   ITER    = 10;
      final int   COUNT   = 1024 * 1024;
     
      for( int iter = 0; iter < ITER; ++iter )
      {
          final long elapsed  =
              test.emitNotifications( "NotificationPerformanceTest.test", COUNT );
         
          final float rate    = (elapsed == 0) ? (float)0.0 : (1000 * ((float)COUNT / (float)elapsed));
          final String rateString = (elapsed == 0) ? "N/A" : "" + (int)rate;
         
          System.out.println( "Millis to emit " + COUNT + " Notifications: " + elapsed +
View Full Code Here

TOP

Related Classes of com.sun.enterprise.management.support.TestDummyMBean

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.