[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/impl ...
Ben Wang
bwang at jboss.com
Wed Jul 26 22:24:29 EDT 2006
User: bwang
Date: 06/07/26 22:24:29
Modified: src-50/org/jboss/cache/pojo/impl PojoCacheDelegate.java
Log:
log
Revision Changes Path
1.9 +18 -15 JBossCache/src-50/org/jboss/cache/pojo/impl/PojoCacheDelegate.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PojoCacheDelegate.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/impl/PojoCacheDelegate.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- PojoCacheDelegate.java 17 Jul 2006 09:58:07 -0000 1.8
+++ PojoCacheDelegate.java 27 Jul 2006 02:24:29 -0000 1.9
@@ -88,15 +88,11 @@
// we already have an advised instance
if (log.isDebugEnabled())
{
- log.debug("getObject(): fqn: " + fqn + " retrieved from existing instance directly. ");
+ log.debug("getObject(): id: " + fqn + " retrieved from existing instance directly. ");
}
return pojo;
}
- if (log.isDebugEnabled())
- {
- log.debug("getObject(): fqn: " + fqn);
- }
// OK. So we are here meaning that this is a failover or passivation since the transient
// pojo instance is not around. Let's also make sure the right classloader is used
// as well.
@@ -127,16 +123,11 @@
{
if (log.isDebugEnabled())
{
- log.debug("putObject(): fqn: " + fqn + " pojo is already in the cache. Return right away.");
+ log.debug("putObject(): id: " + fqn + " pojo is already in the cache. Return right away.");
}
return obj;
}
- if (log.isDebugEnabled())
- {
- log.debug("putObject(): fqn: " + fqn);
- }
-
// remove old value before overwriting it. This is necessary to detach any interceptor.
// TODO Or can we simply walk thru that somewhere? Well, there is also implication of Collection though
pCache_.removeObject(fqn);
@@ -148,6 +139,12 @@
// This create a PojoReference to store a pointer to the real fqn.
Fqn internalFqn = createPojoReference(fqn, obj);
+ if (log.isDebugEnabled())
+ {
+ log.debug("putObject(): id: " + fqn + " will store the pojo in the internal area: "
+ + internalFqn);
+ }
+
if( (obj instanceof Advised || obj instanceof ClassProxy) && isMultipleReferencedPut(obj))
{
@@ -183,7 +180,7 @@
internal_.putPojoReference(fqn, pojoReference);
if (log.isDebugEnabled())
{
- log.debug("put(): inserting PojoReference with fqn: " + fqn);
+ log.debug("put(): inserting PojoReference with id: " + fqn);
}
// store obj in the internal fqn
return internalFqn;
@@ -205,7 +202,7 @@
// clazz and pojoReference can be not null if this node is the replicated brother node.
if (log.isTraceEnabled())
{
- log.trace("removeObject(): clazz is null. fqn: " + fqn + " No need to remove.");
+ log.trace("removeObject(): clazz is null. id: " + fqn + " No need to remove.");
}
return null;
}
@@ -215,7 +212,8 @@
if (log.isDebugEnabled())
{
- log.debug("removeObject(): removing object from fqn: " + fqn);
+ log.debug("removeObject(): removing object from id: " + fqn
+ + " with the corresponding internal id: " + internalFqn);
}
Object result = pCache_.getObject(internalFqn);
@@ -262,7 +260,7 @@
findChildObjects(fqn, map);
if (log.isDebugEnabled())
{
- log.debug("_findObjects(): Fqn: " + fqn + " size of pojos found: " + map.size());
+ log.debug("_findObjects(): id: " + fqn + " size of pojos found: " + map.size());
}
return map;
}
@@ -280,6 +278,11 @@
// This is the real location for the pojo.
Fqn internalFqn = pojoReference.getFqn();
Class clazz = pojoReference.getPojoClass();
+ if (log.isDebugEnabled())
+ {
+ log.debug("getObject(): id: " + fqn + " with a corresponding internal id: "
+ +internalFqn);
+ }
/**
* Reconstruct the managed POJO
More information about the jboss-cvs-commits
mailing list