more classic remoting leftovers
* fix several tests that were using akka.remote.netty.tcp config * replace akka.tcp with akka in more places * some doc cross references to remoting.md
This commit is contained in:
parent
18a3569a7e
commit
71e9bdc262
73 changed files with 284 additions and 322 deletions
|
|
@ -623,7 +623,7 @@ class ActorDocSpec extends AkkaSpec("""
|
|||
context.actorSelection("../*")
|
||||
//#selection-wildcard
|
||||
//#selection-remote
|
||||
context.actorSelection("akka.tcp://app@otherhost:1234/user/serviceB")
|
||||
context.actorSelection("akka://app@otherhost:1234/user/serviceB")
|
||||
//#selection-remote
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class ConfigDocSpec extends WordSpec with Matchers {
|
|||
|
||||
# '/user/actorA/actorB' is a remote deployed actor
|
||||
/actorA/actorB {
|
||||
remote = "akka.tcp://sampleActorSystem@127.0.0.1:2553"
|
||||
remote = "akka://sampleActorSystem@127.0.0.1:2553"
|
||||
}
|
||||
|
||||
# all direct children of '/user/actorC' have a dedicated dispatcher
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ object SharedLeveldbPluginDocSpec {
|
|||
//#shared-store-usage
|
||||
trait SharedStoreUsage extends Actor {
|
||||
override def preStart(): Unit = {
|
||||
context.actorSelection("akka.tcp://example@127.0.0.1:2552/user/store") ! Identify(1)
|
||||
context.actorSelection("akka://example@127.0.0.1:2552/user/store") ! Identify(1)
|
||||
}
|
||||
|
||||
def receive = {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class RemoteDeploymentDocSpec extends AkkaSpec("""
|
|||
|
||||
val other = ActorSystem("remote", system.settings.config)
|
||||
val address =
|
||||
other.asInstanceOf[ExtendedActorSystem].provider.getExternalAddressFor(Address("akka.tcp", "s", "host", 1)).get
|
||||
other.asInstanceOf[ExtendedActorSystem].provider.getExternalAddressFor(Address("akka", "s", "host", 1)).get
|
||||
|
||||
override def afterTermination(): Unit = { shutdown(other) }
|
||||
|
||||
|
|
@ -51,8 +51,8 @@ class RemoteDeploymentDocSpec extends AkkaSpec("""
|
|||
|
||||
"demonstrate address extractor" in {
|
||||
//#make-address
|
||||
val one = AddressFromURIString("akka.tcp://sys@host:1234")
|
||||
val two = Address("akka.tcp", "sys", "host", 1234) // this gives the same
|
||||
val one = AddressFromURIString("akka://sys@host:1234")
|
||||
val two = Address("akka", "sys", "host", 1234) // this gives the same
|
||||
//#make-address
|
||||
one should be(two)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ akka.actor.deployment {
|
|||
/parent/remotePool {
|
||||
router = round-robin-pool
|
||||
nr-of-instances = 10
|
||||
target.nodes = ["akka.tcp://app@10.0.0.2:2552", "akka.tcp://app@10.0.0.3:2552"]
|
||||
target.nodes = ["akka://app@10.0.0.2:2552", "akka://app@10.0.0.3:2552"]
|
||||
}
|
||||
}
|
||||
#//#config-remote-round-robin-pool
|
||||
|
|
@ -230,9 +230,9 @@ akka.actor.deployment {
|
|||
/parent/remoteGroup {
|
||||
router = round-robin-group
|
||||
routees.paths = [
|
||||
"akka.tcp://app@10.0.0.1:2552/user/workers/w1",
|
||||
"akka.tcp://app@10.0.0.2:2552/user/workers/w1",
|
||||
"akka.tcp://app@10.0.0.3:2552/user/workers/w1"]
|
||||
"akka://app@10.0.0.1:2552/user/workers/w1",
|
||||
"akka://app@10.0.0.2:2552/user/workers/w1",
|
||||
"akka://app@10.0.0.3:2552/user/workers/w1"]
|
||||
}
|
||||
}
|
||||
#//#config-remote-round-robin-group
|
||||
|
|
@ -596,9 +596,8 @@ class RouterDocSpec extends AkkaSpec(RouterDocSpec.config) with ImplicitSender {
|
|||
//#remoteRoutees
|
||||
import akka.actor.{ Address, AddressFromURIString }
|
||||
import akka.remote.routing.RemoteRouterConfig
|
||||
val addresses = Seq(
|
||||
Address("akka.tcp", "remotesys", "otherhost", 1234),
|
||||
AddressFromURIString("akka.tcp://othersys@anotherhost:1234"))
|
||||
val addresses =
|
||||
Seq(Address("akka", "remotesys", "otherhost", 1234), AddressFromURIString("akka://othersys@anotherhost:1234"))
|
||||
val routerRemote = system.actorOf(RemoteRouterConfig(RoundRobinPool(5), addresses).props(Props[Echo]))
|
||||
//#remoteRoutees
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue