Skip to content
Browse files

upgrade metrics to 2.0.0-RC0

  • Loading branch information...
1 parent b72051a commit 6fc97f357e3ad313b126f99dd4bce4383abfc757 @moonpolysoft moonpolysoft committed
View
2 Example.scala
@@ -18,7 +18,7 @@ import java.util.Random
import java.util.concurrent.CountDownLatch
import com.boundary.ordasity.{Cluster, ClusterConfig, SmartListener}
import com.codahale.logula.Logging
-import com.yammer.metrics.Meter
+import com.yammer.metrics.scala.Meter
import com.twitter.zookeeper.ZooKeeperClient
import java.util.concurrent.{ScheduledThreadPoolExecutor, TimeUnit, ScheduledFuture}
import java.util.{HashMap, TimerTask}
View
2 Readme.md
@@ -41,7 +41,7 @@ Ordasity is designed to spread persistent or long-lived workloads across several
Let's get started with an example. Here's how to build a clustered service in 25 lines of code with Ordasity:
- import com.yammer.metrics.Meter
+ import com.yammer.metrics.scala.Meter
import com.twitter.zookeeper.ZooKeeperClient
import com.boundary.ordasity.{Cluster, ClusterConfig, SmartListener}
View
12 pom.xml
@@ -24,6 +24,18 @@
</dependency>
<dependency>
+ <groupId>com.yammer.metrics</groupId>
+ <artifactId>metrics-core</artifactId>
+ <version>2.0.0-RC0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.yammer.metrics</groupId>
+ <artifactId>metrics-scala_${scala.version}</artifactId>
+ <version>2.0.0-RC0</version>
+ </dependency>
+
+ <dependency>
<groupId>com.codahale</groupId>
<artifactId>logula_${scala.version}</artifactId>
<version>2.1.3</version>
View
2 src/main/scala/com/boundary/ordasity/Cluster.scala
@@ -19,7 +19,7 @@ package com.boundary.ordasity
import com.codahale.jerkson.Json._
import com.codahale.logula.Logging
import com.twitter.zookeeper.ZooKeeperClient
-import com.yammer.metrics.{Meter, Instrumented}
+import com.yammer.metrics.scala.{Meter, Instrumented}
import java.nio.charset.Charset
import overlock.atomicmap.AtomicMap
View
2 src/main/scala/com/boundary/ordasity/ClusterListener.scala
@@ -16,7 +16,7 @@
package com.boundary.ordasity
-import com.yammer.metrics.Meter
+import com.yammer.metrics.scala.Meter
import com.twitter.zookeeper.ZooKeeperClient
trait Listener {

0 comments on commit 6fc97f3

Please sign in to comment.
Something went wrong with that request. Please try again.