Skip to content
This repository
Browse code

Fix example code.

  • Loading branch information...
commit 204da4f1fda70a762fe5f0e8877ac5604b177439 1 parent 70ac8f7
authored October 22, 2012

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  Example.scala
7  Example.scala
@@ -18,8 +18,8 @@ import java.util.Random
18 18
 import java.util.concurrent.CountDownLatch
19 19
 import com.boundary.ordasity.{Cluster, ClusterConfig, SmartListener}
20 20
 import com.codahale.logula.Logging
21  
-import com.yammer.metrics.Meter
22  
-import com.twitter.zookeeper.ZooKeeperClient
  21
+import com.yammer.metrics.scala.Meter
  22
+import com.twitter.common.zookeeper.ZooKeeperClient
23 23
 import java.util.concurrent.{ScheduledThreadPoolExecutor, TimeUnit, ScheduledFuture}
24 24
 import java.util.{HashMap, TimerTask}
25 25
 
@@ -31,7 +31,8 @@ val pool = new ScheduledThreadPoolExecutor(1)
31 31
 
32 32
 val futures = new HashMap[String, ScheduledFuture[_]]
33 33
 
34  
-val config = new ClusterConfig("localhost:2181").
  34
+val config = new ClusterConfig().
  35
+  setHosts("localhost:2181").
35 36
   setAutoRebalance(true).
36 37
   setRebalanceInterval(15).
37 38
   useSmartBalancing(true).

0 notes on commit 204da4f

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