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
- Alphabetic
- By Inheritance
- Player
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
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.
-
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.
-
def
getAddressFor(name: RoleName): Future[Address]
Query remote transport address of named node.
-
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()
.