User: ejort
Date: 02/01/04 17:12:46
Modified: src/main/org/jboss/ha/framework/server
DistributedReplicantManagerImpl.java
HAPartitionImpl.java HARMIServerImpl.java
Log:
Guarded debug logging.
Revision Changes Path
1.10 +4 -3
jbossmx/src/main/org/jboss/ha/framework/server/DistributedReplicantManagerImpl.java
Index: DistributedReplicantManagerImpl.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/DistributedReplicantManagerImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DistributedReplicantManagerImpl.java 2001/11/26 12:24:07 1.9
+++ DistributedReplicantManagerImpl.java 2002/01/05 01:12:46 1.10
@@ -27,7 +27,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Sacha Labourey</a>.
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*
* <p><b>Revisions:</b><br>
* <p><b>2001/10/31: marcf</b>
@@ -336,7 +336,8 @@
return;
}
- log.debug("notifying " + listeners.size() + " listeners for key change: "
+ key);
+ if (log.isDebugEnabled())
+ log.debug("notifying " + listeners.size() + " listeners for key change:
" + key);
for (int i = 0; i < listeners.size(); i++)
{
DistributedReplicantManager.ReplicantListener listener =
(DistributedReplicantManager.ReplicantListener)listeners.get(i);
@@ -344,7 +345,7 @@
}
}
}
-
+
////////////////////
// Group membership API
////////////////////
1.13 +4 -3
jbossmx/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
Index: HAPartitionImpl.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- HAPartitionImpl.java 2001/12/31 20:40:50 1.12
+++ HAPartitionImpl.java 2002/01/05 01:12:46 1.13
@@ -33,7 +33,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Sacha Labourey</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>.
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
*
* <p><b>Revisions:</b><br>
*/
@@ -136,7 +136,7 @@
// Update the initial view id
//
this.currentViewId = view.GetVid().GetId();
-
+
// We must now syncrhonize new state transfer subscriber
//
boolean rc = channel.GetState(null, 8000);
@@ -183,7 +183,8 @@
{
String key = (String)keys.next();
HAPartition.HAPartitionStateTransfer subscriber =
(HAPartition.HAPartitionStateTransfer)stateHandlers.get(key);
- log.debug("GetState for " + key);
+ if (log.isDebugEnabled())
+ log.debug("GetState for " + key);
state.put(key, subscriber.getCurrentState());
}
return state;
1.12 +3 -2
jbossmx/src/main/org/jboss/ha/framework/server/HARMIServerImpl.java
Index: HARMIServerImpl.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/HARMIServerImpl.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- HARMIServerImpl.java 2002/01/03 04:00:52 1.11
+++ HARMIServerImpl.java 2002/01/05 01:12:46 1.12
@@ -33,7 +33,7 @@
*
* @author [EMAIL PROTECTED]
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*
* <p><b>Revisions:</b><br>
* <p><b>2001/11/09: Sacha Labourey</b>
@@ -199,7 +199,8 @@
public void replicantsChanged(String key, ArrayList newReplicants)
{
- log.debug("replicantsChanged '" + key + "' to " + newReplicants.size());
+ if (log.isDebugEnabled())
+ log.debug("replicantsChanged '" + key + "' to " + newReplicants.size());
synchronized(replicants)
{
// client has reference to replicants so it will automatically get
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development