Author: mircea.markus
Date: 2008-07-23 20:53:25 -0400 (Wed, 23 Jul 2008)
New Revision: 6388
Modified:
benchmarks/benchmark-fwk/trunk/cache-products/coherence-3.3.1/src/org/cachebench/cachewrappers/Coherence331Wrapper.java
Log:
bug fixing
Modified:
benchmarks/benchmark-fwk/trunk/cache-products/coherence-3.3.1/src/org/cachebench/cachewrappers/Coherence331Wrapper.java
===================================================================
---
benchmarks/benchmark-fwk/trunk/cache-products/coherence-3.3.1/src/org/cachebench/cachewrappers/Coherence331Wrapper.java 2008-07-24
00:48:02 UTC (rev 6387)
+++
benchmarks/benchmark-fwk/trunk/cache-products/coherence-3.3.1/src/org/cachebench/cachewrappers/Coherence331Wrapper.java 2008-07-24
00:53:25 UTC (rev 6388)
@@ -27,17 +27,17 @@
String trimmedConfig = configuraton.trim();
if (trimmedConfig.indexOf("repl") == 0)
{
- cache = CacheFactory.getCache("replicatedCache");
+ cache = CacheFactory.getCache("repl-CacheBenchmarkFramework");
}
if (trimmedConfig.indexOf("dist") == 0)
{
- cache = CacheFactory.getCache("replicatedCache");
+ cache = CacheFactory.getCache("dist-CacheBenchmarkFramework");
}
throw new RuntimeException("Invalid configuration ('" + trimmedConfig
+ "'). Configuration name should start with: 'dist' or
'repl'");
}
public void tearDown() throws Exception {
- cache.release();
+ if (cache != null) cache.release();
}
public void put(List<String> path, Object key, Object value) throws Exception {
Show replies by date