Class CassandraClusterConnection


  • public class CassandraClusterConnection
    extends Object
    Author:
    Massimiliano Assante ISTI-CNR, Costantino Perciante ISTI-CNR
    • Constructor Detail

      • CassandraClusterConnection

        protected CassandraClusterConnection​(boolean dropSchema)
        Parameters:
        dropSchema - set true if you want do drop the current and set up new one the connection to cassandra cluster
      • CassandraClusterConnection

        protected CassandraClusterConnection​(boolean dropSchema,
                                             String infrastructureName)
        Parameters:
        dropSchema - set true if you want do drop the current and set up new one the connection to cassandra cluster
    • Method Detail

      • closeConnection

        public void closeConnection()
        Close the connection pool
      • getKeyspace

        public com.netflix.astyanax.Keyspace getKeyspace()
        Get the reference to the current keyspace
        Returns:
        keyspace reference
      • SetUpKeySpaces

        public void SetUpKeySpaces​(com.netflix.astyanax.AstyanaxContext<com.netflix.astyanax.Cluster> clusterContext,
                                   boolean dropSchema)
        Parameters:
        clusterContext -
        dropSchema -
        Throws:
        com.netflix.astyanax.connectionpool.exceptions.ConnectionException