org.gcube.portal.databook.server
Class CassandraClusterConnection
java.lang.Object
org.gcube.portal.databook.server.CassandraClusterConnection
public class CassandraClusterConnection
- extends Object
- Version:
- 1.0 July 17th 2012
- Author:
- Massimiliano Assante ISTI-CNR
Method Summary |
com.netflix.astyanax.Keyspace |
getKeyspace()
|
void |
SetUpKeySpaces(com.netflix.astyanax.AstyanaxContext<com.netflix.astyanax.Cluster> clusterContext,
boolean dropSchema)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CassandraClusterConnection
protected CassandraClusterConnection(boolean dropSchema)
- Parameters:
dropSchema
- set true if you want do drop the current and set up new one
getKeyspace
public com.netflix.astyanax.Keyspace getKeyspace()
- Returns:
SetUpKeySpaces
public void SetUpKeySpaces(com.netflix.astyanax.AstyanaxContext<com.netflix.astyanax.Cluster> clusterContext,
boolean dropSchema)
- Parameters:
cluster
- dropIfExists
-
- Throws:
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
Copyright © 2013. All Rights Reserved.