Examples of stop()


Examples of ratpack.server.RatpackServer.stop()

      }
    } catch (InterruptedException ignore) {
      // do nothing
    }

    server.stop();
  }

  protected Properties createProperties(@Nullable Path scriptFile) {
    Properties properties = LaunchConfigs.getDefaultPrefixedProperties();
View Full Code Here

Examples of remote.motecontrol.client.SimpleMoteManager.stop()

                ex.printStackTrace();
              }
            } else if (cmd.equals("start")) {
              moteManager.start(motes);
            } else if (cmd.equals("stop")) {
              moteManager.stop(motes);
            } else if (cmd.equals("reset")) {
              moteManager.reset(motes);
            }
          }
View Full Code Here

Examples of restx.common.metrics.api.Monitor.stop()

            out.println("UNEXPECTED SERVER ERROR:");
            out.print(ex.getMessage());
        } finally {
            try { restxRequest.closeContentStream(); } catch (Exception ex) { }
            try { restxResponse.close(); } catch (Exception ex) { }
            monitor.stop();
            stopwatch.stop();
            restxResponse.getLogLevel().log(logger, restxRequest, restxResponse, stopwatch);
            MDC.clear();
        }
    }
View Full Code Here

Examples of restx.server.WebServer.stop()

            HttpRequest httpRequest = HttpRequest.get(server.baseUrl() + "/api/message?who=xavier");

            assertThat(httpRequest.code()).isEqualTo(200);
            assertThat(httpRequest.body().trim()).isEqualTo("{\"message\":\"hello xavier, it's 14:33:18\"}");
        } finally {
            server.stop();
        }

    }
}
View Full Code Here

Examples of restx.server.simple.simple.SimpleWebServer.stop()

                // but autostartable should be reused
                assertThat(httpRequest.body().trim()).isEqualTo(
                        "called: 1 - autostartable: called: 2 started: 1 closed: 0 instanciated: 1" +
                                " serverId: "+server.getServerId()+" baseUrl: "+server.baseUrl()+" routerPresent: true");
            } finally {
                server.stop();
            }
        } finally {
            Factory.LocalMachines.threadLocal().clear();
        }
    }
View Full Code Here

Examples of restx.specs.RestxSpecRecorder.stop()

                    RestxSpecTape tape = restxSpecRecorder.record(restxRequest, restxResponse,
                            recordPath, restxRequest.getHeader("RestxRecordTitle"));
                    try {
                        router.route(tape.getRecordingRequest(), tape.getRecordingResponse());
                    } finally {
                        RestxSpecRecorder.RecordedSpec recordedSpec = restxSpecRecorder.stop(tape);

                        if (recordPath.isPresent()) {
                            if (recordedSpec.getSpec() == null) {
                                logger.warn("can't save spec, not properly recorded for {}", restxRequest);
                            } else {
View Full Code Here

Examples of rewards.internal.monitor.Monitor.stop()

    String name = createJoinPointTraceName(repositoryMethod);
    Monitor monitor = monitorFactory.start(name);
    try {
      return repositoryMethod.proceed();
    } finally {
      monitor.stop();
      logger.info(monitor);
    }
  }

  @Pointcut("execution(public * rewards.internal.*.*Repository+.*(..))")
 
View Full Code Here

Examples of rinde.sim.core.Simulator.stop()

    simulator.addTickListener(new TickListener() {
      @Override
      public void tick(TimeLapse time) {
        if (time.getStartTime() > endTime) {
          simulator.stop();
        } else if (rng.nextDouble() < .007) {
          simulator.register(new Customer(
              roadModel.getRandomPosition(rng), roadModel
                  .getRandomPosition(rng), SERVICE_DURATION, SERVICE_DURATION,
              1 + rng.nextInt(3)));
View Full Code Here

Examples of ro.isdc.wro.util.StopWatch.stop()

        } catch (Error e) {
            throw e;
        } catch (Throwable e) {
            throw new RuntimeException(e);
        } finally {
            stopWatch.stop();
            LOG.info(stopWatch.prettyPrint());
        }
    }

    static String findGeonetworkRootDirectory(String sourcesXmlFile) {
View Full Code Here

Examples of se.despotify.client.player.Player.stop()

        //To change body of implemented methods use File | Settings | File Templates.
      }
    });

    Thread.sleep(10000);
    player.stop();
    despotify.tearDown();

  }

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