19 lines
550 B
Java
19 lines
550 B
Java
/*
|
|
* Copyright (C) 2018-2020 Lightbend Inc. <https://www.lightbend.com>
|
|
*/
|
|
|
|
package jdocs.cluster;
|
|
|
|
import com.typesafe.config.ConfigFactory;
|
|
|
|
import akka.actor.ActorSystem;
|
|
import akka.actor.Props;
|
|
|
|
public class StatsSampleOneMasterClientMain {
|
|
|
|
public static void main(String[] args) {
|
|
// note that client is not a compute node, role not defined
|
|
ActorSystem system = ActorSystem.create("ClusterSystem", ConfigFactory.load("stats2"));
|
|
system.actorOf(Props.create(StatsSampleClient.class, "/user/statsServiceProxy"), "client");
|
|
}
|
|
}
|