Package

ooyala.common

akka

Permalink

package akka

Visibility
  1. Public
  2. All

Type Members

  1. trait ActorMetrics extends ActorStack

    Permalink

    ActorMetrics is a trait that provides the following metrics: * message-handler.meter.{mean,m1,m5,m15} = moving avg of rate at which receive handler is called * message-handler.duration.{mean,p75,p99,p999} = histogram of wrappedReeive() running time

    ActorMetrics is a trait that provides the following metrics: * message-handler.meter.{mean,m1,m5,m15} = moving avg of rate at which receive handler is called * message-handler.duration.{mean,p75,p99,p999} = histogram of wrappedReeive() running time

    NOTE: the number of incoming messages can be tracked using meter.count.

  2. trait ActorStack extends Actor

    Permalink

    A base trait for enabling stackable traits that enhance Actors.

    A base trait for enabling stackable traits that enhance Actors. Examples of stackable traits are included, and add logging, metrics, etc.

    Actor classes

    Actor classes that mix in this trait should define a wrappedReceive partial function instead of the standard receive.

    Messages not handled by wrappedReceive will go, as usual, to unhandled().

    Stacking traits

    trait MyActorTrait extends ActorStack {
      override def receive: Receive = {
        case x =>
          println("Before calling wrappedReceive... do something")
          super.receive(x)
          println("After calling wrappedReceive... do something else")
      }
    }
  3. abstract class InstrumentedActor extends Actor with Slf4jLogging with ActorMetrics

    Permalink

    Base class that includes Slf4jLogging and ActorMetrics for convenience

  4. trait Slf4jLogging extends ActorStack

    Permalink

    Trait that adds Logback/SLF4J logging to actors.

    Trait that adds Logback/SLF4J logging to actors. It adds the following members:

    * logger

    It also prints a message upon actor initialization. Also, it fills the akkaSource MDC variable with the current actor's path, making for easier log tracing of a single actor's messages.

Value Members

  1. object AkkaTestUtils

    Permalink
  2. package actor

    Permalink
  3. package metrics

    Permalink
  4. package web

    Permalink

Ungrouped