Renaming createActor to actorOf

This commit is contained in:
Viktor Klang 2011-10-18 17:56:23 +02:00
parent 3f258f8b63
commit 474787a81d
68 changed files with 343 additions and 343 deletions

View file

@ -58,10 +58,10 @@ object Pi extends App {
var start: Long = _
// create the workers
val workers = Vector.fill(nrOfWorkers)(app.createActor[Worker])
val workers = Vector.fill(nrOfWorkers)(app.actorOf[Worker])
// wrap them with a load-balancing router
val router = app.createActor(RoutedProps().withRoundRobinRouter.withLocalConnections(workers), "pi")
val router = app.actorOf(RoutedProps().withRoundRobinRouter.withLocalConnections(workers), "pi")
// message handler
def receive = {
@ -104,7 +104,7 @@ object Pi extends App {
val latch = new CountDownLatch(1)
// create the master
val master = app.createActor(new Master(nrOfWorkers, nrOfMessages, nrOfElements, latch))
val master = app.actorOf(new Master(nrOfWorkers, nrOfMessages, nrOfElements, latch))
// start the calculation
master ! Calculate