import org.gridgain.grid.*; /** * Hello world example. */ public class HelloWorldExample { /** * Main entry point. * * @param args Command line arguments. * @throws GridException Thrown in case of any grid error. */ public static void main(String[] args) throws GridException { GridFactory.start(); try { sayIt(args.length > 0 ? args[0] : "hello world!"); } finally { GridFactory.stop(true); } } /** * Prints given <tt>text</tt> to standard output. * * @param text Text to print. */ public static void sayIt(String text) { System.out.println(text); } }
