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

@ -107,7 +107,7 @@ class Dispatcher(
protected[akka] def shutdown {
val old = executorService.getAndSet(new LazyExecutorServiceWrapper(executorServiceFactory.createExecutorService))
if (old ne null)
old.shutdown()
old.shutdownNow()
}
/**