Here's an implementation of the pingig subtask. Creating a thread pool and threads with the referenced payload shouldn't be too complicated.
Edit
If you can modify the client code on these devices, I suggest a custom protocol instead of using the echo port - something like a heartbeat where you frequently send a small message to the client (on the standard or a different port) and expect an answer within a defined time.
Edit 2
For the thread basics, I really suggest looking at a Java tutorial. To start with: implement a class like public class PingThread extends Thread
and place the code from the link inside a while(true) {...}
loop in the run method. Use Thread.sleep()
to add a wait time between to pings in the the same loop.
If you really need a ThreadGroup, override the constructor Thread(ThredGroup group, String name)
so that a PingThread can be created in your specified group.
You may want to implement a switch to stop a PingThread (should be covered by almost every Java tutorial),