[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Developing a utility with agents

Hi All.

I`m pretty new in Java world so it`s possible that my question is pretty basic.
I`m about to develop a utility which is based on a master server, which contains the data of the system and run all the computations I`ll need.
This master server shall get information from agents which are installed on different locations.
The data will contain stuff like CPU Usage of the OS, FileSystems installed etc.

I`m looking for the right architecture of communication between the server and the agents.
This communication shall be secured of course, so no one whith access to the server on the IP port will be able to act as an agent.

Can you recommend me what is the best way to implement it?

Thanks,
Stam.
0
stam061398
Asked:
stam061398
  • 2
1 Solution
 
mmuruganandamCommented:
You really thinking of going about secure way,

Then you have to use SecureSocket.  For your requirement, SecureSocket is the best choice as to me.
You can write your won Sockets (Server and clients).  All the clients can be run anywhere and there can be 'n' number of clients.  Your server will get the data from the clients based on some interval.

But getting the information about the CPU usage and process, you need to write a Native API (DLL) as there is no support for those in Java.

But if your DLL is ready, you can load that into your JVM by calling System.loadLibrary(dll name).  


Regards,
Muruga
0
 
stam061398Author Commented:
Thanks.
The solution of SecureSocket will encrypt the transportation between the components.
I`m concerned by another issue - how can I make sure that the client connected to the main server is really a certified client.
Is there any authentication solution between the components?

Thanks,
Stam.
0
 
mmuruganandamCommented:
When it is a SSLSocket, then there would be a certificate check between client and server as happened with browser and server (certificate hand-shake).


Regards,
Muruga
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now