InProcessTestCluster Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A host class for local testing with Orleans using in-process silos.
public sealed class InProcessTestCluster : IAsyncDisposable, IDisposable
type InProcessTestCluster = class
interface IDisposable
interface IAsyncDisposable
Public NotInheritable Class InProcessTestCluster
Implements IAsyncDisposable, IDisposable
- Inheritance
-
InProcessTestCluster
- Implements
Constructors
InProcessTestCluster(InProcessTestClusterOptions, ITestClusterPortAllocator) |
Configures the test cluster plus client in-process. |
Properties
Client |
The client. |
Options |
Options used to configure the test cluster. |
PortAllocator |
The port allocator. |
Silos |
Collection of all known silos. |
Methods
CreateSiloAsync(InProcessTestSiloSpecificOptions) | |
DeployAsync() |
Deploys the cluster using the specified configuration and starts the client in-process. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
DisposeAsync() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
GetActiveSilos() |
Get the list of current active silos. |
GetLivenessStabilizationTime(ClusterMembershipOptions, Boolean) |
Get the timeout value to use to wait for the silo liveness sub-system to detect and act on any recent cluster membership changes. |
GetLog() |
Gets the log. |
GetSiloForAddress(SiloAddress) |
Find the silo handle for the specified silo address. |
GetSiloServiceProvider(SiloAddress) |
Returns the IServiceProvider associated with the given |
InitializeClientAsync() |
Initialize the grain client. This should be already done by DeployAsync() |
KillClientAsync() |
Performs a hard kill on client. Client will not cleanup resources. |
KillSiloAsync(InProcessSiloHandle) |
Do an immediate Kill of the specified silo. |
RestartSiloAsync(InProcessSiloHandle) |
Do a Stop or Kill of the specified silo, followed by a restart. |
RestartStoppedSecondarySiloAsync(String) |
Restart a previously stopped. |
StartAdditionalSilo(Boolean) |
Start an additional silo, so that it joins the existing cluster. |
StartAdditionalSiloAsync(Boolean) |
Start an additional silo, so that it joins the existing cluster. |
StartSiloAsync(InProcessTestCluster, Int32, InProcessTestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean) |
Start a new silo in the target cluster |
StartSiloAsync(Int32, InProcessTestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean) |
Starts a new silo. |
StartSilosAsync(Int32, Boolean) |
Start a number of additional silo, so that they join the existing cluster. |
StopAllSilos() |
Stop all current silos. |
StopAllSilosAsync() |
Stop all current silos. |
StopClusterClientAsync() |
Stop cluster client as an asynchronous operation. |
StopSiloAsync(InProcessSiloHandle) |
Do a semi-graceful Stop of the specified silo. |
StopSilosAsync() |
Stop all silos. |
WaitForLivenessToStabilizeAsync(Boolean) |
Wait for the silo liveness sub-system to detect and act on any recent cluster membership changes. |