2018-03-13 23:45:55 +09:00
|
|
|
/*
|
2019-01-02 18:55:26 +08:00
|
|
|
* Copyright (C) 2018-2019 Lightbend Inc. <https://www.lightbend.com>
|
2018-03-13 23:45:55 +09:00
|
|
|
*/
|
|
|
|
|
|
2017-03-16 09:30:00 +01:00
|
|
|
package jdocs.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
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|