/** * Like {@link #create(Vertx, ShellServiceOptions)}, with default options. */ static ShellService create(Vertx vertx) { return create(vertx, new ShellServiceOptions()); }
/** * Start the shell service, this is an asynchronous start. * @param startHandler handler for getting notified when service is started */ public void start(Handler<AsyncResult<Void>> startHandler) { delegate.start(startHandler); }
/** * Stop the shell service, this is an asynchronous stop. */ public void stop() { delegate.stop(); }
/** * @return the shell server */ public io.vertx.rxjava.ext.shell.ShellServer server() { io.vertx.rxjava.ext.shell.ShellServer ret = io.vertx.rxjava.ext.shell.ShellServer.newInstance(delegate.server()); return ret; }
/** * Like {@link io.vertx.rxjava.ext.shell.ShellService#create}, with default options. * @param vertx * @return */ public static io.vertx.rxjava.ext.shell.ShellService create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.shell.ShellService ret = io.vertx.rxjava.ext.shell.ShellService.newInstance(io.vertx.ext.shell.ShellService.create(vertx.getDelegate())); return ret; }
/** * Start the shell service, this is an asynchronous start. * * @param startHandler handler for getting notified when service is started */ void start(Handler<AsyncResult<Void>> startHandler);
/** * Stop the shell service, this is an asynchronous stop. */ default void stop() { stop(ar -> { }); }
/** * @return the shell server */ public io.vertx.rxjava.ext.shell.ShellServer server() { io.vertx.rxjava.ext.shell.ShellServer ret = io.vertx.rxjava.ext.shell.ShellServer.newInstance(delegate.server()); return ret; }
@Override public void start(Future<Void> startFuture) throws Exception { ShellService service = ShellService.create(vertx, new ShellServiceOptions(). setHttpOptions( new HttpTermOptions(). setHost("localhost"). setPort(8080). setAuthOptions(new ShiroAuthOptions(). setConfig(new JsonObject().put("properties_path", "auth.properties"))))); service.start(ar -> { if (ar.succeeded()) { startFuture.succeeded(); } else { startFuture.fail(ar.cause()); } }); } }
/** * Create a new shell service. * @param vertx the Vert.x instance * @param options the service config options * @return the shell service */ public static io.vertx.rxjava.ext.shell.ShellService create(io.vertx.rxjava.core.Vertx vertx, ShellServiceOptions options) { io.vertx.rxjava.ext.shell.ShellService ret = io.vertx.rxjava.ext.shell.ShellService.newInstance(io.vertx.ext.shell.ShellService.create(vertx.getDelegate(), options)); return ret; }
/** * Start the shell service, this is an asynchronous start. * @param startHandler handler for getting notified when service is started */ public void start(Handler<AsyncResult<Void>> startHandler) { delegate.start(startHandler); }
/** * Stop the shell service, this is an asynchronous stop. */ public void stop() { delegate.stop(); }
@Override public void start(Future<Void> startFuture) throws Exception { ShellService service = ShellService.create(vertx, new ShellServiceOptions(). setSSHOptions( new SSHTermOptions(). setHost("localhost"). setPort(3000). setKeyPairOptions(new JksOptions(). setPath("keystore.jks"). setPassword("wibble")). setAuthOptions(new ShiroAuthOptions(). setConfig(new JsonObject().put("properties_path", "auth.properties"))))); service.start(ar -> { if (ar.succeeded()) { startFuture.succeeded(); } else { startFuture.fail(ar.cause()); } }); } }
/** * Like {@link io.vertx.rxjava.ext.shell.ShellService#create}, with default options. * @param vertx * @return */ public static io.vertx.rxjava.ext.shell.ShellService create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.shell.ShellService ret = io.vertx.rxjava.ext.shell.ShellService.newInstance(io.vertx.ext.shell.ShellService.create(vertx.getDelegate())); return ret; }
/** * Start the shell service, this is an asynchronous start. */ public void start() { delegate.start(); }
/** * Stop the shell service, this is an asynchronous start. * @param stopHandler handler for getting notified when service is stopped */ public void stop(Handler<AsyncResult<Void>> stopHandler) { delegate.stop(stopHandler); }
/** * Create a new shell service. * @param vertx the Vert.x instance * @param options the service config options * @return the shell service */ public static io.vertx.rxjava.ext.shell.ShellService create(io.vertx.rxjava.core.Vertx vertx, ShellServiceOptions options) { io.vertx.rxjava.ext.shell.ShellService ret = io.vertx.rxjava.ext.shell.ShellService.newInstance(io.vertx.ext.shell.ShellService.create(vertx.getDelegate(), options)); return ret; }
/** * Start the shell service, this is an asynchronous start. */ public void start() { delegate.start(); }