@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(); } }
protected void registerClient(ShellNativeClient shellNativeClient) { shellScope.registerJavaObject("es", shellNativeClient); console.println(shellNativeClient.toString() + " available as es"); }