List of usage examples for org.springframework.data.cassandra.core CassandraTemplate CassandraTemplate
public CassandraTemplate(Session session)
From source file:io.jmnarloch.spring.cloud.zuul.store.CassandraZuulRouteStoreTest.java
@Before public void setUp() throws Exception { final Cluster cluster = Cluster.builder().addContactPoints(InetAddress.getLoopbackAddress()).withPort(9142) .build();//from w w w .ja v a2 s . c om cassandraTemplate = new CassandraTemplate(cluster.connect("zuul")); instance = new CassandraZuulRouteStore(cassandraTemplate); }
From source file:com.poc.cassandra.CassandraConfig.java
@Bean public CassandraOperations cassandraTemplate() throws Exception { return new CassandraTemplate(session().getObject()); }
From source file:com.github.lynxdb.server.run.Setup.java
private static void init() { Cluster cluster = Cluster.builder().addContactPoint(System.getenv("cassandra_contactpoints")).build(); ct = new CassandraTemplate(cluster.connect()); }
From source file:com.github.lynxdb.server.run.Setup.java
private static void init(String _keyspace) { Cluster cluster = Cluster.builder().addContactPoint(System.getenv("cassandra_contactpoints")).build(); ct = new CassandraTemplate(cluster.connect(_keyspace)); }
From source file:org.mcplissken.repository.cassandra.CassandraConfig.java
@Bean public CassandraTemplate cassandraOperations() throws Exception { return new CassandraTemplate(session().getObject()); }