Add an initial implementation of actor paths

This commit is contained in:
Peter Vlugter 2011-11-08 11:56:46 +01:00
parent 00b434d6ec
commit 3f7cff141d
17 changed files with 358 additions and 132 deletions

View file

@ -74,7 +74,7 @@ class RemoteConnectionManager(
case (`from`, actorRef)
changed = true
//actorRef.stop()
(to, newConnection(actorRef.address, to))
(to, newConnection(to, actorRef.path))
case other other
}
@ -149,7 +149,7 @@ class RemoteConnectionManager(
}
}
private[remote] def newConnection(actorAddress: String, inetSocketAddress: InetSocketAddress) = {
RemoteActorRef(remote.server, inetSocketAddress, actorAddress, None)
private[remote] def newConnection(inetSocketAddress: InetSocketAddress, actorPath: ActorPath) = {
RemoteActorRef(remote.server, inetSocketAddress, actorPath, None)
}
}