rename akka.AkkaApplication to akka.actor.ActorSystem

Renaming it to System did not appeal after seeing that such a thing is
already imported from Predef ...
This commit is contained in:
Roland 2011-11-10 20:08:00 +01:00
parent c6e44ffef7
commit 945b1aedf9
79 changed files with 209 additions and 230 deletions

View file

@ -9,6 +9,7 @@ import static java.util.Arrays.asList;
import akka.actor.ActorRef;
import akka.actor.Actors;
import akka.actor.ActorSystem;
import akka.actor.UntypedActor;
import akka.actor.UntypedActorFactory;
import akka.routing.RoutedProps;
@ -21,11 +22,9 @@ import scala.collection.JavaConversions;
import java.util.LinkedList;
import java.util.concurrent.CountDownLatch;
import akka.AkkaApplication;
public class Pi {
private static final AkkaApplication app = new AkkaApplication();
private static final ActorSystem app = new ActorSystem();
public static void main(String[] args) throws Exception {
Pi pi = new Pi();

View file

@ -4,16 +4,15 @@
package akka.tutorial.first.scala
import akka.actor.{ Actor, PoisonPill }
import akka.actor.{ Actor, PoisonPill, ActorSystem }
import Actor._
import java.util.concurrent.CountDownLatch
import akka.routing.Routing.Broadcast
import akka.routing.{ RoutedProps, Routing }
import akka.AkkaApplication
object Pi extends App {
val app = AkkaApplication()
val app = ActorSystem()
calculate(nrOfWorkers = 4, nrOfElements = 10000, nrOfMessages = 10000)