colossus

core

package core

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AckLevel extends AnyRef

    AckLevel is used in Asynchronous write messages to determine how to react to writes.

  2. class ActorHandler extends Actor with Stash

    A Basic actor-based handler that can be used with the AsyncHandler.

  3. case class AsyncHandler(handler: ActorRef) extends WatchedHandler with ClientConnectionHandler with Product with Serializable

  4. trait BasicSyncHandler extends ConnectionHandler

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

  5. sealed trait ClientConnectionEvent extends ConnectionEvent

    These events are sent from the underlying async handler to the handler actor and also forwarded to the listener

  6. trait ClientConnectionHandler extends ConnectionHandler

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

  7. sealed trait ConnectionCommand extends AnyRef

    These messages are sent to async connection actors to interact with connections

  8. sealed trait ConnectionEvent extends AnyRef

    These events are sent from the underlying async handler to the handler actor and also forwarded to the listener

  9. trait ConnectionHandler extends WorkerItem

    This is the base trait for all connection handlers.

  10. case class ConnectionInfo(domain: String, host: InetAddress, port: Int, id: Long, timeOpen: Long = 0, timeIdle: Long = 0, bytesSent: Long = 0, bytesReceived: Long = 0) extends Product with Serializable

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

  11. sealed trait ConnectionStatus extends AnyRef

    Represent the connection state.

  12. 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.

  13. case class DataBuffer(data: ByteBuffer) extends DataReader with Product with Serializable

    A thin wrapper around a NIO ByteBuffer with data to read

  14. sealed trait DataReader extends AnyRef

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

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

  16. abstract class Delegator extends AnyRef

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

  17. sealed trait DelegatorCommand extends AnyRef

    Currently unused; but will eventually be for async delegators, if we decide to allow them

  18. sealed trait DisconnectCause extends RootDisconnectCause

    Messages representing why a disconnect occurred.

  19. sealed trait DisconnectError extends DisconnectCause

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

  20. trait KeyInterestManager extends AnyRef

  21. trait ManualUnbindHandler extends 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.

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

    Simple class which contains parameters for configuring a polling operation

  23. 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

  24. case class ServerRef(config: ServerConfig, server: ActorRef, system: IOSystem, serverStateAgent: Agent[ServerState]) extends Product with Serializable

    A ServerRef is the public interface of a Server.

  25. 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 = ...) extends Product with Serializable

    Contains values for configuring how a Server operates

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

    Represents the current state of a Server.

  27. sealed trait ServerStatus extends AnyRef

    Represents the startup status of the server.

  28. trait WatchedHandler extends ConnectionHandler

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

  29. sealed trait WorkerCommand extends AnyRef

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

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

    Contains the configuration for each Worker.

  31. trait WorkerItem extends AnyRef

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

  32. case class WorkerItemBinding(id: Long, worker: WorkerRef) extends Product with Serializable

    Represents the binding of an item to a worker

  33. class WorkerItemException extends Exception

  34. class WorkerItemManager extends AnyRef

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

  35. case class WorkerRef(id: Int, metrics: LocalCollection, worker: ActorRef, system: IOSystem) extends Product with Serializable

    This is a Worker's public interface.

  36. trait WriteEndpoint extends AnyRef

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

  37. sealed trait WriteStatus extends AnyRef

Value Members

  1. object AckLevel

  2. object ActorHandler

  3. object AsyncHandler extends Serializable

  4. object ConnectionCommand

  5. object ConnectionEvent

  6. object ConnectionInfo extends Serializable

  7. object ConnectionStatus

  8. object ConnectionVolumeState

  9. object DataBuffer extends Serializable

  10. object Delegator

  11. object DelegatorCommand

  12. object DisconnectCause

  13. object PollingDuration extends Serializable

  14. object Server

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

  15. object ServerStatus

  16. 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.

  17. object WorkerCommand

  18. object WriteStatus

Ungrouped