activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1031943 - /activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/Main.scala
Date Sat, 06 Nov 2010 02:55:37 GMT
Author: chirino
Date: Sat Nov  6 02:55:37 2010
New Revision: 1031943

URL: http://svn.apache.org/viewvc?rev=1031943&view=rev
Log:
Updated to the latest hawtdispatch api.

Modified:
    activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/Main.scala

Modified: activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/Main.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/Main.scala?rev=1031943&r1=1031942&r2=1031943&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/Main.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/Main.scala
Sat Nov  6 02:55:37 2010
@@ -23,7 +23,7 @@ import org.mortbay.jetty.nio.SelectChann
 import org.mortbay.jetty.webapp.WebAppContext
 import org.apache.commons.logging.LogFactory
 import java.io.File
-import org.fusesource.hawtdispatch.DispatchProfiler
+import org.fusesource.hawtdispatch.Dispatch
 
 /**
  * <p>
@@ -70,8 +70,8 @@ object Main {
             import collection.JavaConversions._
 
             // Only display is we see some long wait or run times..
-            val m = DispatchProfiler.metrics.toList.flatMap{x=>
-              if( x.total_wait_time_ns > 1000000 ||  x.total_run_time_ns > 1000000
) {
+            val m = Dispatch.metrics.toList.flatMap{x=>
+              if( x.totalWaitTimeNS > 1000000 ||  x.totalRunTimeNS > 1000000 ) {
                 Some(x)
               } else {
                 None



Mime
View raw message