Author: mircea.markus
Date: 2008-01-03 05:02:41 -0500 (Thu, 03 Jan 2008)
New Revision: 4963
Modified:
cache-bench-fwk/trunk/src/org/cachebench/CacheBenchmarkRunner.java
cache-bench-fwk/trunk/src/org/cachebench/config/TestCase.java
cache-bench-fwk/trunk/src/org/cachebench/tests/SimpleTest.java
cache-bench-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java
Log:
enhanced logging
Modified: cache-bench-fwk/trunk/src/org/cachebench/CacheBenchmarkRunner.java
===================================================================
--- cache-bench-fwk/trunk/src/org/cachebench/CacheBenchmarkRunner.java 2008-01-03 09:46:10
UTC (rev 4962)
+++ cache-bench-fwk/trunk/src/org/cachebench/CacheBenchmarkRunner.java 2008-01-03 10:02:41
UTC (rev 4963)
@@ -137,11 +137,13 @@
private void warmupCache(TestCase test, CacheWrapper cache) throws Exception
{
+ logger.info("Warming up..");
CacheWarmupConfig warmupConfig = test.getCacheWarmupConfig();
logger.trace("Warmup config is: " + warmupConfig);
CacheWarmup warmup = (CacheWarmup)
Instantiator.getInstance().createClass(warmupConfig.getWarmupClass());
warmup.setConfigParams(warmupConfig.getParams());
warmup.warmup(cache);
+ logger.info("Warmup ended!");
}
/**
Modified: cache-bench-fwk/trunk/src/org/cachebench/config/TestCase.java
===================================================================
--- cache-bench-fwk/trunk/src/org/cachebench/config/TestCase.java 2008-01-03 09:46:10 UTC
(rev 4962)
+++ cache-bench-fwk/trunk/src/org/cachebench/config/TestCase.java 2008-01-03 10:02:41 UTC
(rev 4963)
@@ -9,7 +9,7 @@
private String name;
private String cacheWrapper;
- private boolean stopOnFailure;
+ private boolean stopOnFailure = true;
private List<TestConfig> tests = new ArrayList<TestConfig>();
Modified: cache-bench-fwk/trunk/src/org/cachebench/tests/SimpleTest.java
===================================================================
--- cache-bench-fwk/trunk/src/org/cachebench/tests/SimpleTest.java 2008-01-03 09:46:10 UTC
(rev 4962)
+++ cache-bench-fwk/trunk/src/org/cachebench/tests/SimpleTest.java 2008-01-03 10:02:41 UTC
(rev 4963)
@@ -41,7 +41,7 @@
result.setTestTime(new Date());
result.setTestType(testName);
- log.info("Performing PUTs");
+ log.info("Performing '" + sampleSize + "' PUTs");
DescriptiveStatistics putStats = doPuts(cache, valueClass, sampleSize);
executor = Executors.newFixedThreadPool(numThreads);
log.info("Performing GETs");
Modified: cache-bench-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java
===================================================================
--- cache-bench-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java 2008-01-03
09:46:10 UTC (rev 4962)
+++ cache-bench-fwk/trunk/src/org/cachebench/warmup/PutGetCacheWarmup.java 2008-01-03
10:02:41 UTC (rev 4963)
@@ -17,7 +17,7 @@
public void performWarmupOperations(CacheWrapper wrapper) throws Exception
{
Integer opCount = Integer.parseInt(getConfigParam("operationCount"));
- log.trace("Cache launched, performing " + opCount + " put and get
operations ");
+ log.info("Cache launched, performing " + opCount + " put and get
operations ");
for (int i = 0; i < opCount; i++)
{
wrapper.put(String.valueOf(opCount), String.valueOf(opCount));