Skip to content

RMI(Remote Method Invocation) using Bhaskara Formula as a method.

License

Notifications You must be signed in to change notification settings

lucasrennok/RMIBhaskara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌀 RMI Bhaskara

Lucas Rennó Kallás

This code was made to Distributed Systems Subject.

executing

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.

⭐ Code

💢 ApplicationServer.java

This is the server, it will wait for a request and send a response based on methods implemented at BhaskaraServant.java

Server

💢 BhaskaraServant.java

There are the implemented functions declared at BhaskaraService.java

Bhaskara method is implemented on it:

Bhaskara

❗ Implemented Methods
  1. echo(String input), this function receives input and returns "From server: " + input
  2. 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:

Bhaskara Formula

💢 BhaskaraService.java

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.

Service

💢 Client.java

This is the client, it can call the functions that are in BhaskaraService.java and the server will return a response.

Client

👊 Want to use it?

  • Make a fork
  • I recommend to download NetBeans to use 👀

Enjoy it, 😃

About

RMI(Remote Method Invocation) using Bhaskara Formula as a method.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages