Packages

class ShellServer extends AnyRef

The shell server.

A shell server is associated with a collection of : the io.vertx.scala.ext.shell.ShellServer#registerTermServer method registers a term server. Term servers life cycle are managed by this server.

When a receives an incoming connection, a instance is created and associated with this connection.

The io.vertx.scala.ext.shell.ShellServer#createShell method can be used to create instance for testing purposes.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShellServer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ShellServer(_asJava: AnyRef)

Value Members

  1. def asJava: AnyRef
  2. def close(completionHandler: Handler[AsyncResult[Unit]]): Unit

    Close the shell server, this is an asynchronous close.

    Close the shell server, this is an asynchronous close. * @param completionHandler handler for getting notified when service is stopped

  3. def close(): Unit

    Close the shell server, this is an asynchronous close.

  4. def closeFuture(): Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  5. def createShell(): Shell

    Create a new shell, the returned shell should be closed explicitely.

    Create a new shell, the returned shell should be closed explicitely. * @return the created shell

  6. def createShell(term: Term): Shell

    Create a new shell, the returned shell should be closed explicitely.

    Create a new shell, the returned shell should be closed explicitely. * @param term the shell associated terminal

    returns

    the created shell

  7. def listen(listenHandler: Handler[AsyncResult[Unit]]): ShellServer

    Start the shell service, this is an asynchronous start.

    Start the shell service, this is an asynchronous start. * @param listenHandler handler for getting notified when service is started

  8. def listen(): ShellServer

    Start the shell service, this is an asynchronous start.

  9. def listenFuture(): Future[Unit]

    Like listen but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  10. def registerCommandResolver(resolver: CommandResolver): ShellServer

    Register a command resolver for this server.

    Register a command resolver for this server. * @param resolver the resolver

    returns

    a reference to this, so the API can be used fluently

  11. def registerTermServer(termServer: TermServer): ShellServer

    Register a term server to this shell server, the term server lifecycle methods are managed by this shell server.

    Register a term server to this shell server, the term server lifecycle methods are managed by this shell server. * @param termServer the term server to add

    returns

    a reference to this, so the API can be used fluently

  12. def shellHandler(shellHandler: Handler[Shell]): Unit

    Called when a new shell is created.

    Called when a new shell is created. Can be used to prepopulate the shell session with objects or set the prompt. * @param shellHandler handler for getting notified when the server creates a new shell.