2016-06-23 11:58:54 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2016 Lightbend Inc. <http://www.lightbend.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package akka.remote.artery.compress
|
|
|
|
|
|
2016-09-02 08:52:09 +01:00
|
|
|
import akka.testkit.SocketUtil
|
2016-06-23 11:58:54 +02:00
|
|
|
import com.typesafe.config.ConfigFactory
|
|
|
|
|
|
|
|
|
|
object CompressionIntegrationSpec {
|
|
|
|
|
// need the port before systems are started
|
|
|
|
|
val portB = SocketUtil.temporaryServerAddress("localhost", udp = true).getPort
|
|
|
|
|
|
|
|
|
|
val commonConfig = ConfigFactory.parseString(s"""
|
|
|
|
|
akka {
|
|
|
|
|
loglevel = INFO
|
2016-07-04 15:59:44 +02:00
|
|
|
|
2016-09-02 08:52:09 +01:00
|
|
|
actor {
|
|
|
|
|
provider = "akka.remote.RemoteActorRefProvider"
|
|
|
|
|
|
|
|
|
|
serializers {
|
|
|
|
|
test-message = "akka.remote.artery.compress.TestMessageSerializer"
|
|
|
|
|
}
|
|
|
|
|
serialization-bindings {
|
|
|
|
|
"akka.remote.artery.compress.TestMessage" = test-message
|
|
|
|
|
}
|
2016-06-23 11:58:54 +02:00
|
|
|
}
|
2016-09-02 08:52:09 +01:00
|
|
|
remote.artery.enabled = on
|
2016-06-23 11:58:54 +02:00
|
|
|
remote.artery.hostname = localhost
|
|
|
|
|
remote.artery.port = 0
|
|
|
|
|
remote.handshake-timeout = 10s
|
2016-07-04 15:59:44 +02:00
|
|
|
|
2016-07-01 11:54:57 +02:00
|
|
|
remote.artery.advanced.compression {
|
2016-07-07 10:27:24 +02:00
|
|
|
actor-refs.advertisement-interval = 3 seconds
|
2016-09-02 08:52:09 +01:00
|
|
|
manifests.advertisement-interval = 3 seconds
|
2016-07-01 11:54:57 +02:00
|
|
|
}
|
2016-07-04 15:59:44 +02:00
|
|
|
|
2016-06-23 11:58:54 +02:00
|
|
|
}
|
|
|
|
|
""")
|
|
|
|
|
|
|
|
|
|
val configB = ConfigFactory.parseString(s"akka.remote.artery.port = $portB")
|
|
|
|
|
.withFallback(commonConfig)
|
|
|
|
|
}
|