Example #1
0
 /// <summary>
 ///  Build the cluster with the configured set of initial contact points and policies.
 /// </summary>
 /// <exception cref="NoHostAvailableException">Throws a NoHostAvailableException when no host could be resolved.</exception>
 /// <exception cref="ArgumentException">Throws an ArgumentException when no contact point was provided.</exception>
 /// <returns>the newly build Cluster instance. </returns>
 public Cluster Build()
 {
     return(Cluster.BuildFrom(this, _hostNames));
 }
Example #2
0
 /// <summary>
 ///  Build the cluster with the configured set of initial contact points and
 ///  policies. This is a shorthand for <c>Cluster.buildFrom(this)</c>.
 /// </summary>
 ///
 /// <returns>the newly build Cluster instance. </returns>
 public Cluster Build()
 {
     return(Cluster.BuildFrom(this));
 }
Example #3
0
 public Cluster Create(IInitializer initializer, IReadOnlyList <string> hostnames, Configuration config, IClusterLifecycleManager lifecycleManager)
 {
     return(Cluster.BuildFrom(initializer, hostnames, config, lifecycleManager));
 }