es.codeurjc.squirrel.drey.Worker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-drey Show documentation
Show all versions of squirrel-drey Show documentation
Java framework aimed to support distributed execution of algorithms thanks to Hazelcast technology
package es.codeurjc.squirrel.drey;
public class Worker {
public static void main(String[] args) {
// Environment variables
String hazelcastConfigPath = System.getProperty("hazelcast-config") != null ?
System.getProperty("hazelcast-config") :
"src/main/resources/hazelcast-config.xml";
Mode mode = System.getProperty("mode") != null ?
Mode.valueOf(System.getProperty("mode")) :
Mode.RANDOM;
new Node().start(hazelcastConfigPath, mode);
}
public static void launch() {
Worker.main(new String[0]);
}
}