3
I am developing a web application that will test the servers and will bring the result equal to a tracert
of Windows or the traceroute
Linux. I am developing in Java and using the commands mentioned in the following way:
I identify the server and call:
Runtime.getRuntime().exec("tracert " + hostCanonicalName);
After the execution I pick up the String
and assemble a chart (Vis.js) with the path through which the request went.
I’ve already researched the web and I haven’t found anything in Java that does otherwise.
Is there any framework do that? I read something about HttpCliente
and I did not receive a satisfactory reply.
I don’t want to use something directly related to the OS and I still can’t fully understand the commands, because with each IP I test it returns a different pattern.
The first link (Pingdom) forgets, the author has discontinued the project. Looking at the latest github tag, the source code is just a bean with 3 getters. Also, apparently this class is not used.
– Victor Stafusa
The design of the second link uses what’s in the third. I think it’s the way in case you don’t want to use Gordon Christie’s code for some reason.
– Victor Stafusa