Package org.akka.essentials.remotenode

Source Code of org.akka.essentials.remotenode.RemoteNodeApplication

package org.akka.essentials.remotenode;

import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.kernel.Bootable;

import com.typesafe.config.ConfigFactory;

public class RemoteNodeApplication implements Bootable {
  final ActorSystem system = ActorSystem.create("RemoteNodeApp", ConfigFactory
      .load().getConfig("RemoteSys"));

  public void shutdown() {
    system.shutdown();
  }

  public void startup() {
    system.actorOf(new Props(RemoteActor.class), "remoteActor");
  }
}
TOP

Related Classes of org.akka.essentials.remotenode.RemoteNodeApplication

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.