Edit

Share via


ClusterConfiguration Class

Definition

Caution

This type is obsolete and may be removed in a future release. Use configuration methods on ISiloHostBuilder to configure specific types.

Data object holding Silo configuration parameters.

[System.Serializable]
public class ClusterConfiguration
[System.Serializable]
[System.Obsolete("This type is obsolete and may be removed in a future release. Use configuration methods on ISiloHostBuilder to configure specific types.")]
public class ClusterConfiguration
[<System.Serializable>]
type ClusterConfiguration = class
[<System.Serializable>]
[<System.Obsolete("This type is obsolete and may be removed in a future release. Use configuration methods on ISiloHostBuilder to configure specific types.")>]
type ClusterConfiguration = class
Public Class ClusterConfiguration
Inheritance
ClusterConfiguration
Attributes

Constructors

ClusterConfiguration()

ClusterConfiguration constructor.

ClusterConfiguration(TextReader)

ClusterConfiguration constructor.

Properties

Defaults

The default configuration parameters that apply to each and every silo. These can be over-written on a per silo basis.

Globals

The global configuration parameters that apply uniformly to all silos.

Overrides

Per silo configuration parameters overrides.

PrimaryNode

The Primary Node IP and port (in dev setting).

SourceFile

The configuration file.

Methods

CreateNodeConfigurationForSilo(String)

Creates a configuration node for a given silo.

GetOrCreateNodeConfigurationForSilo(String)

Creates a node config for the specified silo if one does not exist. Returns existing node if one already exists

Load(TextReader)

Loads configuration from a given input text reader.

LoadFromFile(String)

Loads the configuration from a file

LocalhostPrimarySilo(Int32, Int32)

Returns a prepopulated ClusterConfiguration object for a primary local silo (for testing)

StandardLoad()

Loads the configuration from the standard paths

ToString(String)

Prints the current config for a given silo.

TryGetNodeConfigurationForSilo(String, NodeConfiguration)

Obtains the configuration for a given silo.

Update(String)

Updates existing configuration.

Extension Methods

AddAdoNetStorageProvider(ClusterConfiguration, String, String, AdoNetSerializationFormat)

Adds a storage provider of type AdoNetStorageProvider.

AddAzureBlobStorageProvider(ClusterConfiguration, String, String, String, Boolean, Boolean)

Adds a storage provider of type AzureBlobStorage.

AddAzureQueueStreamProvider(ClusterConfiguration, String, String, Int32, String, Int32, PersistentStreamProviderState, PersistentStreamProviderConfig)

Adds a stream provider of type AzureQueueStreamProvider.

AddAzureQueueStreamProviderV2(ClusterConfiguration, String, String, Int32, String, Int32, PersistentStreamProviderState, PersistentStreamProviderConfig)

Adds a stream provider of type AzureQueueStreamProviderV2.

AddAzureTableStorageProvider(ClusterConfiguration, String, String, String, Boolean, Boolean, Boolean, Boolean)

Adds a storage provider of type AzureTableStorage.

AddMemoryStorageProvider(ClusterConfiguration, String, Int32)

Adds a storage provider of type MemoryStorage

AddSimpleMessageStreamProvider(ClusterConfiguration, String, Boolean, Boolean, StreamPubSubType)

Adds a stream provider of type SimpleMessageStreamProvider

ApplyToAllNodes(ClusterConfiguration, Action<NodeConfiguration>)

Applies the specified config change defined by nodeConfigUpdater to Defaults and all the node configurations currently defined in Overrides.

UseStartupType<TStartup>(ClusterConfiguration)

Configures all cluster nodes to use the specified startup class for dependency injection.

AddCustomStorageInterfaceBasedLogConsistencyProvider(ClusterConfiguration, String, String)

Adds a log consistency provider of type LogConsistencyProvider

AddLogStorageBasedLogConsistencyProvider(ClusterConfiguration, String)

Adds a log consistency provider of type LogConsistencyProvider

AddStateStorageBasedLogConsistencyProvider(ClusterConfiguration, String)

Adds a log consistency provider of type LogConsistencyProvider

AddPerfCountersTelemetryConsumer(ClusterConfiguration)

Adds a metrics telemetric consumer provider./>.

AdjustForTestEnvironment(ClusterConfiguration, String)

This call tweaks the cluster config with settings specific to a test run.

AddFaultyMemoryStorageProvider(ClusterConfiguration, String, Int32, Int32)

Adds a storage provider of type FaultyMemoryStorage

Applies to