Exemplo n.º 1
0
  @Override
  public void shutdown() {
    if (closed.compareAndSet(false, true)) {
      if (scheduler != null) {
        logger.debug("Shutting down the scheduler");
        scheduler.shutdown();
      }
      shellScope.closeAllResources();

      shellHttpClient.shutdown();

      console.println();
      console.println(MessagesProvider.getMessage(ShellSettings.BYE_MESSAGE));

      console.shutdown();
    }
  }
Exemplo n.º 2
0
 protected void registerClient(ShellNativeClient shellNativeClient) {
   shellScope.registerJavaObject("es", shellNativeClient);
   console.println(shellNativeClient.toString() + " available as es");
 }