Package org.opennms.netmgt.discovery
Class RangeChunker
- java.lang.Object
-
- org.opennms.netmgt.discovery.RangeChunker
-
public class RangeChunker extends Object
This class generates a list of
DiscoveryJob
instances that are based on a "chunk" of a number of IP addresses that should be polled as part of each job.- Input:
DiscoveryConfiguration
- Output:
List
- Input:
-
-
Constructor Summary
Constructors Constructor Description RangeChunker(IpAddressFilter ipAddressFilter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<DiscoveryJob>>
chunk(DiscoveryConfiguration config)
protected static boolean
isConsecutive(IPPollRange range, IPPollRange address)
-
-
-
Constructor Detail
-
RangeChunker
public RangeChunker(IpAddressFilter ipAddressFilter)
-
-
Method Detail
-
chunk
public Map<String,List<DiscoveryJob>> chunk(DiscoveryConfiguration config)
-
isConsecutive
protected static boolean isConsecutive(IPPollRange range, IPPollRange address)
-
-