Package com.biglybt.core.ipfilter.impl
Class IPAddressRangeManagerV4
- java.lang.Object
-
- com.biglybt.core.ipfilter.impl.IPAddressRangeManagerV4
-
public class IPAddressRangeManagerV4 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<IpRangeV4Impl>
entries
protected long
last_rebuild_time
private static LogIDs
LOGID
protected IpRangeV4Impl[]
mergedRanges
protected boolean
rebuild_required
protected AEMonitor
this_mon
protected long
total_span
-
Constructor Summary
Constructors Modifier Constructor Description protected
IPAddressRangeManagerV4()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addRange(IpRangeV4Impl range)
private void
checkRebuild()
protected void
clearAllEntries()
protected java.util.List
getEntries()
protected int
getEntryCount()
private IpRangeV4Impl
isInRange(long address_long)
IpRangeV4Impl
isInRange(java.net.Inet4Address ip)
static void
main(java.lang.String[] args)
private void
rebuild()
protected void
removeRange(IpRangeV4Impl range)
private int
signum(long diff)
-
-
-
Field Detail
-
LOGID
private static final LogIDs LOGID
-
entries
protected final java.util.Set<IpRangeV4Impl> entries
-
total_span
protected long total_span
-
rebuild_required
protected boolean rebuild_required
-
last_rebuild_time
protected long last_rebuild_time
-
mergedRanges
protected IpRangeV4Impl[] mergedRanges
-
this_mon
protected final AEMonitor this_mon
-
-
Method Detail
-
addRange
protected void addRange(IpRangeV4Impl range)
-
removeRange
protected void removeRange(IpRangeV4Impl range)
-
isInRange
public IpRangeV4Impl isInRange(java.net.Inet4Address ip)
-
isInRange
private IpRangeV4Impl isInRange(long address_long)
-
checkRebuild
private void checkRebuild()
-
rebuild
private void rebuild()
-
signum
private int signum(long diff)
- Parameters:
diff
-- Returns:
-
main
public static void main(java.lang.String[] args)
-
getEntries
protected java.util.List getEntries()
-
getEntryCount
protected int getEntryCount()
-
clearAllEntries
protected void clearAllEntries()
-
-