remote deploy docs & provider.getExternalAddressFor (see #1765)

This commit is contained in:
Roland 2012-02-02 09:40:17 +01:00
parent 10974acfe8
commit 76bba1f530
10 changed files with 217 additions and 29 deletions

View file

@ -206,6 +206,16 @@ class RemoteActorRefProvider(
// we dont wait for the ACK, because the remote end will process this command before any other message to the new actor
actorFor(RootActorPath(path.address) / "remote") ! DaemonMsgCreate(props, deploy, path.toString, supervisor)
}
def getExternalAddressFor(addr: Address): Option[Address] = {
val ta = transport.address
val ra = rootPath.address
addr match {
case `ta` | `ra` Some(rootPath.address)
case Address("akka", _, Some(_), Some(_)) Some(transport.address)
case _ None
}
}
}
trait RemoteRef extends ActorRefScope {