Package compute

Examples of compute.Compute.executeTask()


            System.out.println("Creating a new Pi task to be executed by the server");
            Pi task = new Pi(Integer.parseInt(args[1]));

            System.out.println("Sending task to server");
            BigDecimal pi = comp.executeTask(task);
            System.out.println("Result returned from the server: " + pi);
        } catch (Exception e) {
            System.err.println("ComputePi exception:");
            e.printStackTrace();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.