[infinispan-commits] Infinispan SVN: r167 - trunk/core/src/main/java/org/infinispan/commands/remote.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Fri Apr 24 09:03:54 EDT 2009
Author: manik.surtani at jboss.com
Date: 2009-04-24 09:03:54 -0400 (Fri, 24 Apr 2009)
New Revision: 167
Modified:
trunk/core/src/main/java/org/infinispan/commands/remote/ClusteredGetCommand.java
Log:
More debugging
Modified: trunk/core/src/main/java/org/infinispan/commands/remote/ClusteredGetCommand.java
===================================================================
--- trunk/core/src/main/java/org/infinispan/commands/remote/ClusteredGetCommand.java 2009-04-24 13:03:08 UTC (rev 166)
+++ trunk/core/src/main/java/org/infinispan/commands/remote/ClusteredGetCommand.java 2009-04-24 13:03:54 UTC (rev 167)
@@ -31,9 +31,9 @@
import org.infinispan.logging.LogFactory;
/**
- * Issues a clustered get call, for use primarily by the {@link ClusteredCacheLoader}. This is not a {@link
- * org.infinispan.commands.VisitableCommand} and hence not passed up the {@link org.infinispan.interceptors.base.CommandInterceptor}
- * chain.
+ * Issues a clustered get call, for use primarily by the {@link org.infinispan.loader.cluster.ClusterCacheLoader}. This
+ * is not a {@link org.infinispan.commands.VisitableCommand} and hence not passed up the {@link
+ * org.infinispan.interceptors.base.CommandInterceptor} chain.
* <p/>
*
* @author Mircea.Markus at jboss.com
@@ -43,6 +43,7 @@
public static final byte COMMAND_ID = 22;
private static final Log log = LogFactory.getLog(ClusteredGetCommand.class);
+ private static final boolean trace = log.isTraceEnabled();
private Object key;
private String cacheName;
@@ -67,12 +68,14 @@
* Invokes a logical "get(key)" on a remote cache and returns results.
*
* @param context invocation context, ignored.
- * @return returns an <code>CacheEntry</code> or null, if no entry is found.
+ * @return returns an <code>CacheEntry</code> or null, if no entry is found.
*/
public CacheEntry perform(InvocationContext context) throws Throwable {
if (key != null) {
InternalCacheEntry cacheEntry = dataContainer.get(key);
+ if (trace) log.trace("Found InternalCacheEntry {0} for key {1}", cacheEntry, key);
if (cacheEntry == null) {
+ if (trace) log.trace("Checking in cache loader");
context.setOriginLocal(false); //to make sure that if there is an ClusteredCl, this won't initiate a remote
// lookup
if (cacheLoaderManager != null && cacheLoaderManager.getCacheLoader() != null)
More information about the infinispan-commits
mailing list