Object

colossus.core

Server

Related Doc: package core

Permalink

object Server extends ServerDSL

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
ServerDSL, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Server
  2. ServerDSL
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

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

    Permalink
  2. case class ConnectionRefused(channel: SocketChannel, attempt: Int) extends Product with Serializable

    Permalink

    Sent from a worker to the server when the server is not registered with the worker.

    Sent from a worker to the server when the server is not registered with the worker.

    This generally happens when a worker has just been killed and restarted. See Server.MaxConnectionRegisterAttempts

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

    Permalink
  4. class MaxConnectionRegisterException extends Exception

    Permalink
  5. sealed trait ServerCommand extends AnyRef

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ConfigRoot: String

    Permalink
    Definition Classes
    ServerDSL
  5. object GetInfo extends ServerCommand with Product with Serializable

    Permalink
  6. val MaxConnectionRegisterAttempts: Int

    Permalink
  7. object Shutdown extends ServerCommand with Product with Serializable

    Permalink
  8. def apply(serverConfig: ServerConfig)(implicit io: IOSystem): ServerRef

    Permalink

    Create a server with the ServerConfig

    Create a server with the ServerConfig

    serverConfig

    Contains the desired configuration of this Server It is expected to be in the shape of the "colossus.server" reference configuration, and is primarily used to configure Server metrics.

    io

    The IOSystem to which this Server will belong

    returns

    ServerRef which encapsulates the created Server

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def basic(name: String, settings: ServerSettings)(handlerFactory: (ServerContext) ⇒ ServerConnectionHandler)(implicit io: IOSystem): ServerRef

    Permalink

    Create a new Server.

    Create a new Server.

    name

    Name of this Server.

    settings

    Settings for this Server.

    Definition Classes
    ServerDSL
  11. def basic(name: String, port: Int)(handlerFactory: (ServerContext) ⇒ ServerConnectionHandler)(implicit io: IOSystem): ServerRef

    Permalink

    Convenience function for starting a server using the specified name and port.

    Convenience function for starting a server using the specified name and port. This will be overlaid on top of the default colossus.server configuration path.

    name

    Name of this Server.

    port

    Port to run on

    Definition Classes
    ServerDSL
  12. def basic(name: String, serverConfig: Config = loadConfig)(handlerFactory: (ServerContext) ⇒ ServerConnectionHandler)(implicit io: IOSystem): ServerRef

    Permalink

    Create a new Server

    Create a new Server

    A Config object will be created via

    ConfigFactory.load()
    name

    Name of this Server

    serverConfig

    Config object in the shape of colossus.server

    Definition Classes
    ServerDSL
  13. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def shutdownCheckFrequency: FiniteDuration

    Permalink
  24. def start(name: String, settings: ServerSettings)(initializer: (WorkerRef) ⇒ Initializer)(implicit io: IOSystem): ServerRef

    Permalink

    Create a new Server.

    Create a new Server.

    name

    Name of this Server.

    settings

    Settings for this Server.

    Definition Classes
    ServerDSL
  25. def start(name: String, port: Int)(initializer: (WorkerRef) ⇒ Initializer)(implicit io: IOSystem): ServerRef

    Permalink

    Convenience function for starting a server using the specified name and port.

    Convenience function for starting a server using the specified name and port. This will be overlaid on top of the default "colossus.server" configuration path.

    name

    Name of this Server.

    port

    Port to run on

    Definition Classes
    ServerDSL
  26. def start(name: String, serverConfig: Config = loadConfig)(initializer: (WorkerRef) ⇒ Initializer)(implicit io: IOSystem): ServerRef

    Permalink

    Create a new Server

    Create a new Server

    A Config object will be created via

    ConfigFactory.load()
    name

    The name of this Server

    serverConfig

    Config object in the shape of colossus.server

    Definition Classes
    ServerDSL
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ServerDSL

Inherited from AnyRef

Inherited from Any

Ungrouped