2012-01-31 15:00:46 +01:00
|
|
|
/**
|
|
|
|
|
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package akka.cluster
|
|
|
|
|
|
|
|
|
|
import akka.testkit.AkkaSpec
|
|
|
|
|
import akka.util.duration._
|
|
|
|
|
import akka.util.Duration
|
|
|
|
|
|
|
|
|
|
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
|
|
|
|
|
class ClusterConfigSpec extends AkkaSpec(
|
|
|
|
|
"""
|
|
|
|
|
akka {
|
|
|
|
|
actor {
|
|
|
|
|
provider = "akka.remote.RemoteActorRefProvider"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
""") {
|
|
|
|
|
|
|
|
|
|
"Clustering" must {
|
|
|
|
|
|
|
|
|
|
"be able to parse generic cluster config elements" in {
|
|
|
|
|
val settings = new ClusterSettings(system.settings.config, system.name)
|
|
|
|
|
import settings._
|
|
|
|
|
FailureDetectorThreshold must be(8)
|
|
|
|
|
FailureDetectorMaxSampleSize must be(1000)
|
2012-02-08 14:14:01 +01:00
|
|
|
NodeToJoin must be(None)
|
2012-02-07 16:53:49 +01:00
|
|
|
GossipInitialDelay must be(5 seconds)
|
2012-01-31 15:00:46 +01:00
|
|
|
GossipFrequency must be(1 second)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|