pekko/akka-docs/rst/java/code/docs/cluster/StatsSampleOneMasterClientMain.java
Martynas Mickevičius 958de6a916 Remove samples (#22288)
Add code, that was used for documentation to the appropriate projects
or akka-docs.
2017-02-14 12:10:23 +01:00

19 lines
489 B
Java

package docs.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");
}
}