Click or drag to resize
Akka.NETMultiNodeSpec Properties

The MultiNodeSpec type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberBaseConfig
Public propertyEventFilter
Filter LogEvent sent to the system's EventStream. In order to be able to filter the log the special logger TestEventListener must be installed using the config
akka.loggers = ["Akka.TestKit.TestEventListener, Akka.TestKit"]
It is installed by default in testkit.
(Inherited from TestKitBase.)
Public propertyHasMessages
Returns true if messages are available.
(Inherited from TestKitBase.)
Public propertyInitialParticipants
MUST BE DEFINED BY USER. Defines the number of participants required for starting the test. This might not be equals to the number of nodes available to the test.
Protected propertyInitialParticipantsValueFactory
Must be defined by user. Creates the values used by InitialParticipants
Public propertyLastMessage
The last message received by the TestActor.
(Inherited from TestKitBase.)
Public propertyLastSender
The last IActorRef to send a message to the TestActor.
(Inherited from TestKitBase.)
Public propertyLog
The built-in ILoggingAdapter used by Sys.
(Inherited from TestKitBase.)
Public propertyStatic memberMaxNodes
Number of nodes node taking part in this test. -Dmultinode.max-nodes=4
Public propertyMyself
Public propertyStatic memberNodeConfig
Public propertyRemaining

Retrieves the time remaining for execution of the innermost enclosing Within block.

Remarks
The returned value is always finite.
(Inherited from TestKitBase.)
Public propertyRemainingOrDefault

Retrieves the time remaining for execution of the innermost enclosing Within block. If missing that, then it returns the properly dilated default for this case from settings (key: "akka.test.single-expect-default").

Remarks
The returned value is always finite.
(Inherited from TestKitBase.)
Public propertyRoles
All registered roles
Public propertyStatic memberSelfIndex
Index of this node in the roles sequence. The TestConductor is started in "controller" mode on selfIndex 0, i.e. there you can inject failures and shutdown other nodes etc.
Public propertyStatic memberSelfName
Name (or IP address; must be resolvable) of the host this node is running on
-Dmultinode.host=host.example.com
InetAddress.getLocalHost.getHostAddress is used if empty or "localhost" is defined as system property "multinode.host".
Public propertyStatic memberSelfPort
Port number of this node. Defaults to 0 which means a random port.
-Dmultinode.port=0
Public propertyStatic memberServerName
Name (or IP address; must be resolvable using InetAddress.getByName) of the host that the server node is running on.
-Dmultinode.server-host=server.example.com
Public propertyStatic memberServerPort
Port number of the node that's running the server system. Defaults to 4711.
-Dmultinode.server-port=4711
Protected propertyShutdownTimeout
Public propertySys
The ActorSystem that is recreated and used for each test.
(Inherited from TestKitBase.)
Public propertyTestActor
The default TestActor. The actor can be controlled by sending it special control messages, see TestActorSetIgnore, TestActorWatch, TestActorUnwatch. You can also install an AutoPilot to drive the actor, see SetAutoPilot(AutoPilot). All other messages are forwarded to the queue and can be retrieved with Receive and the ExpectMsg overloads.
(Inherited from TestKitBase.)
Public propertyTestKitSettings
The settings for the testkit.
(Inherited from TestKitBase.)
Protected propertyVerifySystemShutdown
Override this and return `true` to assert that the shutdown of the `ActorSystem` was done properly.
Top
See Also