Examples of waitForStop()


Examples of com.linkedin.r2.transport.http.server.HttpServer.waitForStop()

      @Override
      public void waitForStop()
          throws InterruptedException
      {
        server.waitForStop();
      }
    };
  }
}
View Full Code Here

Examples of org.apache.felix.framework.Felix.waitForStop()

        invokeRun(runner, felix.getBundleContext());

        try {
            felix.stop();
            felix.waitForStop(5000);
            // Delete felix-cache
            File cache = new File(m_targetDir.getAbsolutePath() + "/felix-cache");
            cache.delete();
        } catch (Exception e) {
            getLog().error(e);
View Full Code Here

Examples of org.apache.felix.framework.Felix.waitForStop()

        Object runner = waitForRunnerService(felix.getBundleContext());
        invokeRun(runner, felix.getBundleContext());
               
        try {
            felix.stop();
            felix.waitForStop(5000);
            // Delete felix-cache
            File cache = new File(m_targetDir.getAbsolutePath() + "/felix-cache");
            cache.delete();
        } catch (Exception e) {
            getLog().error(e);
View Full Code Here

Examples of org.apache.felix.framework.Felix.waitForStop()

        invokeRun(runner, felix.getBundleContext());

        try {
            felix.stop();
            felix.waitForStop(5000);
            // Delete felix-cache
            File cache = new File(m_targetDir.getAbsolutePath() + "/felix-cache");
            cache.delete();
        } catch (Exception e) {
            getLog().error(e);
View Full Code Here

Examples of org.apache.felix.framework.Felix.waitForStop()

            if (myFelix != null) {
                logger.log(Logger.LOG_INFO, "Shutting down Sling");
                try {

                    myFelix.stop();
                    myFelix.waitForStop(0);

                } catch (BundleException be) {

                    // may be thrown by stop, log but continue
                    logger.log(Logger.LOG_ERROR,
View Full Code Here

Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy.waitForStop()

        }
        else {
            log.info("Stopping Geronimo server...");
           
            server.shutdown();
            server.waitForStop();
            server.closeConnection();

            //
            // TODO: Verify its down?
            //
View Full Code Here

Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy.waitForStop()

        }
        else {
            log.info("Stopping Geronimo server...");
           
            server.shutdown();
            server.waitForStop();
            server.closeConnection();

            //
            // TODO: Verify its down?
            //
View Full Code Here

Examples of org.gradle.process.internal.WorkerProcess.waitForStop()

        AntlrWorkerClient clientCallBack = new AntlrWorkerClient();
        process.getConnection().addIncoming(AntlrWorkerClientProtocol.class, clientCallBack);
        process.getConnection().connect();

        process.waitForStop();

        return clientCallBack.getResult();
    }

    private WorkerProcess createWorkerProcess(File workingDir, Factory<WorkerProcessBuilder> workerFactory, FileCollection antlrClasspath, AntlrSpec spec) {
View Full Code Here

Examples of org.osgi.framework.launch.Framework.waitForStop()

            if (myFramework != null) {
                logger.log(Logger.LOG_INFO, "Shutting down Apache Sling");
                try {

                    myFramework.stop();
                    myFramework.waitForStop(0);

                } catch (BundleException be) {

                    // may be thrown by stop, log but continue
                    logger.log(Logger.LOG_ERROR,
View Full Code Here

Examples of org.osgi.framework.launch.Framework.waitForStop()

      CompositeBundle composite = (CompositeBundle) allBundles[i];
      try {
        Framework child = composite.getCompositeFramework();
        child.stop();
        // need to wait for each child to stop
        child.waitForStop(30000);
        // TODO need to figure out a way to invalid the child
      } catch (Throwable t) {
        // TODO consider logging
        t.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.