Removing deployId from config, should be replaced with patterns in deployment configuration that is checked towards the address

This commit is contained in:
Viktor Klang 2011-09-19 15:20:52 +02:00
parent f993219f91
commit b66d45ec6c
14 changed files with 43 additions and 99 deletions

View file

@ -53,11 +53,7 @@ object Pi extends App {
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker])
// wrap them with a load-balancing router
val router = Routing.actorOf(
RoutedProps.apply()
.withConnections(workers)
.withRoundRobinRouter
.withDeployId("pi"))
val router = Routing.actorOf(RoutedProps().withConnections(workers).withRoundRobinRouter, "pi")
// phase 1, can accept a Calculate message
def scatter: Receive = {