colossus

core

package core

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AliveState extends ConnectionState

  2. class BasicCoreHandler extends CoreHandler with ServerConnectionHandler

  3. abstract class BasicSyncHandler extends WorkerItem with ConnectionHandler

    Convenience implementation of ConnectionHandler which provides implementations for all of the necessary functions.

  4. trait ChannelActions extends AnyRef

    This trait abstracts actions performed on a raw socket channel.

  5. abstract class ClientConnection extends Connection

  6. trait ClientConnectionHandler extends WorkerItem with ConnectionHandler

    ClientConnectionHandler is a trait meant to be used with outgoing connections.

  7. abstract class Connection extends WriteBuffer with WriteEndpoint

  8. trait ConnectionHandle extends ConnectionInfo

    This trait contains all connection-level functions that should be accessable to a top-level user.

  9. trait ConnectionHandler extends WorkerItem

    This is the base trait for all connection handlers.

  10. trait ConnectionInfo extends AnyRef

    A trait encapsulating live information about a connection.

  11. case class ConnectionSnapshot(domain: String, host: InetAddress, id: Long, timeOpen: Long = 0, readIdle: Long = 0, writeIdle: Long = 0, bytesSent: Long = 0, bytesReceived: Long = 0) extends Product with Serializable

    This class is used to report some basic stats about a Connection.

  12. sealed trait ConnectionState extends AnyRef

  13. sealed trait ConnectionStatus extends AnyRef

    Represent the connection state.

  14. sealed trait ConnectionVolumeState extends AnyRef

    ConnectionVolumeState indicates whether or not if the Server is operating with a normal workload, which is represented by the current ratio of used / available connections being beneath the ServerSettings.

  15. case class Context(id: Long, worker: WorkerRef) extends Product with Serializable

    Represents the binding of an item to a worker

  16. abstract class CoreHandler extends WorkerItem with ConnectionHandler

    This is the connection handler on which the controller and service layers are built.

  17. class DSLDelegator extends Delegator

  18. case class DataBuffer(data: ByteBuffer) extends Encoder with Product with Serializable

    A thin wrapper around a NIO ByteBuffer with data to read

  19. trait DataOutBuffer extends AnyRef

  20. sealed trait DataReader extends AnyRef

    A DataReader is the result of codec's encode operation.

  21. case class DataStream(source: Source[DataBuffer]) extends DataReader with Product with Serializable

  22. abstract class Delegator extends AnyRef

    A Delegator is in charge of creating new ConnectionHandler’s for each new connection.

  23. sealed trait DisconnectCause extends RootDisconnectCause

    Messages representing why a disconnect occurred.

  24. sealed trait DisconnectError extends DisconnectCause

    Subset of DisconnectCause which represent errors which resulted in a disconnect.

  25. class DynamicOutBuffer extends DataOutBuffer

    A ByteBuffer-backed growable buffer.

  26. trait Encoder extends DataReader

  27. abstract class Initializer extends AnyRef

  28. class InvalidConnectionStateException extends Exception

  29. trait KeyInterestManager extends ChannelActions

  30. trait ManualUnbindHandler extends WorkerItem with ClientConnectionHandler

    A Simple mixin trait that will cause the worker to not automatically unbind this handler if the connection it's attached to is closed.

  31. sealed trait MoreDataResult extends AnyRef

  32. case class PollingDuration(interval: FiniteDuration, maximumTries: Option[Long]) extends Product with Serializable

    Simple class which contains parameters for configuring a polling operation

  33. case class ServerConfig(name: MetricAddress, delegatorFactory: (ServerRef, WorkerRef) ⇒ Delegator, settings: ServerSettings) extends Product with Serializable

    Configuration used to specify a Server's application-level behavior

  34. abstract class ServerConnection extends Connection

  35. trait ServerConnectionHandler extends WorkerItem with ConnectionHandler

    Mixin containing events just for server connection handlers

  36. case class ServerContext(server: ServerRef, context: Context) extends Product with Serializable

    An instance of this is handed to every new server connection handler

  37. trait ServerDSL extends AnyRef

  38. case class ServerRef extends Product with Serializable

    A ServerRef is the public interface of a Server.

  39. case class ServerSettings(port: Int, maxConnections: Int = 1000, maxIdleTime: Duration = ..., lowWatermarkPercentage: Double = 0.75, highWatermarkPercentage: Double = 0.85, highWaterMaxIdleTime: FiniteDuration = ..., tcpBacklogSize: Option[Int] = scala.None, bindingAttemptDuration: PollingDuration = ..., delegatorCreationDuration: PollingDuration = ..., shutdownTimeout: FiniteDuration = ...) extends Product with Serializable

    Contains values for configuring how a Server operates

  40. case class ServerState(connectionVolumeState: ConnectionVolumeState, serverStatus: ServerStatus) extends Product with Serializable

    Represents the current state of a Server.

  41. sealed trait ServerStatus extends AnyRef

    Represents the startup status of the server.

  42. sealed abstract class ShutdownAction extends AnyRef

  43. trait WatchedHandler extends WorkerItem with ConnectionHandler

    A Watched handler allows an actor to be tied to a connection.

  44. sealed trait WorkerCommand extends AnyRef

    These are a different class of Commands to which a worker will respond.

  45. case class WorkerConfig(io: IOSystem, workerId: Int) extends Product with Serializable

    Contains the configuration for each Worker.

  46. abstract class WorkerItem extends AnyRef

    A WorkerItem is anything that can be bound to worker to receive both events and external messages.

  47. class WorkerItemException extends Exception

  48. class WorkerItemManager extends AnyRef

    This keeps track of all the bound worker items, and properly handles added/removing them

  49. case class WorkerRef extends Product with Serializable

    This is a Worker's public interface.

  50. trait WriteEndpoint extends ConnectionHandle

    This is passed to handlers to give them a way to synchronously write to the connection.

  51. sealed trait WriteStatus extends AnyRef

Value Members

  1. object ConnectionState

  2. object ConnectionStatus

  3. object ConnectionVolumeState

  4. object DataBuffer extends Serializable

  5. object Delegator

  6. object DisconnectCause

  7. object MoreDataResult

  8. object PollingDuration extends Serializable

  9. object Server extends ServerDSL

    Servers can be thought of as applications, as they provide Delegators and ConnectionHandlers which contain application logic.

  10. object ServerDSL

  11. object ServerStatus

  12. object ShutdownAction

  13. object Worker

    Like the server actor, it is critical that instances of this actor get their own thread, since they block when waiting for events.

  14. object WorkerCommand

  15. object WriteStatus

Ungrouped