Package org.apache.pekko.remote.testkit
Class MultiNodeConfig
java.lang.Object
org.apache.pekko.remote.testkit.MultiNodeConfig
Configure the role names and participants of the test, including configuration settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommonConfig(com.typesafe.config.Config config) Register a common base config for all test participants, if so desired.com.typesafe.config.ConfigdebugConfig(boolean on) Include for verbose debug loggingvoidvoiddeployOnAll(String deployment) voidnodeConfig(scala.collection.immutable.Seq<RoleName> roles, scala.collection.immutable.Seq<com.typesafe.config.Config> configs) Register a config override for a specific participant.Construct a RoleName and return it, to be used as an identifier in the test.voidtestTransport(boolean on) To be able to useblackhole,passThrough, andthrottleyou must activate the failure injector and throttler transport adapters by specifyingtestTransport(on = true)in your MultiNodeConfig.
-
Constructor Details
-
MultiNodeConfig
public MultiNodeConfig()
-
-
Method Details
-
commonConfig
public void commonConfig(com.typesafe.config.Config config) Register a common base config for all test participants, if so desired. -
debugConfig
public com.typesafe.config.Config debugConfig(boolean on) Include for verbose debug logging- Parameters:
on- whentruedebug Config is returned, otherwise config with info logging
-
deployOn
-
deployOnAll
-
nodeConfig
public void nodeConfig(scala.collection.immutable.Seq<RoleName> roles, scala.collection.immutable.Seq<com.typesafe.config.Config> configs) Register a config override for a specific participant. -
role
Construct a RoleName and return it, to be used as an identifier in the test. Registration of a role name creates a role which then needs to be filled. -
testTransport
public void testTransport(boolean on) To be able to useblackhole,passThrough, andthrottleyou must activate the failure injector and throttler transport adapters by specifyingtestTransport(on = true)in your MultiNodeConfig.
-