Author: mircea.markus
Date: 2008-01-04 14:22:10 -0500 (Fri, 04 Jan 2008)
New Revision: 4994
Modified:
cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java
Log:
the Prim was enhanced to log the output of the run script
Modified: cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java
===================================================================
--- cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java 2008-01-04
19:03:15 UTC (rev 4993)
+++ cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java 2008-01-04
19:22:10 UTC (rev 4994)
@@ -53,7 +53,7 @@
public synchronized void sfStart() throws SmartFrogException, RemoteException
{
super.sfStart();
- log.trace("parsing the configuration...");
+ log.trace("Entered sfStart...");
try
{
String command = scriptToExec + " " + nodeIndex + " " +
cacheDistribution + " -DclusterSize=" + clusterSize;
@@ -77,6 +77,11 @@
log.error("Unexpected error:" + e.getMessage(), e);
throw new RemoteException("Unexpected error",e);
}
+ log.trace("Terminating the tests...");
+ TerminationRecord terminationRecord = new
TerminationRecord(TerminationRecord.NORMAL, "terminated the benchmark " +
+ getDescription(), null);
+ sfTerminate(terminationRecord);
+ log.debug("Test terminated successfully " + getDescription());
}
private File getFwkHomeDir()
@@ -97,4 +102,9 @@
super.sfTerminateWith(terminationRecord);
log.trace("sfTerminateWith called with value:" + terminationRecord);
}
+
+ public String getDescription()
+ {
+ return "( clusterSize:" + clusterSize + ", nodeIndex:" +
this.nodeIndex + " )";
+ }
}
Show replies by date