org.gudy.azureus2.core3.ipfilter.impl
Class IPAddressRangeManager
java.lang.Object
org.gudy.azureus2.core3.ipfilter.impl.IPAddressRangeManager
public class IPAddressRangeManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entries
protected final ArrayList entries
total_span
protected long total_span
rebuild_required
protected boolean rebuild_required
last_rebuild_time
protected long last_rebuild_time
mergedRanges
protected IpRange[] mergedRanges
this_mon
protected final AEMonitor this_mon
IPAddressRangeManager
protected IPAddressRangeManager()
addRange
public void addRange(IpRange range)
removeRange
public void removeRange(IpRange range)
isInRange
public Object isInRange(String ip)
isInRange
public Object isInRange(InetAddress ip)
isInRange
protected Object isInRange(long address_long)
addressToInt
protected int addressToInt(String address)
addressToInt
protected int addressToInt(InetAddress address)
checkRebuild
protected void checkRebuild()
rebuild
protected void rebuild()
signum
protected int signum(long diff)
- Parameters:
diff
-
- Returns:
getTotalSpan
protected long getTotalSpan()
main
public static void main(String[] args)
getEntries
public ArrayList getEntries()
clearAllEntries
public void clearAllEntries()