first step: sanitize ActorPath interface

- remove references to ActorSystem
- make ChildActorPath light-weight (name & parent plus tailrec methods
  for traversing towards root, e.g. toString)
- string rep is full URI always (akka://system-name@host:port/user/bla)
This commit is contained in:
Roland 2011-11-24 16:58:23 +01:00
parent 96598704c8
commit dad1c98c48
11 changed files with 93 additions and 57 deletions

View file

@ -28,10 +28,10 @@ object RemoteAddress {
object LocalOnly extends RemoteAddress(0, "local")
case class RemoteAddress private[akka] (port: Int, hostname: String) {
case class RemoteAddress private[akka] (port: Int, hostname: String) extends Address {
def protocol = "akka"
@transient
override lazy val toString = "" + hostname + ":" + port
lazy val hostPort = hostname + ":" + port
}
class RemoteException(message: String) extends AkkaException(message)