Packages

trait Player extends AnyRef

The Player is the client component of the akka.remote.testconductor.TestConductorExt extension. It registers with the akka.remote.testconductor.Conductor’s akka.remote.testconductor.Controller in order to participate in barriers and enable network failure injection.

Self Type
TestConductorExt
Source
Player.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Player
  2. AnyRef
  3. 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

Value Members

  1. def enter(timeout: Timeout, name: Seq[String]): Unit

    Enter the named barriers, one after the other, in the order given.

    Enter the named barriers, one after the other, in the order given. Will throw an exception in case of timeouts or other errors.

  2. def enter(name: String*): Unit

    Enter the named barriers, one after the other, in the order given.

    Enter the named barriers, one after the other, in the order given. Will throw an exception in case of timeouts or other errors.

  3. def getAddressFor(name: RoleName): Future[Address]

    Query remote transport address of named node.

  4. def startClient(name: RoleName, controllerAddr: InetSocketAddress): Future[Done]

    Connect to the conductor on the given port (the host is taken from setting akka.testconductor.host).

    Connect to the conductor on the given port (the host is taken from setting akka.testconductor.host). The connection is made asynchronously, but you should await completion of the returned Future because that implies that all expected participants of this test have successfully connected (i.e. this is a first barrier in itself). The number of expected participants is set in akka.remote.testconductor.Conductor.startController().