[jbosscache-commits] JBoss Cache SVN: r5012 - cache-bench-fwk/trunk/src/org/cachebench/smartfrog.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Sun Jan 6 16:17:02 EST 2008
Author: mircea.markus
Date: 2008-01-06 16:17:01 -0500 (Sun, 06 Jan 2008)
New Revision: 5012
Modified:
cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java
Log:
Modified: cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java
===================================================================
--- cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java 2008-01-06 17:35:48 UTC (rev 5011)
+++ cache-bench-fwk/trunk/src/org/cachebench/smartfrog/CacheBenchmarkPrim.java 2008-01-06 21:17:01 UTC (rev 5012)
@@ -2,6 +2,7 @@
import org.smartfrog.sfcore.common.SmartFrogException;
import org.smartfrog.sfcore.common.SmartFrogResolutionException;
+import org.smartfrog.sfcore.common.SmartFrogLivenessException;
import org.smartfrog.sfcore.logging.LogSF;
import org.smartfrog.sfcore.prim.Prim;
import org.smartfrog.sfcore.prim.PrimImpl;
@@ -29,6 +30,11 @@
{
}
+ public void sfPing(Object o) throws SmartFrogLivenessException, RemoteException
+ {
+ super.sfPing(o); //To change body of overridden methods use File | Settings | File Templates.
+ }
+
public synchronized void sfDeploy() throws SmartFrogException, RemoteException
{
super.sfDeploy();
@@ -173,4 +179,14 @@
{
return "( clusterSize:" + clusterSize + ", nodeIndex:" + this.nodeIndex + " )";
}
+
+ /**
+ * Ugly HACK - seems like if the parent is pending in an sfRun, e.g. then it would not send hart beat checks
+ * to the childrens so they would consider a issues.
+ * Might be that this is not a totally proper scenarion for using the framework, but it solves our needs.
+ */
+ protected void sfLivenessFailure(Object source, Object target, Throwable failure)
+ {
+ log.warn("Recieved liveness error, ignoring. Source:" + source + ", target:" + target + ", failure: " + failure);
+ }
}
More information about the jbosscache-commits
mailing list