Examples of Standard


Examples of org.apache.derbyTesting.system.oe.direct.Standard

       
    }
   
    protected void setUp() throws Exception
    {
        ops = new Standard(getConnection());
        rand = Submitter.getRuntimeRandom(getConnection());
    }
View Full Code Here

Examples of org.jboss.test.jbossmx.performance.standard.support.Standard

         ObjectName name = new ObjectName(":performanceTest=standard");
         String method = "methodInvocation";
         long start = 0, end = 0;
         float avg = 0l;

         server.registerMBean(new Standard(), name);

         // drop the first batch (+1)
         for (int testIterations = 0; testIterations < REPEAT_COUNT + 1; ++testIterations)
         {
            start = System.currentTimeMillis();
View Full Code Here

Examples of org.jboss.test.jbossmx.performance.standard.support.Standard

         ObjectName name = new ObjectName("Domain:performanceTest=standard");
         String method = "methodInvocation";
         long start = 0, end = 0;
         float avg = 0l;

         server.registerMBean(new Standard(), name);

         // drop the first batch (+1)
         for (int testIterations = 0; testIterations < REPEAT_COUNT + 1; ++testIterations)
         {
            start = System.currentTimeMillis();
View Full Code Here

Examples of org.jboss.test.jbossmx.performance.standard.support.Standard

         log.debug(ITERATION_COUNT + " Invocations, Repeat: x" + REPEAT_COUNT);
         log.debug("(this may take a while...)\n");

         MBeanServer server = MBeanServerFactory.createMBeanServer();
         ObjectName name = new ObjectName("Domain:performanceTest=standard");
         Standard mbean = new Standard();
         String method = "counter";
         long start = 0, end = 0;
         float avg = 0l;

         server.registerMBean(mbean, name);

         // drop the first batch (+1)
         for (int testIterations = 0; testIterations < REPEAT_COUNT + 1; ++testIterations)
         {
            start = System.currentTimeMillis();
            for (int invocationIterations = 0; invocationIterations < ITERATION_COUNT; ++invocationIterations)
            {
               server.invoke(name, method, null, null);
            }
            end = System.currentTimeMillis();

            if (testIterations != 0)
            {
               long time = end - start;
               System.out.print( time + " ");
               avg += time;
            }
         }

         log.debug("\nAverage: " + (avg/REPEAT_COUNT));

         assertTrue(mbean.getCount() == (REPEAT_COUNT + 1)*ITERATION_COUNT);
      }
      catch (Throwable t)
      {
         log.debug("failed", t);
         fail("Unexpected error: " + t.toString());
View Full Code Here

Examples of org.jboss.test.jbossmx.performance.standard.support.Standard

         log.debug(ITERATION_COUNT + " Invocations, Repeat: x" + REPEAT_COUNT);
         log.debug("(this may take a while...)\n");

         MBeanServer server = MBeanServerFactory.createMBeanServer();
         ObjectName name    = new ObjectName("Domain:performanceTest=standard");
         Standard mbean     = new Standard();
        
         String method      = "mixedArguments";
         String[] signature = new String[] {
                                 Integer.class.getName(),
                                 int.class.getName(),
View Full Code Here

Examples of org.olap4j.Axis.Standard

  public QueryAxis getAxis(String name) throws SaikuOlapException {
    if ("UNUSED".equals(name)) {
      return getUnusedAxis();
    }
    Standard standardAxis = Standard.valueOf(name);
    if (standardAxis == null) {
      throw new SaikuOlapException("Axis (" + name + ") not found for query (" + query.getName() + ")");
    }

    Axis queryAxis = Axis.Factory.forOrdinal(standardAxis.axisOrdinal());
    return query.getAxis(queryAxis);
  }
View Full Code Here

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

Examples of test.performance.registration.support.Standard

   */
  public static Test suite()
  {
    TestSuite suite = new TestSuite("Registation Performance tests");

    suite.addTest(new RegistrationTEST("testIt", new Standard(), "test:test=test", "Standard"));

    return suite;
  }
View Full Code Here

Examples of test.performance.registration.support.Standard

   */
  public static Test suite()
  {
    TestSuite suite = new TestSuite("Registation Performance tests");

    suite.addTest(new RegistrationTEST("testIt", new Standard(), "test:test=test", "Standard"));

    return suite;
  }
View Full Code Here

Examples of test.performance.serialize.support.Standard

      try
      {
         server = MBeanServerFactory.createMBeanServer();
         ObjectName name = new ObjectName("a:a=a");
         ObjectInstance instance = server.registerMBean(new Standard(), name);
         // Speed Tests
         suite.addTest(new SerializeTEST("testIt", instance, "ObjectInstance"));
      }
      catch (Exception e)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.