clean up application structure

- introduce common parent for guardian and systemGuardian
- install deathWatch chain to ensure proper shutdown upon guardian’s
  death
- re-install stdout logger before detaching default loggers
- await app termination after running AkkaSpec tests (max 5sec, with
  warning logged if not stopped)
This commit is contained in:
Roland 2011-10-28 17:15:10 +02:00
parent 01d8b00a76
commit d1e0f411ef
7 changed files with 77 additions and 32 deletions

View file

@ -130,7 +130,7 @@ class DefaultScheduler extends Scheduler {
}
}
private[akka] def shutdown() { service.shutdown() }
private[akka] def shutdown() { service.shutdownNow() }
}
private object SchedulerThreadFactory extends ThreadFactory {