Examples of stopServer()


Examples of com.alibaba.wasp.fserver.AdminProtocol.stopServer()

    AdminProtocol admin = this.connection.getAdmin(hostname, port);
    StopServerRequest request = RequestConverter
        .buildStopServerRequest("Called by admin client "
            + this.connection.toString());
    try {
      admin.stopServer(null, request);
    } catch (ServiceException se) {
      throw ProtobufUtil.getRemoteException(se);
    }
  }
View Full Code Here

Examples of com.cyrusinnovation.stubble.server.StubbleClient.stopServer()

     */
    private int port;

    public void execute() throws MojoExecutionException {
        StubbleClient client = new StubbleClient(port);
        client.stopServer();
    }
}
View Full Code Here

Examples of com.neophob.sematrix.osc.server.impl.OscServer.stopServer()

    Assert.assertEquals(param, lastMsgHandler.getArgs()[0]);

    OscClientFactory.disconnectOscClient();
    Thread.sleep(100);

    srv1.stopServer();

    //recreate a new server on a new port, test osc client
    srv1 = OscServerFactory.createServer(this, 8889, 4096);
    srv1.startServer();
   
View Full Code Here

Examples of com.neophob.sematrix.osc.server.impl.OscServer.stopServer()

    OscClientFactory.sendOscMessage("127.0.0.1", 8889, msg);
    Thread.sleep(100);
    Assert.assertEquals(msgName3, lastMsgHandler.getOscPattern());
    Assert.assertEquals(param, lastMsgHandler.getArgs()[0]);

    srv1.stopServer();
  }

  @Override
  public void handleOscMessage(OscMessage msg) {
    System.out.println(msg);
View Full Code Here

Examples of com.twitter.ambrose.hive.reporter.EmbeddedAmbroseHiveProgressReporter.stopServer()

      LOG.info("Script failed but sleeping for " + sleepTimeSeconds
          + " seconds to keep the HiveStats REST server running. Hit ctrl-c to exit.");

      Thread.sleep(sleepTimeSeconds * 1000L);
      reporter.stopServer();

    }
    catch (NumberFormatException e) {
      LOG.warn(POST_SCRIPT_SLEEP_SECS_PARAM + " param is not a valid number, not sleeping: "
          + sleepTime);
View Full Code Here

Examples of com.twitter.ambrose.hive.reporter.EmbeddedAmbroseHiveProgressReporter.stopServer()

      int sleepTimeSeconds = Integer.parseInt(sleepTime);

      LOG.info("Script complete but sleeping for " + sleepTimeSeconds
          + " seconds to keep the HiveStats REST server running. Hit ctrl-c to exit.");
      Thread.sleep(sleepTimeSeconds * 1000L);
      reporter.stopServer();

    }
    catch (NumberFormatException e) {
      LOG.warn(POST_SCRIPT_SLEEP_SECS_PARAM + " param is not a valid number, not sleeping: "
          + sleepTime);
View Full Code Here

Examples of eu.mosaic_cloud.tools.classpath_exporter.ClasspathExporter.stopServer()

      @Override
      public final void run ()
      {
        logger.debug ("stopping exporter...");
        try {
          exporter.stopServer ();
        } catch (final Throwable exception) {
          exceptions.trace (ExceptionResolution.Ignored, exception);
          logger.error ("failed stopping exporter; ignoring!", exception);
        }
        logger.debug ("sopping appender...");
View Full Code Here

Examples of net.minecraft.server.MinecraftServer.stopServer()

    }.start();
    minecraftServer.saveEverything(); // Save first
    Log.info("Saved, now attempting to stop the server and disconnect players cleanly");
    try {
      minecraftServer.getConfigurationManager().disconnectAllPlayers("The server has frozen and must now restart.");
      minecraftServer.stopServer();
      FMLCommonHandler.instance().handleServerStopping(); // Try to get mods to save data - this may lock up, as we deadlocked.
    } catch (Throwable throwable) {
      Log.severe("Error stopping server", throwable);
    }
    minecraftServer.saveEverything(); // Save again, in case they changed anything.
View Full Code Here

Examples of org.apache.cxf.endpoint.ServerLifeCycleListener.stopServer()

        LocatorRegistrar locatorRegistrar = new LocatorRegistrar();
        locatorRegistrar.setServiceLocator(sl);

        locatorRegistrar.registerServer(SERVER_1, bus1);
        ServerLifeCycleListener listener = slclCapture.getValue();
        listener.stopServer(SERVER_1);

        verifyAll();
    }

    @Test
View Full Code Here

Examples of org.apache.geronimo.testsuite.common.ui.ServerTasks.stopServer()

            selenium.waitForPageToLoad( "2000" );
            selenium.type("j_username", "system");
            selenium.type("j_password", "manager");
            selenium.click("submit");

            serverTasks.stopServer();

            // remove the server
            serverTasks.removeServer();

            selenium.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.