interface ShellServer
The shell server. A shell server is associated with a collection of TermServer: the #registerTermServer(TermServer) method registers a term server. Term servers life cycle are managed by this server. When a TermServer receives an incoming connection, a JobController instance is created and associated with this connection. The #createShell() method can be used to create JobController instance for testing purposes.
Author
Julien Viet
open fun close(): Unitabstract fun close(completionHandler: Handler<AsyncResult<Void>>): Unit
Close the shell server, this is an asynchronous close. |
|
open static fun create(vertx: Vertx, options: ShellServerOptions): ShellServer
Create a new shell server with default options. open static fun create(vertx: Vertx): ShellServer
Create a new shell server with specific options. |
|
abstract fun createShell(term: Term): Shellabstract fun createShell(): Shell
Create a new shell, the returned shell should be closed explicitely. |
|
open fun listen(): ShellServerabstract fun listen(listenHandler: Handler<AsyncResult<Void>>): ShellServer
Start the shell service, this is an asynchronous start. |
|
abstract fun registerCommandResolver(resolver: CommandResolver): ShellServer
Register a command resolver for this server. |
|
abstract fun registerTermServer(termServer: TermServer): ShellServer
Register a term server to this shell server, the term server lifecycle methods are managed by this shell server. |