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
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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