2017-02-14 13:10:23 +02:00
|
|
|
package docs.cluster;
|
2013-11-29 16:27:23 +01:00
|
|
|
|
|
|
|
|
import com.typesafe.config.ConfigFactory;
|
2012-10-04 14:12:48 +02:00
|
|
|
|
|
|
|
|
import akka.actor.ActorSystem;
|
|
|
|
|
import akka.actor.Props;
|
|
|
|
|
|
|
|
|
|
public class StatsSampleOneMasterClientMain {
|
|
|
|
|
|
2013-11-29 16:27:23 +01:00
|
|
|
public static void main(String[] args) {
|
2013-03-14 20:32:43 +01:00
|
|
|
// note that client is not a compute node, role not defined
|
2013-11-29 16:27:23 +01:00
|
|
|
ActorSystem system = ActorSystem.create("ClusterSystem",
|
|
|
|
|
ConfigFactory.load("stats2"));
|
2014-03-14 16:32:54 +01:00
|
|
|
system.actorOf(Props.create(StatsSampleClient.class, "/user/statsServiceProxy"),
|
2013-11-29 16:27:23 +01:00
|
|
|
"client");
|
2012-10-04 14:12:48 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|