Class

castalia.actors

JsonResponsesEndpointActor

Related Doc: package actors

Permalink

class JsonResponsesEndpointActor extends JsonEndpointActor with ActorLogging with Delay with DelayedDistribution

Actor that provides answers based on the responses listed in the json configuration that is used to create this actor

Created on 2016-01-23

Linear Supertypes
DelayedDistribution, Delay, JsonEndpointActor, EndpointRequestInterceptor, ReceivePipeline, ActorLogging, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonResponsesEndpointActor
  2. DelayedDistribution
  3. Delay
  4. JsonEndpointActor
  5. EndpointRequestInterceptor
  6. ReceivePipeline
  7. ActorLogging
  8. Actor
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonResponsesEndpointActor(endpoint: String, responses: List[ResponseConfig], metricsCollector: ActorRef)

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

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. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  5. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  6. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundReceive(receive: Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    ReceivePipeline → Actor
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def betaDistribution(mu: Double, sigma: Double): Distribution[Double]

    Permalink

    continuous probability distributions defined on the interval [0, 1] parametrized by two positive shape parameters, denoted by α and β, that appear as exponents of the random variable and control the shape of the distribution.

    continuous probability distributions defined on the interval [0, 1] parametrized by two positive shape parameters, denoted by α and β, that appear as exponents of the random variable and control the shape of the distribution.

    mu

    mean

    sigma

    stdev

    returns

    Distribution obeying beta: for use scaling should be applied

    Definition Classes
    DelayedDistribution
  11. def calculateDelayTime(latencyConfig: LatencyConfig): FiniteDuration

    Permalink
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  14. val endpoint: String

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def findResponse(pathParams: Params): Option[ResponseConfig]

    Permalink
  19. def future[T](f: Future[T], delay: FiniteDuration)(implicit ec: ExecutionContext, s: Scheduler): Future[T]

    Permalink
    Definition Classes
    Delay
  20. def gammaDistribution(k: Double, theta: Double): Distribution[Double]

    Permalink
    Definition Classes
    DelayedDistribution
  21. def gammaRatios(p1: Double, x1: Double, p2: Double, x2: Double): (Double, Double)

    Permalink

    Function to find roots for gamma distribution parameters

    Function to find roots for gamma distribution parameters

    p1

    probalitity of the first term [0,1]

    x1

    value at that probability

    p2

    probalitity of the second term [0,1]

    x2

    value at that probability

    returns

    The shape and the scale parameter of the gamma distribution that satisfies the given probabilities and values.

    Definition Classes
    DelayedDistribution
  22. def gammaRatios(x1: Double, x2: Double): (Double, Double)

    Permalink

    Default gamma ratios of 0.5 and 0.9

    Default gamma ratios of 0.5 and 0.9

    x1

    value at probability 50%

    x2

    value at probability 90%

    returns

    The shape and the scale parameter of the gamma distribution that satisfies the given probabilities and values.

    Definition Classes
    DelayedDistribution
  23. def getBetaParametersFromMeanAndSigma(mu: Double, sigma: Double): (Double, Double)

    Permalink
    Definition Classes
    DelayedDistribution
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getWeibullParametersFromPercentiles(p95: Double, p99: Double): (Double, Double)

    Permalink

    p95

    the value to satisfy p95

    p99

    the value to satisfy p99

    returns

    the WeibullDistribution

    Definition Classes
    DelayedDistribution
  26. final def halveTheIntervalFP(f: (Double) ⇒ Double, x: Double, y: Double, tolerance: Double): Double

    Permalink

    Bisection method (Interval Halving method)

    Bisection method (Interval Halving method)

    f

    Function to find root

    x

    left edge

    y

    right edge

    tolerance

    precision

    returns

    The value at which the function's root is.

    Definition Classes
    DelayedDistribution
    Annotations
    @tailrec()
  27. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  29. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  30. val metricsCollector: ActorRef

    Permalink
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def normalDistribution(mean: Double, stdev: Double, dist: Distribution[Double]): Distribution[Double]

    Permalink
    Definition Classes
    DelayedDistribution
  33. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  35. def paramMatch(left: Params, right: EndpointIds): Boolean

    Permalink
  36. def pipelineInner(interceptor: Interceptor): Unit

    Permalink
    Definition Classes
    ReceivePipeline
  37. def pipelineOuter(interceptor: Interceptor): Unit

    Permalink
    Definition Classes
    ReceivePipeline
  38. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  39. def postStop(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  40. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  41. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  42. def receive: Receive

    Permalink
    Definition Classes
    JsonResponsesEndpointActor → Actor
  43. val responses: List[ResponseConfig]

    Permalink
  44. def scheduleResponse(response: StubResponse, delay: FiniteDuration, recipient: ActorRef): Unit

    Permalink

    Use the Delay-trait and pipe the message to the 'recipient'

    Use the Delay-trait and pipe the message to the 'recipient'

    response

    The Stubresponse

    delay

    The finiteduration of the delay

    recipient

    The recipient, the sender of the request.

  45. implicit val scheduler: Scheduler

    Permalink
  46. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  47. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  48. def signsAreOpposite(x: Double, y: Double): Boolean

    Permalink

    The "signs are opposite" helper function.

    The "signs are opposite" helper function.

    Definition Classes
    DelayedDistribution
  49. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  50. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  52. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  53. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. def weibullDistribution(p95: Double, p99: Double): Distribution[Double]

    Permalink

    Generate weibull distribution

    Generate weibull distribution

    Definition Classes
    DelayedDistribution

Inherited from DelayedDistribution

Inherited from Delay

Inherited from JsonEndpointActor

Inherited from ReceivePipeline

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped