Author: mircea.markus
Date: 2008-07-21 15:40:17 -0400 (Mon, 21 Jul 2008)
New Revision: 6351
Modified:
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java
Log:
added sleep statement as the cache replication is async
Modified:
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java
===================================================================
---
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java 2008-07-21
19:23:00 UTC (rev 6350)
+++
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/src/org/cachebench/cachewrappers/JBossCache300Wrapper.java 2008-07-21
19:40:17 UTC (rev 6351)
@@ -65,6 +65,11 @@
public Object getReplicatedData(List<String> path, String key) throws Exception
{
+ if (!cache.getConfiguration().getCacheMode().isSynchronous())
+ {
+ log.info("Sleeping 5 seconds because the cache is replicated
asynchronious!");
+ Thread.sleep(5000);
+ }
Option option = cache.getInvocationContext().getOptionOverrides();
option.setForceDataGravitation(true);
return cache.get(Fqn.fromList((List) path, true), key);
Show replies by date