akka.actor
Class VirtualPathContainer

java.lang.Object
  extended by akka.actor.ActorRef
      extended by akka.actor.InternalActorRef
          extended by akka.actor.VirtualPathContainer
All Implemented Interfaces:
ActorRefScope, LocalRef, MinimalActorRef, ScalaActorRef, java.io.Serializable, java.lang.Comparable<ActorRef>
Direct Known Subclasses:
RemoteSystemDaemon

public class VirtualPathContainer
extends InternalActorRef
implements MinimalActorRef

Internal implementation detail used for paths like &ldquo;/temp&rdquo;

INTERNAL API

See Also:
Serialized Form

Constructor Summary
VirtualPathContainer(ActorRefProvider provider, ActorPath path, InternalActorRef getParent, LoggingAdapter log)
           
 
Method Summary
 void addChild(java.lang.String name, InternalActorRef ref)
           
 void foreachChild(scala.Function1<ActorRef,scala.runtime.BoxedUnit> f)
           
 InternalActorRef getChild(scala.collection.Iterator<java.lang.String> name)
          Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location.
 InternalActorRef getChild(java.lang.String name)
           
 InternalActorRef getParent()
          Obtain parent of this ref; used by getChild for ".." paths.
 boolean hasChildren()
           
 LoggingAdapter log()
           
 ActorPath path()
          Returns the path for this actor (from this actor up to the root actor).
 ActorRefProvider provider()
          Get a reference to the actor ref provider which created this ref.
 void removeChild(java.lang.String name)
           
protected  void removeChild(java.lang.String name, ActorRef ref)
          Remove a named child if it matches the ref.
 
Methods inherited from class akka.actor.InternalActorRef
isLocal, isTerminated, restart, resume, sendSystemMessage, start, stop, suspend
 
Methods inherited from class akka.actor.ActorRef
compareTo, equals, forward, hashCode, noSender, tell, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface akka.actor.MinimalActorRef
isTerminated, restart, resume, sendSystemMessage, start, stop, suspend, writeReplace
 
Methods inherited from interface akka.actor.LocalRef
isLocal
 

Constructor Detail

VirtualPathContainer

public VirtualPathContainer(ActorRefProvider provider,
                            ActorPath path,
                            InternalActorRef getParent,
                            LoggingAdapter log)
Method Detail

provider

public ActorRefProvider provider()
Description copied from class: InternalActorRef
Get a reference to the actor ref provider which created this ref.

Specified by:
provider in class InternalActorRef
Returns:
(undocumented)

path

public ActorPath path()
Description copied from class: ActorRef
Returns the path for this actor (from this actor up to the root actor).

Specified by:
path in class ActorRef
Returns:
(undocumented)

getParent

public InternalActorRef getParent()
Description copied from class: InternalActorRef
Obtain parent of this ref; used by getChild for ".." paths.

Specified by:
getParent in interface MinimalActorRef
Specified by:
getParent in class InternalActorRef
Returns:
(undocumented)

log

public LoggingAdapter log()

addChild

public void addChild(java.lang.String name,
                     InternalActorRef ref)

removeChild

public void removeChild(java.lang.String name)

removeChild

protected void removeChild(java.lang.String name,
                           ActorRef ref)
Remove a named child if it matches the ref.

Parameters:
name - (undocumented)
ref - (undocumented)

getChild

public InternalActorRef getChild(java.lang.String name)

getChild

public InternalActorRef getChild(scala.collection.Iterator<java.lang.String> name)
Description copied from class: InternalActorRef
Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location. This method shall return the end result, i.e. not only the next step in the look-up; this will typically involve recursive invocation. A path element of ".." signifies the parent, a trailing "" element must be disregarded. If the requested path does not exist, return Nobody.

Specified by:
getChild in interface MinimalActorRef
Specified by:
getChild in class InternalActorRef
Parameters:
name - (undocumented)
Returns:
(undocumented)

hasChildren

public boolean hasChildren()

foreachChild

public void foreachChild(scala.Function1<ActorRef,scala.runtime.BoxedUnit> f)