All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.codeurjc.squirrel.drey.Worker Maven / Gradle / Ivy

Go to download

Java framework aimed to support distributed execution of algorithms thanks to Hazelcast technology

There is a newer version: 2.0.0
Show newest version
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]);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy