use of org.apache.geode.distributed.DistributedSystem in project geode by apache.
the class HARegionQueueDUnitTest method createCache.
/**
* create cache
*/
private InternalCache createCache() throws CacheException {
Properties props = new Properties();
DistributedSystem ds = getSystem(props);
ds.disconnect();
ds = getSystem(props);
InternalCache cache = null;
cache = (InternalCache) CacheFactory.create(ds);
if (cache == null) {
// TODO: never throw an anonymous inner class
throw new CacheException("CacheFactory.create() returned null ") {
};
}
return cache;
}
use of org.apache.geode.distributed.DistributedSystem in project geode by apache.
the class HARQueueNewImplDUnitTest method createCache.
private void createCache(Properties props) throws Exception {
props.setProperty(DELTA_PROPAGATION, "false");
DistributedSystem ds = getSystem(props);
ds.disconnect();
ds = getSystem(props);
assertNotNull(ds);
cache = CacheFactory.create(ds);
assertNotNull(cache);
}
use of org.apache.geode.distributed.DistributedSystem in project geode by apache.
the class ClearPropagationDUnitTest method createCache.
private void createCache(Properties props) throws Exception {
DistributedSystem ds = getSystem(props);
cache = CacheFactory.create(ds);
assertNotNull(cache);
}
use of org.apache.geode.distributed.DistributedSystem in project geode by apache.
the class Bug36269DUnitTest method createCache.
private void createCache(Properties props) throws Exception {
DistributedSystem ds = getSystem(props);
cache = CacheFactory.create(ds);
assertNotNull(cache);
}
use of org.apache.geode.distributed.DistributedSystem in project geode by apache.
the class CacheServerTransactionsDUnitTest method createCache.
private void createCache(Properties props) throws Exception {
DistributedSystem ds = getSystem(props);
assertNotNull(ds);
ds.disconnect();
ds = getSystem(props);
cache = CacheFactory.create(ds);
assertNotNull(cache);
}
Aggregations