Examples of stop()


Examples of com.google.common.util.concurrent.Service.stop()

      service.start();

      Assert.assertTrue(runLatch.await(2, TimeUnit.SECONDS));
      Assert.assertFalse(stopLatch.await(2, TimeUnit.SECONDS));

      service.stop();

      Assert.assertTrue(stopLatch.await(2, TimeUnit.SECONDS));

    } finally {
      zkServer.stopAndWait();
View Full Code Here

Examples of com.google.dart.engine.utilities.general.TimeCounter.TimeCounterHandle.stop()

          typeProvider,
          new InheritanceManager(libraryElement));
      unit.accept(errorVerifier);
      errors = errorListener.getErrorsForSource(source);
    } finally {
      timeCounter.stop();
    }
  }
}
View Full Code Here

Examples of com.google.gerrit.extensions.events.LifecycleListener.stop()

    handles.clear();

    for (int i = startedIndex; 0 <= i; i--) {
      LifecycleListener obj = listeners.get(i).get();
      try {
        obj.stop();
      } catch (Throwable err) {
        LoggerFactory.getLogger(obj.getClass()).warn("Failed to stop", err);
      }
      startedIndex = i - 1;
    }
View Full Code Here

Examples of com.google.gwt.core.ext.ServletContainer.stop()

    System.out.println("Refreshing deployment...");
    container.refresh();
    System.out.println("Deployment refreshed");
   
    System.out.println("Stopping container...");
    container.stop();
   
    Field f = container.getClass().getDeclaredField("jbossProcess");
    f.setAccessible(true);
    ((Process) f.get(container)).waitFor();
   
View Full Code Here

Examples of com.google.gwt.query.client.GQuery.stop()

    // Call stop
    Timer timerMidTime = new Timer() {
      public void run() {
        sectA.stop();
        sectB.stop(true, true);
        sectC.stop(false, false);

        Double o  = Double.valueOf(sectA.css("opacity"));
        sectA.data("opacityA", o);
        assertTrue(
            "'sectA' opacity must be in the interval 0.5-1 but is: " + o,
View Full Code Here

Examples of com.google.inject.persist.PersistService.stop()

   
    ArticlesOAM oam1 = injector.getInstance(ArticlesOAM.class);
    ArticlesOAM oam2 = injector.getInstance(ArticlesOAM.class);
    assertNotSame(oam1, oam2);
   
    service.stop();
  }
 
  private class Module1 extends AbstractModule{

    @Override
View Full Code Here

Examples of com.google_voltpatches.common.base.Stopwatch.stop()

          stopwatch = Stopwatch.createStarted();
          startupTimers.put(service, stopwatch);
        }
        if (to.compareTo(RUNNING) >= 0 && stopwatch.isRunning()) {
          // N.B. if we miss the STARTING event then we may never record a startup time.
          stopwatch.stop();
          if (!(service instanceof NoOpService)) {
            logger.log(Level.FINE, "Started {0} in {1}.", new Object[] {service, stopwatch});
          }
        }
        // Queue our listeners
View Full Code Here

Examples of com.googlecode.flaxcrawler.CrawlerController.stop()

        // Starting and joining our crawler
        crawlerController.start();
        System.out.println(new Date() + "Waiting for 60 seconds");
        crawlerController.join(60000);
        System.out.println(new Date() + "Stopping crawler");
        crawlerController.stop();
    }

    /**
     * Custom crawler. Extends {@link DefaultCrawler}.
     */
 
View Full Code Here

Examples of com.googlecode.javacv.OpenCVFrameGrabber.stop()

          if (detector.Detect(currFrame)) {
            /*
             * hand over control of webcam to the record video
             * method to capture the frames for the 30 second movie
             */
            grabber.stop();
            recordVideo();
            // take control back of the webcam
            grabber.start();
            warmup(grabber);
            IplImage newbackground = grabber.grab();
View Full Code Here

Examples of com.hmsonline.storm.cassandra.client.AstyanaxClient.stop()

        map = client.lookup(tupleMapper, tuple, slice);
        assertNotNull(map.get("foo"));
        assertNotNull(map.get("bar"));
        assertNotNull(map.get("key1"));
       
        client.stop();

    }
   
    @Test
    @SuppressWarnings({ "rawtypes", "unchecked" })
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.