public class CassandraClusterConnection extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CassandraClusterConnection(boolean dropSchema) |
protected |
CassandraClusterConnection(boolean dropSchema,
String infrastructureName) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Close the connection pool
|
com.netflix.astyanax.Keyspace |
getKeyspace()
Get the reference to the current keyspace
|
void |
SetUpKeySpaces(com.netflix.astyanax.AstyanaxContext<com.netflix.astyanax.Cluster> clusterContext,
boolean dropSchema) |
protected CassandraClusterConnection(boolean dropSchema)
dropSchema - set true if you want do drop the current and set up new oneprotected CassandraClusterConnection(boolean dropSchema,
String infrastructureName)
dropSchema - set true if you want do drop the current and set up new onepublic void closeConnection()
public com.netflix.astyanax.Keyspace getKeyspace()
public void SetUpKeySpaces(com.netflix.astyanax.AstyanaxContext<com.netflix.astyanax.Cluster> clusterContext,
boolean dropSchema)
cluster - dropIfExists - com.netflix.astyanax.connectionpool.exceptions.ConnectionExceptionCopyright © 2018. All Rights Reserved.