java.lang.Object
net.i2p.router.networkdb.kademlia.SegmentedNetworkDatabaseFacade
net.i2p.router.dummy.DummyNetworkDatabaseSegmentor
Dummy network database segmentor for testing.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NetworkDatabaseFacadeThe full network database this one stands in for.Constructor Summary
ConstructorsConstructorDescriptionCreate a segmentor backed by a dummy network database facade.Method Summary
All MethodsModifier and TypeMethodDescriptionclientNetDB(Hash id) A client netDb for a given client Hash identifier.The main netDb, the one which is used if we're a floodfill.voidshutdown()Shut down the network databases.voidstartup()Start up the network databases.
Field Details
_fndb
The full network database this one stands in for.
Constructor Details
DummyNetworkDatabaseSegmentor
Create a segmentor backed by a dummy network database facade.- Parameters:
ctx- router context handed to the dummy facade it wraps
Method Details
shutdown
public void shutdown()Description copied from class:SegmentedNetworkDatabaseFacadeShut down the network databases.- Specified by:
shutdownin classSegmentedNetworkDatabaseFacade
startup
public void startup()Description copied from class:SegmentedNetworkDatabaseFacadeStart up the network databases.- Specified by:
startupin classSegmentedNetworkDatabaseFacade
mainNetDB
Description copied from class:SegmentedNetworkDatabaseFacadeThe main netDb, the one which is used if we're a floodfill.- Specified by:
mainNetDBin classSegmentedNetworkDatabaseFacade- Returns:
- may be null if main netDb is not initialized
clientNetDB
Description copied from class:SegmentedNetworkDatabaseFacadeA client netDb for a given client Hash identifier. Will never return the mainNetDB.- Specified by:
clientNetDBin classSegmentedNetworkDatabaseFacade- Parameters:
id- the destination hash naming which client sub-database to use- Returns:
- may be null if the client netDb does not exist