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

java.lang.Object
  extended by org.gudy.azureus2.core3.ipfilter.impl.IpFilterManagerImpl
All Implemented Interfaces:
ParameterListener, IpFilterManager

public class IpFilterManagerImpl
extends java.lang.Object
implements IpFilterManager, ParameterListener


Field Summary
protected static IpFilterManagerImpl singleton
           
 
Constructor Summary
IpFilterManagerImpl()
           
 
Method Summary
 java.lang.Object addDescription(IpRange range, byte[] description)
           
 void cacheAllDescriptions()
           
 void clearDescriptionCache()
           
 void deleteAllDescriptions()
           
 BadIps getBadIps()
           
 byte[] getDescription(java.lang.Object info)
           
 IpFilter getIPFilter()
           
static IpFilterManager getSingleton()
           
 void parameterChanged(java.lang.String parameterName)
          Called, when a parameter has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static final IpFilterManagerImpl singleton
Constructor Detail

IpFilterManagerImpl

public IpFilterManagerImpl()
Method Detail

addDescription

public java.lang.Object addDescription(IpRange range,
                                       byte[] description)
Specified by:
addDescription in interface IpFilterManager

getDescription

public byte[] getDescription(java.lang.Object info)
Specified by:
getDescription in interface IpFilterManager
Returns:

cacheAllDescriptions

public void cacheAllDescriptions()
Specified by:
cacheAllDescriptions in interface IpFilterManager

clearDescriptionCache

public void clearDescriptionCache()
Specified by:
clearDescriptionCache in interface IpFilterManager

deleteAllDescriptions

public void deleteAllDescriptions()
Specified by:
deleteAllDescriptions in interface IpFilterManager

getSingleton

public static IpFilterManager getSingleton()

getIPFilter

public IpFilter getIPFilter()
Specified by:
getIPFilter in interface IpFilterManager

getBadIps

public BadIps getBadIps()
Specified by:
getBadIps in interface IpFilterManager

parameterChanged

public void parameterChanged(java.lang.String parameterName)
Description copied from interface: ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.

Specified by:
parameterChanged in interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed