Package org.gcube.portal.databook.server
Class CassandraClusterConnection
java.lang.Object
org.gcube.portal.databook.server.CassandraClusterConnection
- Author:
- Massimiliano Assante ISTI-CNR, Ahmed Ibrahim ISTI-CNR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCassandraClusterConnection(boolean dropSchema) protectedCassandraClusterConnection(boolean dropSchema, String infrastructureName) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidcloseSession(com.datastax.oss.driver.api.core.CqlSession session) com.datastax.oss.driver.api.core.CqlSessionvoidSetUpKeySpaces(boolean dropSchema)
-
Constructor Details
-
CassandraClusterConnection
- 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 Details
-
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()
-