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

@ -109,12 +109,7 @@ public class Pi {
workers.add(worker);
}
router = Routing.actorOf(
RoutedProps.apply()
.withRoundRobinRouter()
.withConnections(workers)
.withDeployId("pi")
);
router = Routing.actorOf(RoutedProps.apply().withRoundRobinRouter().withConnections(workers), "pi");
}
// message handler

View file

@ -58,11 +58,7 @@ object Pi extends App {
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker])
// wrap them with a load-balancing router
val router = Routing.actorOf(
RoutedProps.default
.withRoundRobinRouter
.withConnections(workers)
.withDeployId("pi"))
val router = Routing.actorOf(RoutedProps().withRoundRobinRouter.withConnections(workers), "pi")
// message handler
def receive = {