Package org.jboss.test.perf.interfaces

Examples of org.jboss.test.perf.interfaces.Entity


      Object obj = getInitialContext().lookup(ENTITY);
      obj = PortableRemoteObject.narrow(obj, EntityHome.class);
      EntityHome home = (EntityHome) obj;
      getLog().debug("Found EntityHome @ jndiName=Entity");
      EntityPK key = new EntityPK(0);
      Entity bean = null;

      getLog().debug("Running with " + iterationCount + " instances...");
      findByPrimaryKey(key, home);
   }
View Full Code Here


      Object obj = getInitialContext().lookup(ENTITY2);
      obj = PortableRemoteObject.narrow(obj, Entity2Home.class);
      Entity2Home home = (Entity2Home) obj;
      getLog().debug("Found EntityHome @ jndiName=Entity");
      Entity2PK key = new Entity2PK(0, "String0", new Double(0));
      Entity bean = null;

      getLog().debug("Running with " + iterationCount + " instances...");
      findByPrimaryKey(key, home);
   }
View Full Code Here

   {
      getLog().debug("Starting "+iterationCount+" findByPrimaryKey(key="+key+") invocations");
      long start = System.currentTimeMillis();
      for(int n = 0; n < iterationCount; n ++)
      {
         Entity bean = home.findByPrimaryKey(key);
      }
      long end = System.currentTimeMillis();
      long elapsed = end - start;
      getLog().debug(iterationCount+" findByPrimaryKey() invocations = "+elapsed+" ms, "+(elapsed / iterationCount)+" ms/findByPrimaryKey");
   }
View Full Code Here

   {
      getLog().debug("Starting "+iterationCount+" findByPrimaryKey(key="+key+") invocations");
      long start = System.currentTimeMillis();
      for(int n = 0; n < iterationCount; n ++)
      {
         Entity bean = home.findByPrimaryKey(key);
      }
      long end = System.currentTimeMillis();
      long elapsed = end - start;
      getLog().debug(iterationCount+" findByPrimaryKey() invocations = "+elapsed+" ms, "+(elapsed / iterationCount)+" ms/findByPrimaryKey");
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.perf.interfaces.Entity

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.