Click or drag to resize
IInitializer Interface
Initializer for Cluster instances.

If you want to create a new Cluster instance programmatically, then it is advised to use Cluster.Builder (obtained through the Cluster#builder method).

But it is also possible to implement a custom Initializer that retrieve initialization from a web-service or from a configuration file for instance.

Namespace: Dse
Assembly: Dse (in Dse.dll) Version: 2.1.0
Syntax
C#
public interface IInitializer

The IInitializer type exposes the following members.

Methods
  NameDescription
Public methodGetConfiguration
The configuration to use for the new cluster.

Note that some configuration can be modified after the cluster initialization but some other cannot. In particular, the ones that cannot be change afterwards includes:

  • the port use to connect to Cassandra nodes (see ProtocolOptions).
  • the policies used (see Policies).
  • the authentication info provided (see Configuration).
  • whether metrics are enabled (see Configuration).

Top
Properties
  NameDescription
Public propertyContactPoints
Gets the initial Cassandra hosts to connect to.See Builder.AddContactPoint for more details on contact
Top
See Also

Reference