Merge branch 'master' of github.com:jboner/akka
This commit is contained in:
commit
013656eb00
3 changed files with 4 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ class ConfigSpec extends WordSpec with MustMatchers {
|
|||
getInt("akka.actor.timeout") must equal(Some(5))
|
||||
getInt("akka.actor.throughput") must equal(Some(5))
|
||||
getInt("akka.actor.throughput-deadline-time") must equal(Some(-1))
|
||||
getInt("akka.actor.deployment.service-ping.clustered.replication-factor") must equal(Some(3))
|
||||
|
||||
getString("akka.cluster.layer") must equal(Some("akka.remote.netty.NettyRemoteSupport"))
|
||||
getInt("akka.cluster.server.port") must equal(Some(2552))
|
||||
|
|
|
|||
|
|
@ -179,8 +179,9 @@ class Configuration(val map: Map[String, Any]) {
|
|||
|
||||
def getSection(name: String): Option[Configuration] = {
|
||||
val l = name.length + 1
|
||||
val pattern = name+"."
|
||||
val m = map.collect {
|
||||
case (k, v) if k.startsWith(name) && !k.equals("replication-factor") ⇒ (k.substring(l), v)
|
||||
case (k, v) if k.startsWith(pattern) ⇒ (k.substring(l), v)
|
||||
}
|
||||
if (m.isEmpty) None
|
||||
else Some(new Configuration(m))
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ akka {
|
|||
# available: "host:<hostname>", "ip:<ip address>" and "node:<node name>"
|
||||
# default is "host:localhost"
|
||||
|
||||
replication-factor = 3 # number of actor instances in the cluster
|
||||
replication-factor = 3 # number of actor instances in the cluster
|
||||
# available: positive integer (0-N) or the string "auto" for auto-scaling
|
||||
# if "auto" is used then 'home' has no meaning
|
||||
# default is '0', meaning no replicas;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue