Interface IInitializer
Initializer for <link>Cluster</link> 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: Cassandra
Assembly: ScyllaDB.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:
<ul> <li>the port use to connect to Cassandra nodes (see
<link>ProtocolOptions</link>).</li> <li>the policies used (see
<link>Policies</link>).</li> <li>the authentication info provided (see
<link>Configuration</link>).</li> <li>whether metrics are enabled (see
<link>Configuration</link>).</li> </ul></p>
Declaration
Configuration GetConfiguration()
Returns
| Type | Description |
|---|---|
| Configuration |