Package io.vertx.mutiny.ext.shell
Class ShellService
java.lang.Object
io.vertx.mutiny.ext.shell.ShellService
- All Implemented Interfaces:
MutinyDelegate
The shell service, provides a remotely accessible shell available via Telnet or SSH according to the
ShellServiceOptions
configuration.
The shell service will expose commands using CommandResolver
on the classpath and
the shared command registry for the Vert.x instance.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShellService
(io.vertx.ext.shell.ShellService delegate) ShellService
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellService
static ShellService
boolean
io.vertx.ext.shell.ShellService
int
hashCode()
static ShellService
newInstance
(io.vertx.ext.shell.ShellService arg) server()
io.smallrye.mutiny.Uni<Void>
start()
Start the shell service, this is an asynchronous start.Blocking variant ofstart()
.void
Variant ofstart()
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
stop()
Stop the shell service, this is an asynchronous start.Blocking variant ofstop()
.void
Variant ofstop()
that ignores the result of the operation.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ShellService
public ShellService(io.vertx.ext.shell.ShellService delegate) -
ShellService
-
-
Method Details
-
getDelegate
public io.vertx.ext.shell.ShellService getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
vertx
-- Returns:
-
create
- Parameters:
vertx
- the Vert.x instanceoptions
- the service config options- Returns:
- the shell service
-
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
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
- Returns:
- the shell server
-
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
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
-