colossus.core

Server

object Server

Servers can be thought of as applications, as they provide Delegators and ConnectionHandlers which contain application logic. Servers are the objects that are directly interface with the Workers and provide them with the Delegators and Handlers. A Server will be "registered" with the Workers, and after a successful registration, it will then bind to the specified ports and be ready to accept incoming requests.

Also this includes all of the messages that Server will respond to. Some of these can cause actions, others are for when some internal event happens and the Server is notified.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Server
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class ConnectionClosed(id: Long, cause: RootDisconnectCause) extends Product with Serializable

  2. case class DelegatorBroadcast(message: Any) extends ServerCommand with Product with Serializable

  3. sealed trait ServerCommand extends AnyRef

  4. case class ServerInfo(openConnections: Int, status: ServerStatus) extends Product with Serializable

  5. case class Shutdown(killConnections: Boolean) extends ServerCommand with Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object GetInfo extends ServerCommand with Product with Serializable

  7. object GetStatus extends ServerCommand with Product with Serializable

  8. object Select extends Product with Serializable

  9. def apply(config: ServerConfig)(implicit io: IOSystem): ServerRef

    Create a server with the ServerConfig

    Create a server with the ServerConfig

    config

    Contains the desired configuration of this Server

    io

    The IOSystem to which this Server will belong

    returns

    ServerRef which encapsulates the created Server

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def basic(name: String, port: Int, acceptor: () ⇒ ConnectionHandler)(implicit io: IOSystem): ServerRef

    Create a Server with this name and port and use a Colossus provided delegator to invoke the ConnectionHandler factory function

    Create a Server with this name and port and use a Colossus provided delegator to invoke the ConnectionHandler factory function

    name

    Name of this Server

    port

    Port on which this Server will accept connections

    acceptor

    The factory function to generate ConnectionHandlers. This will run inside of a very simple Delegator.

    io

    The IOSystem to which this Server will belong

    returns

    ServerRef which encapsulates the created Server

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped