Class CassandraClusterFactory


  • public class CassandraClusterFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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 cassandra Cluster based on the provided configuration
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CassandraClusterFactory

        public CassandraClusterFactory()
    • 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 cassandra Cluster based on the provided configuration
        Parameters:
        hosts - Addresses of the nodes to add as contact points (as described in Cluster.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 to username.
        Returns:
        a configured Cluster