C# Класс 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.
Наследование: Akka.TestKit.TestKitBase, IMultiNodeSpecCallbacks, IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
TestConductor TestConductor

Открытые методы

Метод Описание
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`).

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
GetCallerName ( ) : string

Описание методов

AfterTermination() защищенный Метод

Override this method to do something when the whole test is terminating.
protected AfterTermination ( ) : void
Результат void

AtStartup() защищенный Метод

Override this method to do something when the whole test is starting up.
protected AtStartup ( ) : void
Результат void

AttachConductor() защищенный Метод

protected AttachConductor ( TestConductor tc ) : void
tc TestConductor
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

EnterBarrier() публичный Метод

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
Результат void

InjectDeployments() защищенный Метод

protected InjectDeployments ( ActorSystem system, RoleName role ) : void
system ActorSystem
role RoleName
Результат void

IsNode() публичный Метод

Verify that the running node matches one of the given nodes
public IsNode ( ) : bool
Результат bool

MultiNodeSpec() защищенный Метод

protected MultiNodeSpec ( MultiNodeConfig config ) : System
config MultiNodeConfig
Результат System

MultiNodeSpec() защищенный Метод

protected MultiNodeSpec ( RoleName myself, ActorSystem system, ImmutableList roles, Func deployments ) : System
myself RoleName
system ActorSystem
roles ImmutableList
deployments Func
Результат System

MultiNodeSpecAfterAll() публичный Метод

public MultiNodeSpecAfterAll ( ) : void
Результат void

MultiNodeSpecBeforeAll() публичный Метод

public MultiNodeSpecBeforeAll ( ) : void
Результат void

MuteDeadLetters() публичный Метод

public MuteDeadLetters ( ActorSystem system = null ) : void
system ActorSystem
Результат void

Node() публичный Метод

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
Результат ActorPath

RunOn() публичный Метод

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
Результат void

StartNewSystem() защищенный Метод

protected StartNewSystem ( ) : ActorSystem
Результат ActorSystem

Описание свойств

TestConductor защищенное свойство

protected TestConductor TestConductor
Результат TestConductor