|
Akka/Scala example source code file (StatsSampleClientMain.java)
The StatsSampleClientMain.java Akka example source code
package sample.cluster.stats;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.ConfigFactory;
public class StatsSampleClientMain {
public static void main(String[] args) {
// note that client is not a compute node, role not defined
ActorSystem system = ActorSystem.create("ClusterSystem",
ConfigFactory.load("stats1"));
system.actorOf(Props.create(StatsSampleClient.class, "/user/statsService"),
"client");
}
}
Other Akka source code examplesHere is a short list of links related to this Akka StatsSampleClientMain.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.