- it is customary to use class name for categorizing logs, hence we should support it; class is taken from logSource.getClass - update SLF4J module to use logClass as category and set logSource in MDC "akkaSource" - add docs
35 lines
955 B
Scala
35 lines
955 B
Scala
/**
|
|
* Copyright (C) 2009-2011 Scalable Solutions AB <http://scalablesolutions.se>
|
|
*/
|
|
package akka.remote
|
|
|
|
import akka.testkit._
|
|
import akka.actor.{ ActorSystem, DeathWatchSpec }
|
|
import com.typesafe.config.ConfigFactory
|
|
|
|
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
|
|
class RemoteDeathWatchSpec extends AkkaSpec(ConfigFactory.parseString("""
|
|
akka {
|
|
actor {
|
|
provider = "akka.remote.RemoteActorRefProvider"
|
|
deployment {
|
|
/watchers.remote = "akka://other@127.0.0.1:2666"
|
|
}
|
|
debug.lifecycle = on
|
|
}
|
|
cluster.nodename = buh
|
|
loglevel = DEBUG
|
|
remote.server {
|
|
hostname = "127.0.0.1"
|
|
port = 2665
|
|
}
|
|
}
|
|
""")) with ImplicitSender with DefaultTimeout with DeathWatchSpec {
|
|
|
|
val other = ActorSystem("other", ConfigFactory.parseString("akka.remote.server.port=2666").withFallback(system.settings.config))
|
|
|
|
override def atTermination() {
|
|
other.shutdown()
|
|
}
|
|
|
|
}
|