akka.cluster
Class ClusterActorRefProvider

java.lang.Object
  extended by akka.remote.RemoteActorRefProvider
      extended by akka.cluster.ClusterActorRefProvider
All Implemented Interfaces:
ActorRefProvider

public class ClusterActorRefProvider
extends RemoteActorRefProvider

INTERNAL API

The ClusterActorRefProvider will load the Cluster extension, i.e. the cluster will automatically be started when the ClusterActorRefProvider is used.


Nested Class Summary
 
Nested classes/interfaces inherited from class akka.remote.RemoteActorRefProvider
RemoteActorRefProvider.Finished$, RemoteActorRefProvider.Idle$, RemoteActorRefProvider.TerminatorState, RemoteActorRefProvider.Uninitialized$, RemoteActorRefProvider.WaitDaemonShutdown$, RemoteActorRefProvider.WaitTransportShutdown$
 
Constructor Summary
ClusterActorRefProvider(java.lang.String _systemName, ActorSystem.Settings _settings, EventStream _eventStream, DynamicAccess _dynamicAccess)
           
 
Method Summary
protected  ClusterDeployer createDeployer()
          Factory method to make it possible to override deployer in subclass Creates a new instance every time
protected  ActorRef createRemoteWatcher(ActorSystemImpl system)
           
 void init(ActorSystemImpl system)
          Initialization of an ActorRefProvider happens in two steps: first construction of the object with settings, eventStream, etc.
 
Methods inherited from class akka.remote.RemoteActorRefProvider
actorFor, actorFor, actorFor, actorOf, afterSendSystemMessage, createRemoteDeploymentWatcher, createRemoteWatcherFailureDetector, deadLetters, deployer, dynamicAccess, eventStream, getDefaultAddress, getExternalAddressFor, guardian, log, quarantine, registerTempActor, remoteDaemon, remoteSettings, resolveActorRef, resolveActorRef, resolveActorRefWithLocalAddress, rootGuardian, rootGuardianAt, rootPath, serialization, settings, systemGuardian, systemName, tempContainer, tempPath, terminationFuture, transport, unregisterTempActor, useActorOnNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterActorRefProvider

public ClusterActorRefProvider(java.lang.String _systemName,
                               ActorSystem.Settings _settings,
                               EventStream _eventStream,
                               DynamicAccess _dynamicAccess)
Method Detail

init

public void init(ActorSystemImpl system)
Description copied from interface: ActorRefProvider
Initialization of an ActorRefProvider happens in two steps: first construction of the object with settings, eventStream, etc. and then—when the ActorSystem is constructed—the second phase during which actors may be created (e.g. the guardians).

Specified by:
init in interface ActorRefProvider
Overrides:
init in class RemoteActorRefProvider

createRemoteWatcher

protected ActorRef createRemoteWatcher(ActorSystemImpl system)
Overrides:
createRemoteWatcher in class RemoteActorRefProvider

createDeployer

protected ClusterDeployer createDeployer()
Factory method to make it possible to override deployer in subclass Creates a new instance every time

Overrides:
createDeployer in class RemoteActorRefProvider