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
Exibir arquivo Open project: rogeralsing/akka.net Class Usage Examples

Protected Properties

Property Type Description
TestConductor TestConductor

Public Methods

Method 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`).

Protected Methods

Method 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

Method Description
GetCallerName ( ) : string

Method Details

AfterTermination() protected method

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

AtStartup() protected method

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

AttachConductor() protected method

protected AttachConductor ( TestConductor tc ) : void
tc TestConductor
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

EnterBarrier() public method

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
return void

InjectDeployments() protected method

protected InjectDeployments ( ActorSystem system, RoleName role ) : void
system ActorSystem
role RoleName
return void

IsNode() public method

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

MultiNodeSpec() protected method

protected MultiNodeSpec ( MultiNodeConfig config ) : System
config MultiNodeConfig
return System

MultiNodeSpec() protected method

protected MultiNodeSpec ( RoleName myself, ActorSystem system, ImmutableList roles, Func deployments ) : System
myself RoleName
system ActorSystem
roles ImmutableList
deployments Func
return System

MultiNodeSpecAfterAll() public method

public MultiNodeSpecAfterAll ( ) : void
return void

MultiNodeSpecBeforeAll() public method

public MultiNodeSpecBeforeAll ( ) : void
return void

MuteDeadLetters() public method

public MuteDeadLetters ( ActorSystem system = null ) : void
system ActorSystem
return void

Node() public method

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
return ActorPath

RunOn() public method

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
return void

StartNewSystem() protected method

protected StartNewSystem ( ) : ActorSystem
return ActorSystem

Property Details

TestConductor protected_oe property

protected TestConductor TestConductor
return TestConductor