in drools-benchmarks-parent/drools-benchmarks-reliability/src/main/java/org/drools/benchmarks/reliability/AbstractReliabilityBenchmark.java [90:122]
public void setupEnvironment() {
FileUtils.deleteDirectory(Path.of(GLOBAL_STATE_DIR));
if (mode == H2MVSTORE){
H2MVStoreStorageManager.cleanUpDatabase();
System.setProperty(DROOLS_RELIABILITY_MODULE_TEST, "H2MVSTORE");
configureServicePriorities();
}else {
System.setProperty(DROOLS_RELIABILITY_MODULE_TEST, "INFINISPAN");
if (mode != NONE) {
System.setProperty(INFINISPAN_STORAGE_MODE, mode.getInfinispanStorageMode());
}
if (mode == INFINISPAN_EMBEDDED || mode == INFINISPAN_REMOTE) {
System.setProperty(INFINISPAN_STORAGE_ALLOWED_PACKAGES, "org.drools.benchmarks.common.model");
}
if (mode == INFINISPAN_REMOTEPROTO) {
System.setProperty(INFINISPAN_STORAGE_MARSHALLER, "PROTOSTREAM");
setupSerializationContext();
}
configureServicePriorities();
if (mode == INFINISPAN_REMOTE || mode == INFINISPAN_REMOTEPROTO) {
container = new InfinispanContainer();
container.start();
InfinispanStorageManager storageManager = (InfinispanStorageManager) StorageManagerFactory.get().getStorageManager();
RemoteCacheManager remoteCacheManager = container.getRemoteCacheManager(storageManager.provideAdditionalRemoteConfigurationBuilder());
storageManager.setRemoteCacheManager(remoteCacheManager);
}
}
}