2018-03-13 23:45:55 +09:00
|
|
|
/*
|
2020-01-02 07:24:59 -05:00
|
|
|
* Copyright (C) 2018-2020 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
|
2019-01-12 04:00:53 +08:00
|
|
|
ActorSystem system = ActorSystem.create("ClusterSystem", ConfigFactory.load("stats2"));
|
|
|
|
|
system.actorOf(Props.create(StatsSampleClient.class, "/user/statsServiceProxy"), "client");
|
2012-10-04 14:12:48 +02:00
|
|
|
}
|
|
|
|
|
}
|