com.veraxsystems.icmp.jni.handlers
Class PingLoopTest

java.lang.Object
  extended by com.veraxsystems.icmp.jni.handlers.PingLoopTest
All Implemented Interfaces:
java.lang.Runnable

public class PingLoopTest
extends java.lang.Object
implements java.lang.Runnable

Internally used class for running simple ICMP Echo test in many threads. The send/receive operation is executed in polling mode. After send the attempt to receive response is made. To avoid tight loop the receiving wait operation is added (socket select)


Constructor Summary
PingLoopTest(int requestsCountVal, Counter successCounterVal, Counter failureCounterVal)
          Initialize ICMP socket send/receive loop.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingLoopTest

public PingLoopTest(int requestsCountVal,
                    Counter successCounterVal,
                    Counter failureCounterVal)
Initialize ICMP socket send/receive loop.

Parameters:
requestsCountVal - number of requests to send
successCounterVal - counter increased on successful execution
failureCounterVal - counter increased on failure
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable