本文整理汇总了Java中org.apache.ignite.Ignite.close方法的典型用法代码示例。如果您正苦于以下问题:Java Ignite.close方法的具体用法?Java Ignite.close怎么用?Java Ignite.close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.Ignite
的用法示例。
在下文中一共展示了Ignite.close方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import org.apache.ignite.Ignite; //导入方法依赖的package包/类
/** */
public static void main(String[] args) {
Ignite ignite = TestsHelper.getClusterClient();
try {
LOGGER.info("Simulation load test execution started");
SimulationUtil.prepopulateSimulationCaches(ignite);
long txIdCounterStart = SimulationUtil.getNextTransactionsIdsBucketStart(ignite);
TransactionDataGenerator.setTransactionIdCounterStart(txIdCounterStart);
SimulationLoadTestDriver.runSimulation(LOGGER, ignite);
LOGGER.info("Simulation load test execution completed");
}
catch (Throwable e) {
LOGGER.error("Simulation load test execution failed", e);
throw new RuntimeException("Simulation load test execution failed", e);
}
finally {
if (ignite != null) {
ignite.close();
}
CassandraHelper.releaseCassandraResources();
}
}
示例2: stopCluster
import org.apache.ignite.Ignite; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public void stopCluster() {
clientNode.services().cancelAll();
for (Ignite server : servers) {
server.executorService().shutdownNow();
server.close();
}
}
示例3: stopCluster
import org.apache.ignite.Ignite; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void stopCluster() {
for (Ignite server : servers) {
server.executorService().shutdownNow();
server.close();
}
}
示例4: dropSchemaAndDatabase
import org.apache.ignite.Ignite; //导入方法依赖的package包/类
@Override
public void dropSchemaAndDatabase(SessionFactory sessionFactory) {
if ( Ignition.allGrids().size() > 1 ) { // some tests doesn't stop DatastareProvider
String currentGridName = getProvider( sessionFactory ).getGridName();
for ( Ignite grid : Ignition.allGrids() ) {
if ( !Objects.equals( currentGridName, grid.name() ) ) {
grid.close();
}
}
}
}
示例5: tearDown
import org.apache.ignite.Ignite; //导入方法依赖的package包/类
/**
* Stops this driver by performing necessary cleanup actions.
*/
protected void tearDown(Ignite ignite) {
if (ignite != null) {
ignite.close();
}
}
示例6: stopCluster
import org.apache.ignite.Ignite; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void stopCluster() {
for (Ignite server : servers) {
server.close();
}
}