Package org.apache.commons.lang.time

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


    ObjectArrayList<KeyValue> newKeys = this.keys == null ?
      new ObjectArrayList<KeyValue>() :
      new ObjectArrayList<KeyValue>(this.keys.size());

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

    InternalScanner scanner = region.getScanner(new Scan());
    boolean moreRows;
    int id = 0;
    do {
View Full Code Here


            public ExecutionResult call() throws Exception {
                Thread.currentThread().setName("HealthCheck " + metadata.getTitle());
                LOG.debug("Starting check {}", metadata);

                final StopWatch stopWatch = new StopWatch();
                stopWatch.start();
                Result resultFromHealthCheck = null;
                ExecutionResult executionResult = null;

                final HealthCheck healthCheck = (HealthCheck) bundleContext.getService(metadata.getServiceReference());
View Full Code Here

    /**
     * Execute a set of health checks
     */
    private List<HealthCheckExecutionResult> execute(final ServiceReference[] healthCheckReferences) {
        final StopWatch stopWatch = new StopWatch();
        stopWatch.start();

        final List<HealthCheckExecutionResult> results = new ArrayList<HealthCheckExecutionResult>();
        final List<HealthCheckMetadata> healthCheckDescriptors = getHealthCheckMetadata(healthCheckReferences);

       
View Full Code Here

    /**
     * Wait for the futures until the timeout is reached
     */
    private void waitForFuturesRespectingTimeout(final List<HealthCheckFuture> futuresForResultOfThisCall) {
        final StopWatch callExcutionTimeStopWatch = new StopWatch();
        callExcutionTimeStopWatch.start();
        boolean allFuturesDone;
        do {
            try {
                Thread.sleep(50);
            } catch (final InterruptedException ie) {
View Full Code Here

 
  @Override
  public void setKnownSites(Collection<VectorXYZ> siteVectors) {
   
    StopWatch stopWatch = new StopWatch();
    stopWatch.start();
   
    sites = new ArrayList<SiteWithPolynomial>(siteVectors.size());
   
    siteGrid = new IntersectionGrid<SiteWithPolynomial>(
        new AxisAlignedBoundingBoxXZ(siteVectors).pad(CELL_SIZE/2),
View Full Code Here

      siteGrid.insert(s);
    }
   
    System.out.println("  time grid: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
    /* approximate a polynomial at each site */

    Map<SiteWithPolynomial, List<SiteWithPolynomial>> nearestSiteMap
      = new HashMap<SiteWithPolynomial, List<SiteWithPolynomial>>();
View Full Code Here

     
    }
   
    System.out.println("  time nearest sites: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();

    calculatePolynomials:
    for (SiteWithPolynomial site : sites) {
     
      List<SiteWithPolynomial> nearestSites =
View Full Code Here

     
    }

    System.out.println("  time polyonmials: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
  }
 
  @Override
  public VectorXYZ interpolateEle(VectorXZ pos) {
View Full Code Here

        : new ZeroInterpolator();
   
    /* provide known elevations from eleData to the interpolator */
   
    StopWatch stopWatch = new StopWatch();
    stopWatch.start();
       
    if (!(interpolator instanceof ZeroInterpolator)) {
   
      Collection<VectorXYZ> sites = emptyList();
     
View Full Code Here

             
        sites = eleData.getSites(mapData);
       
        System.out.println("time getSites: " + stopWatch);
        stopWatch.reset();
        stopWatch.start();
       
      } catch (IOException e) {
        e.printStackTrace();
      }
     
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.