Use the router actor as cluster listener, see #2103

* Removed need for extra actor that subscribes to cluster
  events
* ClusterRouterActor is the router actor and aslo subscribes
* Less scary initialization, and safe calls to createRoutees
* Intercept ClusterDomainEvent to route them to ClusterRouterActor
  instead of to the routees
This commit is contained in:
Patrik Nordwall 2012-08-30 12:13:50 +02:00
parent ba5df98740
commit e422d188c2
2 changed files with 61 additions and 32 deletions

View file

@ -160,7 +160,7 @@ abstract class ClusterRoundRobinRoutedActorSpec extends MultiNodeSpec(ClusterRou
enterBarrier("after-4")
}
"deploy to other node when a node is down" taggedAs LongRunningTest in {
"deploy to other node when a node becomes down" taggedAs LongRunningTest in {
runOn(first) {
def currentRoutees = Await.result(router2 ? CurrentRoutees, 5 seconds).asInstanceOf[RouterRoutees].routees