Package io.vertx.mutiny.ext.shell
Class ShellService
- java.lang.Object
-
- io.vertx.mutiny.ext.shell.ShellService
-
public class ShellService extends Object
The shell service, provides a remotely accessible shell available via Telnet or SSH according to theShellServiceOptions
configuration. The shell service will expose commands usingCommandResolver
on the classpath and the shared command registry for the Vert.x instance. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ShellService>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ShellService(io.vertx.ext.shell.ShellService delegate)
ShellService(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShellService
create(Vertx vertx)
static ShellService
create(Vertx vertx, io.vertx.ext.shell.ShellServiceOptions options)
boolean
equals(Object o)
io.vertx.ext.shell.ShellService
getDelegate()
int
hashCode()
static ShellService
newInstance(io.vertx.ext.shell.ShellService arg)
ShellServer
server()
io.smallrye.mutiny.Uni<Void>
start()
Start the shell service, this is an asynchronous start.Void
startAndAwait()
Blocking variant ofstart()
.void
startAndForget()
Variant ofstart()
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
stop()
Stop the shell service, this is an asynchronous start.Void
stopAndAwait()
Blocking variant ofstop()
.void
stopAndForget()
Variant ofstop()
that ignores the result of the operation.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ShellService> __TYPE_ARG
-
-
Constructor Detail
-
ShellService
public ShellService(io.vertx.ext.shell.ShellService delegate)
-
ShellService
public ShellService(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.shell.ShellService getDelegate()
-
create
public static ShellService create(Vertx vertx)
- Parameters:
vertx
-- Returns:
-
create
public static ShellService create(Vertx vertx, io.vertx.ext.shell.ShellServiceOptions options)
- Parameters:
vertx
- the Vert.x instanceoptions
- the service config options- Returns:
- the shell service
-
start
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> start()
Start the shell service, this is an asynchronous start.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
startAndAwait
public Void startAndAwait()
Blocking variant ofstart()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
startAndForget
public void startAndForget()
-
server
public ShellServer server()
- Returns:
- the shell server
-
stop
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> stop()
Stop the shell service, this is an asynchronous start.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
stopAndAwait
public Void stopAndAwait()
Blocking variant ofstop()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
stopAndForget
public void stopAndForget()
-
newInstance
public static ShellService newInstance(io.vertx.ext.shell.ShellService arg)
-
-