org.gcube.portal.databook.server
Class CassandraClusterConnection

java.lang.Object
  extended by org.gcube.portal.databook.server.CassandraClusterConnection

public class CassandraClusterConnection
extends Object

Version:
1.0 July 17th 2012
Author:
Massimiliano Assante ISTI-CNR

Constructor Summary
protected CassandraClusterConnection(boolean dropSchema)
           
 
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
 

Constructor Detail

CassandraClusterConnection

protected CassandraClusterConnection(boolean dropSchema)
Parameters:
dropSchema - set true if you want do drop the current and set up new one
Method Detail

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.