Lucas Rennó Kallás
This code was made to Distributed Systems Subject.
The RMI was made in Java with NetBeans 8.2. To test it I created a method that receives variables a, b and c from Client and use Bhaskara Formula to get the results x' and x'' and send them in a ArrayList as a response.
This is the server, it will wait for a request and send a response based on methods implemented at BhaskaraServant.java
There are the implemented functions declared at BhaskaraService.java
Bhaskara method is implemented on it:
- echo(String input), this function receives input and returns "From server: " + input
- bhaskara(float a, float b, float c), this function receives a, b and c and returns an ArrayList that contains x' and x'' found with Bhaskara Formula
❓ Bhaskara Formula:
This is the interface that shows to the Client the methods which it can call. And the methods that will be implemented at BhaskaraServant.java.
This is the client, it can call the functions that are in BhaskaraService.java and the server will return a response.
- Make a fork
- I recommend to download NetBeans to use 👀
Enjoy it, 😃