net.i2p.router.networkdb.kademlia
Interface DataStore

All Known Implementing Classes:
PersistentDataStore, TransientDataStore

public interface DataStore


Method Summary
 int countLeaseSets()
           
 DataStructure get(Hash key)
           
 DataStructure get(Hash key, boolean persist)
           
 java.util.Set<Hash> getKeys()
           
 boolean isInitialized()
           
 boolean isKnown(Hash key)
           
 boolean put(Hash key, DataStructure data)
           
 boolean put(Hash key, DataStructure data, boolean persist)
           
 DataStructure remove(Hash key)
           
 DataStructure remove(Hash key, boolean persist)
           
 void rescan()
           
 void restart()
           
 void stop()
           
 

Method Detail

isInitialized

boolean isInitialized()

isKnown

boolean isKnown(Hash key)

get

DataStructure get(Hash key)

get

DataStructure get(Hash key,
                  boolean persist)

put

boolean put(Hash key,
            DataStructure data)

put

boolean put(Hash key,
            DataStructure data,
            boolean persist)

remove

DataStructure remove(Hash key)

remove

DataStructure remove(Hash key,
                     boolean persist)

getKeys

java.util.Set<Hash> getKeys()

stop

void stop()

restart

void restart()

rescan

void rescan()

countLeaseSets

int countLeaseSets()