Package uk.sky.cqlmigrate
Class CassandraClusterFactory
- java.lang.Object
-
- uk.sky.cqlmigrate.CassandraClusterFactory
-
public class CassandraClusterFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CassandraClusterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.datastax.driver.core.ClustercreateCluster(java.lang.String[] hosts, int port, java.lang.String username, java.lang.String password)Creates an instance of cassandraClusterbased on the provided configuration
-
-
-
Method Detail
-
createCluster
public static com.datastax.driver.core.Cluster createCluster(java.lang.String[] hosts, int port, java.lang.String username, java.lang.String password)Creates an instance of cassandraClusterbased on the provided configuration- Parameters:
hosts- Addresses of the nodes to add as contact points (as described inCluster.Builder.addContactPoint(java.lang.String)).port- The port to use to connect to the Cassandra hosts.username- the username to use to login to Cassandra hosts.password- the password corresponding tousername.- Returns:
- a configured Cluster
-
-