net.i2p.client.naming
Class AddressDB

java.lang.Object
  extended by net.i2p.client.naming.AddressDB
Direct Known Subclasses:
DummyAddressDB, FilesystemAddressDB

Deprecated. unused

public abstract class AddressDB
extends java.lang.Object


Field Summary
protected  I2PAppContext _context
          Deprecated.  
static java.lang.String PROP_IMPL
          Deprecated. what classname should be used as the address db impl?
 
Constructor Summary
protected AddressDB(I2PAppContext context)
          Deprecated. The address db should only be constructed and accessed through the application context.
 
Method Summary
abstract  boolean contains(Address address)
          Deprecated.  
abstract  boolean contains(java.lang.String hostname)
          Deprecated.  
static AddressDB createInstance(I2PAppContext context)
          Deprecated. Get an address db instance.
abstract  Address get(java.lang.String hostname)
          Deprecated.  
abstract  java.util.Collection hostnames()
          Deprecated.  
abstract  Address put(Address address)
          Deprecated.  
abstract  Address remove(Address address)
          Deprecated.  
abstract  Address remove(java.lang.String hostname)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_context

protected I2PAppContext _context
Deprecated. 

PROP_IMPL

public static final java.lang.String PROP_IMPL
Deprecated. 
what classname should be used as the address db impl?

See Also:
Constant Field Values
Constructor Detail

AddressDB

protected AddressDB(I2PAppContext context)
Deprecated. 
The address db should only be constructed and accessed through the application context. This constructor should only be used by the appropriate application context itself.

Method Detail

createInstance

public static final AddressDB createInstance(I2PAppContext context)
Deprecated. 
Get an address db instance. This method ensures that there will be only one address db instance (singleton) as well as choose the implementation from the "i2p.addressdb.impl" system property.


get

public abstract Address get(java.lang.String hostname)
Deprecated. 

put

public abstract Address put(Address address)
Deprecated. 

remove

public abstract Address remove(java.lang.String hostname)
Deprecated. 

remove

public abstract Address remove(Address address)
Deprecated. 

contains

public abstract boolean contains(Address address)
Deprecated. 

contains

public abstract boolean contains(java.lang.String hostname)
Deprecated. 

hostnames

public abstract java.util.Collection hostnames()
Deprecated.