.withLocation(m_location) .withSystemId(m_systemId) .withRange(begin, end, m_retries, m_timeout, TimeUnit.MILLISECONDS) .withPacketSize(m_packetsize) .withPacketsPerSecond(m_packetsPerSecond) .execute();
.withLocation(job.getLocation()) .withPacketsPerSecond(job.getPacketsPerSecond()); for(IPPollRange range : job.getRanges()) { try { InetAddress begin = InetAddress.getByAddress(range.getAddressRange().getBegin()); InetAddress end = InetAddress.getByAddress(range.getAddressRange().getEnd()); builder.withRange(begin, end, range.getRetries(), range.getTimeout(), TimeUnit.MILLISECONDS); } catch (UnknownHostException e) { LOG.error("Failed to retrieve addresses from range: {}. The range will be skipped.", e); builder.execute().whenComplete((summary, ex) -> {
.withLocation(job.getLocation()) .withPacketsPerSecond(job.getPacketsPerSecond()); for(IPPollRange range : job.getRanges()) { try { InetAddress begin = InetAddress.getByAddress(range.getAddressRange().getBegin()); InetAddress end = InetAddress.getByAddress(range.getAddressRange().getEnd()); builder.withRange(begin, end, range.getRetries(), range.getTimeout(), TimeUnit.MILLISECONDS); } catch (UnknownHostException e) { LOG.error("Failed to retrieve addresses from range: {}. The range will be skipped.", e); builder.execute().whenComplete((summary, ex) -> {
.withLocation(m_location) .withSystemId(m_systemId) .withRange(begin, end, m_retries, m_timeout, TimeUnit.MILLISECONDS) .withPacketSize(m_packetsize) .withPacketsPerSecond(m_packetsPerSecond) .execute();