Interface IInitializer
Initializer for Cluster instances.
If you want to create a
new Cluster
instance programmatically, then it is advised to use
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: Cassandra
Assembly: Cassandra.dll
Syntax
public interface IInitializer
Properties
ContactPoints
Gets the initial Cassandra hosts to connect to.See
Builder.AddContactPoint for more details on contactDeclaration
ICollection<IPEndPoint> ContactPoints { get; }
Property Value
Type | Description |
---|---|
ICollection<IPEndPoint> |
Methods
GetConfiguration()
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).
Declaration
Configuration GetConfiguration()
Returns
Type | Description |
---|---|
Configuration |