Class

com.ccadllc.cedi.circuitbreaker.statistics.FailureStatistics

Testing

Related Doc: package FailureStatistics

Permalink

case class Testing(config: Test, timestamp: Instant = Instant.EPOCH, successes: Int = 0) extends Product with Serializable

This data type is used for testing the protected program by periodically letting the program execute when the associated CircuitBreaker is open, so that we can determine when it is appropriate to close the CB after a configured minimum number of consecutive execution successes.

config

- the FailureSettings#Test configuration for testing an open CircuitBreaker, including the minimum number of consecutive tests to close an open CB and the minimum time interval between tests (between which program executions are failed fast without executing).

timestamp

- the java.time.Instant timestamp indicating the time the last test was executed.FailureSettings#Test configuration for testing an open CircuitBreaker.

successes

- the current number of consecutive test execution successes.

Source
Statistics.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Testing
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Testing(config: Test, timestamp: Instant = Instant.EPOCH, successes: Int = 0)

    Permalink

    config

    - the FailureSettings#Test configuration for testing an open CircuitBreaker, including the minimum number of consecutive tests to close an open CB and the minimum time interval between tests (between which program executions are failed fast without executing).

    timestamp

    - the java.time.Instant timestamp indicating the time the last test was executed.FailureSettings#Test configuration for testing an open CircuitBreaker.

    successes

    - the current number of consecutive test execution successes.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to any2stringadd[Testing] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Testing, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to ArrowAssoc[Testing] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val config: Test

    Permalink

    - the FailureSettings#Test configuration for testing an open CircuitBreaker, including the minimum number of consecutive tests to close an open CB and the minimum time interval between tests (between which program executions are failed fast without executing).

  9. def ensuring(cond: (Testing) ⇒ Boolean, msg: ⇒ Any): Testing

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to Ensuring[Testing] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (Testing) ⇒ Boolean): Testing

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to Ensuring[Testing] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): Testing

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to Ensuring[Testing] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): Testing

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to Ensuring[Testing] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to StringFormat[Testing] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def intervalHasPast(current: Instant): Boolean

    Permalink

    Used by CircuitBreakers to determine if a test interval time has passed (or is in the past, thus the passed/past play on words of the name).

    Used by CircuitBreakers to determine if a test interval time has passed (or is in the past, thus the passed/past play on words of the name).

    current

    - the current java.time.Instant timestamp.

    returns

    timeHasPassed - a Boolean indicating that the configured test time interval has passed between the timestamp of this instance and the current timestamp passed into this method.

  18. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def show: String

    Permalink

    Renders the test as a human-readable string value.

  23. val successes: Int

    Permalink

    - the current number of consecutive test execution successes.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. val timestamp: Instant

    Permalink

    - the java.time.Instant timestamp indicating the time the last test was executed.FailureSettings#Test configuration for testing an open CircuitBreaker.

  26. def update(ts: Instant, success: Boolean): Testing

    Permalink

    Updates this testing instance, passing in the test success/failure indicator and a timestamp signifying when the test took place.

    Updates this testing instance, passing in the test success/failure indicator and a timestamp signifying when the test took place. It returns an updated instance with the state modified appropriately.

    ts

    - a java.time.Instant timestamp indicating the time at which the test is being updated.

    success

    - a boolean flag indicating whether or not the test execution was successful.

    returns

    updatedTest - a new instance with the state updated appropriately.

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def [B](y: B): (Testing, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Testing to ArrowAssoc[Testing] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Testing to any2stringadd[Testing]

Inherited by implicit conversion StringFormat from Testing to StringFormat[Testing]

Inherited by implicit conversion Ensuring from Testing to Ensuring[Testing]

Inherited by implicit conversion ArrowAssoc from Testing to ArrowAssoc[Testing]

Ungrouped