cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clecl...@apache.org
Subject svn commit: r894199 - in /cxf/branches/2.2.x-fixes: ./ rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
Date Mon, 28 Dec 2009 16:40:50 GMT
Author: cleclerc
Date: Mon Dec 28 16:40:50 2009
New Revision: 894199

URL: http://svn.apache.org/viewvc?rev=894199&view=rev
Log:
Merged revisions 894197 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r894197 | cleclerc | 2009-12-28 17:35:27 +0100 (Mon, 28 Dec 2009) | 1 line
  
  Add logs to ease debugging.
........

Modified:
    cxf/branches/2.2.x-fixes/   (props changed)
    cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
    cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java

Propchange: cxf/branches/2.2.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Dec 28 16:40:50 2009
@@ -1 +1 @@
-/cxf/trunk:891375-891393,891452,891817,891827,891859,891945-891946,892056,892307,892360,892664,892890,892920,892953,892988,893011,893250,893388-893389,893563,893773
+/cxf/trunk:891375-891393,891452,891817,891827,891859,891945-891946,892056,892307,892360,892664,892890,892920,892953,892988,893011,893250,893388-893389,893563,893773,894197

Propchange: cxf/branches/2.2.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java?rev=894199&r1=894198&r2=894199&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
(original)
+++ cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
Mon Dec 28 16:40:50 2009
@@ -89,6 +89,9 @@
             counters.put(on, counter);
         }
         counter.increase(mhtr);        
+        if (LOG.isLoggable(Level.FINE)) {
+            LOG.fine("Increase counter " + on + " with " + mhtr);
+        }
     }
     
     //find a counter

Modified: cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java?rev=894199&r1=894198&r2=894199&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
(original)
+++ cxf/branches/2.2.x-fixes/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
Mon Dec 28 16:40:50 2009
@@ -70,4 +70,14 @@
     public void setFaultMode(FaultMode faultMode) {
         this.faultMode = faultMode;
     }
+    
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append("MessageHandlingTimeRecorder@").append(Integer.toHexString(hashCode())).append("[");
+        sb.append("beginTime: ").append(beginTime).append(", ");
+        sb.append("endTime: ").append(endTime).append(", ");
+        sb.append("faultMode: ").append(faultMode).append("]");
+        return sb.toString();
+    }
 }



Mime
View raw message