public void initCollector() {
deviceString = deviceAddress.getHostAddress();
//deviceAddress = InetAddress.getByName(device).getHostAddress();
if ( ping == null ) {
ping = new PingICMP();
ping.begin();
}
timeout = Math.min(pollInterval / 2, MAX_TIMEOUT);
// Bug note: small chance of picking an id already assigned to another PingICMP object
// In this case, the response times of both PingICMP objects seem to grow without bound