rename app: ActorSystem to system everywhere
This commit is contained in:
parent
c31695bef4
commit
d381b72061
69 changed files with 344 additions and 343 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
// object Pi extends App {
|
||||
|
||||
// val app = ActorSystem()
|
||||
// val system = ActorSystem()
|
||||
|
||||
// calculate(nrOfWorkers = 4, nrOfElements = 10000, nrOfMessages = 10000)
|
||||
|
||||
|
|
@ -56,10 +56,10 @@
|
|||
// var start: Long = _
|
||||
|
||||
// // create the workers
|
||||
// val workers = Vector.fill(nrOfWorkers)(app.actorOf[Worker])
|
||||
// val workers = Vector.fill(nrOfWorkers)(system.actorOf[Worker])
|
||||
|
||||
// // wrap them with a load-balancing router
|
||||
// val router = app.actorOf(RoutedProps().withRoundRobinRouter.withLocalConnections(workers), "pi")
|
||||
// val router = system.actorOf(RoutedProps().withRoundRobinRouter.withLocalConnections(workers), "pi")
|
||||
|
||||
// // message handler
|
||||
// def receive = {
|
||||
|
|
@ -102,7 +102,7 @@
|
|||
// val latch = new CountDownLatch(1)
|
||||
|
||||
// // create the master
|
||||
// val master = app.actorOf(new Master(nrOfWorkers, nrOfMessages, nrOfElements, latch))
|
||||
// val master = system.actorOf(new Master(nrOfWorkers, nrOfMessages, nrOfElements, latch))
|
||||
|
||||
// // start the calculation
|
||||
// master ! Calculate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue