Player

trait Player

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.

Companion:
object
Source:
Player.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def enter(name: String*): Unit

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

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

Source:
Player.scala
def enter(timeout: Timeout, name: Seq[String]): Unit

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

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

Source:
Player.scala

Query remote transport address of named node.

Query remote transport address of named node.

Source:
Player.scala
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). 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().

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().

Source:
Player.scala