Class CassandraClusterConnection


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

      • CassandraClusterConnection

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

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

      • getKeyspaceSession

        public com.datastax.oss.driver.api.core.CqlSession getKeyspaceSession()
      • SetUpKeySpaces

        public void SetUpKeySpaces​(boolean dropSchema)
        Parameters:
        dropSchema - set true if you want to drop the current and set up new one the connection to cassandra cluster
      • closeSession

        public static void closeSession​(com.datastax.oss.driver.api.core.CqlSession session)
      • closeConnection

        public void closeConnection()