Package org.apache.commons.lang.time

Examples of org.apache.commons.lang.time.StopWatch.reset()


            throw new ArchivaException(
                "Unable to initialize the Redback Security Environment, " + "no Environment Check components found." );
        }

        StopWatch stopWatch = new StopWatch();
        stopWatch.reset();
        stopWatch.start();

        List<String> violations = new ArrayList<String>();

        for ( Entry<String, EnvironmentCheck> entry : checkers.entrySet() )
View Full Code Here


      timerTest(util, timer, count, size, codec, compressor, false);
    }
    timer.stop();
    LOG.info("Codec=" + codec + ", compression=" + compressor + ", sized=" + false +
        ", count=" + count + ", size=" + size + ", + took=" + timer.getTime() + "ms");
    timer.reset();
    timer.start();
    for (int i = 0; i < cycles; i++) {
      timerTest(util, timer, count, size, codec, compressor, true);
    }
    timer.stop();
View Full Code Here

    Get get = null;
    Scan scan = null;
    ResultScanner rs = null;
    StopWatch stopWatch = new StopWatch();
    for (HColumnDescriptor column : tableDesc.getColumnFamilies()) {
      stopWatch.reset();
      startKey = region.getStartKey();
      // Can't do a get on empty start row so do a Scan of first element if any instead.
      if (startKey.length > 0) {
        get = new Get(startKey);
        get.addFamily(column.getName());
View Full Code Here

            }
            stopWatch.stop();

            System.out.println("JSON serialize:" + stopWatch.getTime());

            stopWatch.reset();
            stopWatch.start();
            for (int i = 0; i < TIMES; ++i) {
                javaSerialize(q);
            }
            stopWatch.stop();
View Full Code Here

            }
            stopWatch.stop();

            System.out.println("JSON serialize:" + stopWatch.getTime());

            stopWatch.reset();
            stopWatch.start();
            for (int i = 0; i < TIMES; ++i) {
                javaSerialize(obj);
            }
            stopWatch.stop();
View Full Code Here

            }
            stopWatch.stop();

            System.out.println("JSON deserialize:" + stopWatch.getTime());

            stopWatch.reset();

            stopWatch.start();
            for (int i = 0; i < TIMES; ++i) {
                Object o = javaDeserialize(javaBytes);
                o.getClass();
View Full Code Here

      byte[] startKey = null;
      Scan scan = null;
      StopWatch stopWatch = new StopWatch();
      // monitor one region on every region server
      for (Map.Entry<String, List<HRegionInfo>> entry : rsAndRMap.entrySet()) {
        stopWatch.reset();
        serverName = entry.getKey();
        // always get the first region
        region = entry.getValue().get(0);
        try {
          tableName = region.getTable();
View Full Code Here

            courriel, nationalite, username, password);

        watch.stop();

        log.info("Create personne - " + i + " : " + watch.getTime());
        watch.reset();
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
View Full Code Here

        facCtrl.inscrire(cart, personne);

        watch.stop();

        log.info("Create inscription - " + i + " : " + watch.getTime());
        watch.reset();
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
View Full Code Here

      timerTest(util, timer, count, size, codec, compressor, false);
    }
    timer.stop();
    LOG.info("Codec=" + codec + ", compression=" + compressor + ", sized=" + false +
        ", count=" + count + ", size=" + size + ", + took=" + timer.getTime() + "ms");
    timer.reset();
    timer.start();
    for (int i = 0; i < cycles; i++) {
      timerTest(util, timer, count, size, codec, compressor, true);
    }
    timer.stop();
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.