|
Distributed Computing ![]() This website demonstrates using wikis as teaching and learning tool. The course instructor is also happy to share the teaching materials here with those who find it readable. |
Distributed Computing with Java RMIIntroductionJava RMI provides a simple and direct model for distributed computing with Java objects. The objective of this question is to allow you to practise programming RMI for distributed computing applications. Our main concern is on the programming aspect of distributing computing, not on the distributed computing problems themselves. Therefore, we select a fairly simple problem, rather than a good but complex one that can fully reveal the real power of distributing computing.
In previous coursework, we applied Java sockets and streams to implement distributed computing for the computation of pi (π). In this question, we will use Java RMI to do the same problem again.
Your Tasks
Write a class named RMIComputeEngineImpl that implements the interface RMIComputeEngine. In writing this class, remember to do the following:
Write a class named RMIClient_ComputePi to test the implementation and the deployment of RMIComputeEngine. Just write a static main method that computes pi using the Machin’s formula. Invoke two RMIComputeEngine objects for the computation of inverse arc tangent. Please refer to Question One for the computation of pi using the Machin’s formula. The main method also allows a user to specify the host that runs the RMIComputeEngine objects.
|