当前位置: 首页>>代码示例>>Java>>正文


Java EmbeddedCassandraServerHelper.cleanEmbeddedCassandra方法代码示例

本文整理汇总了Java中org.cassandraunit.utils.EmbeddedCassandraServerHelper.cleanEmbeddedCassandra方法的典型用法代码示例。如果您正苦于以下问题:Java EmbeddedCassandraServerHelper.cleanEmbeddedCassandra方法的具体用法?Java EmbeddedCassandraServerHelper.cleanEmbeddedCassandra怎么用?Java EmbeddedCassandraServerHelper.cleanEmbeddedCassandra使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.cassandraunit.utils.EmbeddedCassandraServerHelper的用法示例。


在下文中一共展示了EmbeddedCassandraServerHelper.cleanEmbeddedCassandra方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: stop

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
/**
 * Stops the server
 */
public static void stop() {

    LOG.info("Checking if the Cassandra server can be stopped");

    // stop the server only if there is a server running
    if (serverRunning.compareAndSet(true, false)) {

        LOG.info("Stopping the Cassandra server");

        // clear all data from the cluster
        EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();

        // close the cluster and all sessions, and shutdown the embedded server
        session.getCluster().close();

        LOG.info("Cassandra server stopped");
    } else
        LOG.info("Cassandra server not running");
}
 
开发者ID:mbeiter,项目名称:eaudit4j,代码行数:23,代码来源:CassandraServer.java

示例2: stopCassandra

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@AfterClass
public static void stopCassandra() {
    //Sometimes cleaning request to EmbeddedCassandra timeouts but it is not a big deal not to clean embeddedCassandra
    // because keyspace is dropped and recreated in the initialization of this test. It is better not to break the build
    // on slow machines
    try {
        EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
    } catch (OperationTimedOutException e) {
        e.printStackTrace();
    }
}
 
开发者ID:echauchot,项目名称:bigDataRocks,代码行数:12,代码来源:PersonCassandraDaoTest.java

示例3: tearDownClass

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@AfterClass
public static void tearDownClass() {
	CassandraUtils.deleteTable(ROOT_APP_NAME);
	CassandraUtils.deleteTable(appid1);
	CassandraUtils.deleteTable(appid2);
	CassandraUtils.deleteTable(appid3);
	CassandraUtils.shutdownClient();
	EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:Erudika,项目名称:para-dao-cassandra,代码行数:10,代码来源:CassandraDAOIT.java

示例4: clean

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
public synchronized void clean() {
    try {
        synchronized (CassandraConnector.class) {
            EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
        }
    } catch (Throwable ignored) {
    }
}
 
开发者ID:dmart28,项目名称:gcplot,代码行数:9,代码来源:CassandraServer.java

示例5: tearDownClass

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@AfterClass
public static void tearDownClass() throws Exception {
    session.execute("DROP KEYSPACE cqlmigrate");
    cluster.close();
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
    Uninterruptibles.sleepUninterruptibly(100, TimeUnit.MILLISECONDS);
}
 
开发者ID:sky-uk,项目名称:cqlmigrate,代码行数:8,代码来源:CqlMigratorHealthCheckTest.java

示例6: cleanupServer

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@AfterClass
public static void cleanupServer() {
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:xetys,项目名称:jhipster-ribbon-hystrix,代码行数:5,代码来源:_AbstractCassandraTest.java

示例7: cleanEmbeddedCassandra

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
/**
 * Clean embedded Cassandra.
 */
public static void cleanEmbeddedCassandra() throws Exception {
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:7,代码来源:CassandraUnitUtils.java

示例8: tearDownCassandra

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
public static void tearDownCassandra() throws Exception {
    cluster.close();
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
    Uninterruptibles.sleepUninterruptibly(100, TimeUnit.MILLISECONDS);
}
 
开发者ID:sky-uk,项目名称:cqlmigrate,代码行数:6,代码来源:CqlMigrateInvoker.java

示例9: tearDownClass

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@AfterClass
public static void tearDownClass() throws Exception {
    cluster.close();
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
    Uninterruptibles.sleepUninterruptibly(100, TimeUnit.MILLISECONDS);
}
 
开发者ID:sky-uk,项目名称:cqlmigrate,代码行数:7,代码来源:SchemaUpdatesTest.java

示例10: afterSuite

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@AfterClass
public static void afterSuite() {
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:Contrast-Security-OSS,项目名称:cassandra-migration,代码行数:5,代码来源:BaseIT.java

示例11: after

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@After
public void after() {
	EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:WizeCommerce,项目名称:hecuba,代码行数:5,代码来源:CassandraTestBase.java

示例12: before

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@Before
public void before() {
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:iZettle,项目名称:izettle-toolbox,代码行数:5,代码来源:SchemaVersionUpdaterWithDatastaxDriverTest.java

示例13: tearDown

import org.cassandraunit.utils.EmbeddedCassandraServerHelper; //导入方法依赖的package包/类
@Override
public void tearDown(ManagementClient managementClient, String containerId) throws Exception {
    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra();
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:5,代码来源:CassandraIntegrationTest.java


注:本文中的org.cassandraunit.utils.EmbeddedCassandraServerHelper.cleanEmbeddedCassandra方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。