Interface Player
- All Known Implementing Classes:
TestConductorExt
public interface Player
The Player is the client component of the
pekko.remote.testconductor.TestConductorExt extension. It registers with
the pekko.remote.testconductor.Conductor’s pekko.remote.testconductor.Controller
in order to participate in barriers and enable network failure injection.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid_client_$eq(ActorRef x$1) client()voidEnter the named barriers, one after the other, in the order given.voidEnter the named barriers, one after the other, in the order given.scala.concurrent.Future<Address>getAddressFor(RoleName name) Query remote transport address of named node.scala.concurrent.Future<org.apache.pekko.remote.testconductor.Done>startClient(RoleName name, InetSocketAddress controllerAddr) Connect to the conductor on the given port (the host is taken from settingpekko.testconductor.host).
-
Method Details
-
_client_$eq
-
client
ActorRef client() -
startClient
scala.concurrent.Future<org.apache.pekko.remote.testconductor.Done> startClient(RoleName name, InetSocketAddress controllerAddr) Connect to the conductor on the given port (the host is taken from settingpekko.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 inpekko.remote.testconductor.Conductor.startController(). -
enter
Enter the named barriers, one after the other, in the order given. Will throw an exception in case of timeouts or other errors. -
enter
Enter the named barriers, one after the other, in the order given. Will throw an exception in case of timeouts or other errors. -
getAddressFor
Query remote transport address of named node.
-