org.gudy.azureus2.core3.ipfilter.impl
Class IPAddressRangeManager

java.lang.Object
  extended by org.gudy.azureus2.core3.ipfilter.impl.IPAddressRangeManager

public class IPAddressRangeManager
extends Object


Field Summary
protected  ArrayList entries
           
protected  long last_rebuild_time
           
protected  IpRange[] mergedRanges
           
protected  boolean rebuild_required
           
protected  AEMonitor this_mon
           
protected  long total_span
           
 
Constructor Summary
protected IPAddressRangeManager()
           
 
Method Summary
 void addRange(IpRange range)
           
protected  int addressToInt(InetAddress address)
           
protected  int addressToInt(String address)
           
protected  void checkRebuild()
           
 void clearAllEntries()
           
 ArrayList getEntries()
           
protected  long getTotalSpan()
           
 Object isInRange(InetAddress ip)
           
protected  Object isInRange(long address_long)
           
 Object isInRange(String ip)
           
static void main(String[] args)
           
protected  void rebuild()
           
 void removeRange(IpRange range)
           
protected  int signum(long diff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

IPAddressRangeManager

protected IPAddressRangeManager()
Method Detail

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()