Protobuf serializers for remote deployment #22332

This commit is contained in:
Johan Andrén 2017-03-16 15:12:35 +01:00 committed by GitHub
parent 3e4f44765c
commit 3643f18ded
24 changed files with 12700 additions and 314 deletions

View file

@ -4,7 +4,10 @@
package akka.cluster.protobuf
import akka.cluster._
import akka.actor.{ ExtendedActorSystem, Address }
import akka.actor.{ Address, ExtendedActorSystem }
import akka.cluster.routing.{ ClusterRouterPool, ClusterRouterPoolSettings }
import akka.routing.{ DefaultOptimalSizeExploringResizer, RoundRobinPool }
import collection.immutable.SortedSet
import akka.testkit.AkkaSpec
@ -73,4 +76,20 @@ class ClusterMessageSerializerSpec extends AkkaSpec(
checkSerialization(InternalClusterAction.Welcome(uniqueAddress, g2))
}
}
"Cluster router pool" must {
"be serializable" in {
checkSerialization(ClusterRouterPool(
RoundRobinPool(
nrOfInstances = 4
),
ClusterRouterPoolSettings(
totalInstances = 2,
maxInstancesPerNode = 5,
allowLocalRoutees = true,
useRole = Some("Richard, Duke of Gloucester")
)
))
}
}
}