C# Class Akka.Remote.TestKit.MultiNodeSpec

Note: To be able to run tests with everything ignored or excluded by tags you must not use `testconductor`, or helper methods that use `testconductor`, from the constructor of your test class. Otherwise the controller node might be shutdown before other nodes have completed and you will see errors like: `AskTimeoutException: sending to terminated ref breaks promises`. Using lazy val is fine.
Inheritance: Akka.TestKit.TestKitBase, IMultiNodeSpecCallbacks, IDisposable
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Protected Properties

Свойство Type Description
TestConductor TestConductor

Méthodes publiques

Méthode Description
Dispose ( ) : void
EnterBarrier ( ) : void

Enter the named barriers in the order given. Use the remaining duration from the innermost enclosing `within` block or the default `BarrierTimeout`

IsNode ( ) : bool

Verify that the running node matches one of the given nodes

MultiNodeSpecAfterAll ( ) : void
MultiNodeSpecBeforeAll ( ) : void
MuteDeadLetters ( ActorSystem system = null ) : void
Node ( RoleName role ) : ActorPath

Query the controller for the transport address of the given node (by role name) and return that as an ActorPath for easy composition: var serviceA = Sys.ActorSelection(Node(new RoleName("master")) / "user" / "serviceA");

RunOn ( System.Action thunk ) : void

Execute the given block of code only on the given nodes (names according to the `roleMap`).

Méthodes protégées

Méthode Description
AfterTermination ( ) : void

Override this method to do something when the whole test is terminating.

AtStartup ( ) : void

Override this method to do something when the whole test is starting up.

AttachConductor ( TestConductor tc ) : void
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

InjectDeployments ( ActorSystem system, RoleName role ) : void
MultiNodeSpec ( MultiNodeConfig config ) : System
MultiNodeSpec ( RoleName myself, ActorSystem system, ImmutableList roles, Func deployments ) : System
StartNewSystem ( ) : ActorSystem

Private Methods

Méthode Description
GetCallerName ( ) : string

Method Details

AfterTermination() protected méthode

Override this method to do something when the whole test is terminating.
protected AfterTermination ( ) : void
Résultat void

AtStartup() protected méthode

Override this method to do something when the whole test is starting up.
protected AtStartup ( ) : void
Résultat void

AttachConductor() protected méthode

protected AttachConductor ( TestConductor tc ) : void
tc TestConductor
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool if set to true the method has been called directly or indirectly by a /// user's code. Managed and unmanaged resources will be disposed.
/// if set to false the method has been called by the runtime from inside the finalizer and only /// unmanaged resources can be disposed.
Résultat void

EnterBarrier() public méthode

Enter the named barriers in the order given. Use the remaining duration from the innermost enclosing `within` block or the default `BarrierTimeout`
public EnterBarrier ( ) : void
Résultat void

InjectDeployments() protected méthode

protected InjectDeployments ( ActorSystem system, RoleName role ) : void
system ActorSystem
role RoleName
Résultat void

IsNode() public méthode

Verify that the running node matches one of the given nodes
public IsNode ( ) : bool
Résultat bool

MultiNodeSpec() protected méthode

protected MultiNodeSpec ( MultiNodeConfig config ) : System
config MultiNodeConfig
Résultat System

MultiNodeSpec() protected méthode

protected MultiNodeSpec ( RoleName myself, ActorSystem system, ImmutableList roles, Func deployments ) : System
myself RoleName
system ActorSystem
roles ImmutableList
deployments Func
Résultat System

MultiNodeSpecAfterAll() public méthode

public MultiNodeSpecAfterAll ( ) : void
Résultat void

MultiNodeSpecBeforeAll() public méthode

public MultiNodeSpecBeforeAll ( ) : void
Résultat void

MuteDeadLetters() public méthode

public MuteDeadLetters ( ActorSystem system = null ) : void
system ActorSystem
Résultat void

Node() public méthode

Query the controller for the transport address of the given node (by role name) and return that as an ActorPath for easy composition: var serviceA = Sys.ActorSelection(Node(new RoleName("master")) / "user" / "serviceA");
public Node ( RoleName role ) : ActorPath
role RoleName
Résultat ActorPath

RunOn() public méthode

Execute the given block of code only on the given nodes (names according to the `roleMap`).
public RunOn ( System.Action thunk ) : void
thunk System.Action
Résultat void

StartNewSystem() protected méthode

protected StartNewSystem ( ) : ActorSystem
Résultat ActorSystem

Property Details

TestConductor protected_oe property

protected TestConductor TestConductor
Résultat TestConductor