use of org.infinispan.configuration.cache.ConfigurationBuilder in project indy by Commonjava.
the class ScheduleTest method start.
@Before
public void start() throws Exception {
EmbeddedCassandraServerHelper.startEmbeddedCassandra();
CassandraConfig config = new CassandraConfig();
config.setEnabled(true);
config.setCassandraHost("localhost");
config.setCassandraPort(9142);
client = new CassandraClient(config);
ScheduleDBConfig scheduleDBConfig = new ScheduleDBConfig(SCHEDULE_KEYSPACE, 1, 60 * 60 * 1000, 3);
DefaultIndyConfiguration indyConfig = new DefaultIndyConfiguration();
indyConfig.setKeyspaceReplicas(1);
DefaultCacheManager cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
scheduleDB = new ScheduleDB(indyConfig, scheduleDBConfig, client, new CacheProducer(null, cacheManager, null));
}
use of org.infinispan.configuration.cache.ConfigurationBuilder in project indy by Commonjava.
the class ContentControllerTest method setupClass.
@BeforeClass
public static void setupClass() {
GlobalConfiguration globalConfiguration = new GlobalConfigurationBuilder().globalJmxStatistics().allowDuplicateDomains(true).build();
cacheManager = new DefaultCacheManager(globalConfiguration, new ConfigurationBuilder().simpleCache(true).build());
contentMetadata = cacheManager.getCache("content-metadata", true);
}
use of org.infinispan.configuration.cache.ConfigurationBuilder in project indy by Commonjava.
the class PromotionManagerTest method setupClass.
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
contentMetadata = cacheManager.getCache("content-metadata", true);
}
use of org.infinispan.configuration.cache.ConfigurationBuilder in project indy by Commonjava.
the class HttpProxyTest method setupClass.
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
contentMetadata = cacheManager.getCache("content-metadata", true);
}
use of org.infinispan.configuration.cache.ConfigurationBuilder in project indy by Commonjava.
the class FoloRecordCacheTest method setupClass.
// @Rule
// public TemporaryFolder temp = new TemporaryFolder();
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
sealed = cacheManager.getCache("sealed", true);
inProgress = cacheManager.getCache("in-progress", true);
}
Aggregations