use of com.metabroadcast.common.persistence.cassandra.DatastaxCassandraService in project atlas-deer by atlasapi.
the class CassandraScheduleStoreIT method setup.
@BeforeClass
public static void setup() throws ConnectionException, IOException {
context.start();
cassandraService = new DatastaxCassandraService(seeds, 8, 2);
cassandraService.startAsync().awaitRunning();
session = cassandraService.getCluster().connect();
CassandraInit.createTables(session, context);
CassandraInit.truncate(session, context);
session = cassandraService.getCluster().connect(keyspace);
}
use of com.metabroadcast.common.persistence.cassandra.DatastaxCassandraService in project atlas-deer by atlasapi.
the class DatastaxCassandraOrganizationStoreTest method init.
@BeforeClass
public static void init() throws Exception {
// Thrift init
context.start();
CassandraHelper.createKeyspace(context);
// CQL init
DatastaxCassandraService cassandraService = new DatastaxCassandraService(seeds, 8, 2);
cassandraService.startAsync().awaitRunning();
session = cassandraService.getCluster().connect(keyspace);
session.execute(IOUtils.toString(DatastaxCassandraOrganizationStoreTest.class.getResourceAsStream("/atlas_organisation.schema")));
session.execute(IOUtils.toString(DatastaxCassandraOrganizationStoreTest.class.getResourceAsStream("/atlas_organisation_uri.schema")));
}
use of com.metabroadcast.common.persistence.cassandra.DatastaxCassandraService in project atlas-deer by atlasapi.
the class IdSettingOrganisationStoreIT method init.
@BeforeClass
public static void init() throws Exception {
// Thrift init
context.start();
CassandraHelper.createKeyspace(context);
// CQL init
DatastaxCassandraService cassandraService = new DatastaxCassandraService(seeds, 8, 2);
cassandraService.startAsync().awaitRunning();
session = cassandraService.getCluster().connect(keyspace);
session.execute(IOUtils.toString(DatastaxCassandraOrganizationStoreTest.class.getResourceAsStream("/atlas_organisation.schema")));
session.execute(IOUtils.toString(DatastaxCassandraOrganizationStoreTest.class.getResourceAsStream("/atlas_organisation_uri.schema")));
}
Aggregations