Class RemoteActorSystemInstance

java.lang.Object
org.elasticsoftware.elasticactors.client.cluster.RemoteActorSystemInstance
All Implemented Interfaces:
org.elasticsoftware.elasticactors.ActorSystem, org.elasticsoftware.elasticactors.cluster.ShardAccessor, SerializationAccessor

public final class RemoteActorSystemInstance extends Object implements org.elasticsoftware.elasticactors.ActorSystem, org.elasticsoftware.elasticactors.cluster.ShardAccessor, SerializationAccessor
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.elasticsoftware.elasticactors.ActorSystem
    • actorOf

      public <T> org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, Class<T> actorClass) throws Exception
      Specified by:
      actorOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • actorOf

      public org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, String actorClassName) throws Exception
      Specified by:
      actorOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • actorOf

      public <T> org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, Class<T> actorClass, org.elasticsoftware.elasticactors.ActorState initialState) throws Exception
      Specified by:
      actorOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • actorOf

      public org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, String actorClassName, org.elasticsoftware.elasticactors.ActorState initialState) throws Exception
      Specified by:
      actorOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • actorOf

      public org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, String actorClassName, org.elasticsoftware.elasticactors.ActorState initialState, org.elasticsoftware.elasticactors.ActorRef creatorRef) throws Exception
      A specialization of ActorSystem.actorOf(String, String, ActorState, ActorRef) for a RemoteActorSystem.

      The creatorRef is always ignored.
      Specified by:
      actorOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • tempActorOf

      public <T> org.elasticsoftware.elasticactors.ActorRef tempActorOf(Class<T> actorClass, @Nullable org.elasticsoftware.elasticactors.ActorState initialState) throws Exception
      Specified by:
      tempActorOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • actorFor

      public org.elasticsoftware.elasticactors.ActorRef actorFor(String actorId)
      Specified by:
      actorFor in interface org.elasticsoftware.elasticactors.ActorSystem
    • serviceActorFor

      public org.elasticsoftware.elasticactors.ActorRef serviceActorFor(String actorId)
      Specified by:
      serviceActorFor in interface org.elasticsoftware.elasticactors.ActorSystem
    • serviceActorFor

      public org.elasticsoftware.elasticactors.ActorRef serviceActorFor(String nodeId, String actorId)
      Specified by:
      serviceActorFor in interface org.elasticsoftware.elasticactors.ActorSystem
    • getScheduler

      public org.elasticsoftware.elasticactors.scheduler.Scheduler getScheduler()
      Specified by:
      getScheduler in interface org.elasticsoftware.elasticactors.ActorSystem
    • getParent

      public org.elasticsoftware.elasticactors.ActorSystems getParent()
      Specified by:
      getParent in interface org.elasticsoftware.elasticactors.ActorSystem
    • stop

      public void stop(org.elasticsoftware.elasticactors.ActorRef actorRef) throws Exception
      Specified by:
      stop in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      Exception
    • getConfiguration

      public org.elasticsoftware.elasticactors.ActorSystemConfiguration getConfiguration()
      Specified by:
      getConfiguration in interface org.elasticsoftware.elasticactors.ActorSystem
    • getEventListenerRegistry

      public org.elasticsoftware.elasticactors.cluster.ActorSystemEventListenerRegistry getEventListenerRegistry()
      Specified by:
      getEventListenerRegistry in interface org.elasticsoftware.elasticactors.ActorSystem
    • groupOf

      public org.elasticsoftware.elasticactors.ActorRefGroup groupOf(Collection<org.elasticsoftware.elasticactors.ActorRef> members) throws IllegalArgumentException
      Specified by:
      groupOf in interface org.elasticsoftware.elasticactors.ActorSystem
      Throws:
      IllegalArgumentException
    • init

      @PostConstruct public void init() throws Exception
      Throws:
      Exception
    • destroy

      @PreDestroy public void destroy()
    • getShard

      public org.elasticsoftware.elasticactors.ActorShard getShard(String actorPath)
      Specified by:
      getShard in interface org.elasticsoftware.elasticactors.cluster.ShardAccessor
    • getShard

      public org.elasticsoftware.elasticactors.ActorShard getShard(int shardId)
      Specified by:
      getShard in interface org.elasticsoftware.elasticactors.cluster.ShardAccessor
    • getNumberOfShards

      public int getNumberOfShards()
      Specified by:
      getNumberOfShards in interface org.elasticsoftware.elasticactors.cluster.ShardAccessor
    • getSerializer

      public <T> MessageSerializer<T> getSerializer(Class<T> messageClass)
      Specified by:
      getSerializer in interface SerializationAccessor
    • getDeserializer

      public <T> MessageDeserializer<T> getDeserializer(Class<T> messageClass)
      Specified by:
      getDeserializer in interface SerializationAccessor