public class DummyNetworkDatabaseFacade extends NetworkDatabaseFacade
| Constructor and Description |
|---|
DummyNetworkDatabaseFacade(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
fail(net.i2p.data.Hash dbEntry) |
Set<net.i2p.data.Hash> |
findNearestRouters(net.i2p.data.Hash key,
int maxNumRouters,
Set<net.i2p.data.Hash> peersToIgnore)
Return the RouterInfo structures for the routers closest to the given key.
|
Set<net.i2p.data.Hash> |
getAllRouters() |
void |
lookupDestination(net.i2p.data.Hash key,
Job onFinishedJob,
long timeoutMs,
net.i2p.data.Hash fromLocalDest)
Lookup using the client's tunnels
Succeeds even if LS validation fails due to unsupported sig type
|
net.i2p.data.Destination |
lookupDestinationLocally(net.i2p.data.Hash key)
Lookup locally in netDB and in badDest cache
Succeeds even if LS validation failed due to unsupported sig type
|
void |
lookupLeaseSet(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs) |
void |
lookupLeaseSet(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs,
net.i2p.data.Hash fromLocalDest)
Lookup using the client's tunnels
|
net.i2p.data.LeaseSet |
lookupLeaseSetLocally(net.i2p.data.Hash key) |
void |
lookupLeaseSetRemotely(net.i2p.data.Hash key,
net.i2p.data.Hash fromLocalDest)
Unconditionally lookup using the client's tunnels.
|
void |
lookupLeaseSetRemotely(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs,
net.i2p.data.Hash fromLocalDest)
Unconditionally lookup using the client's tunnels.
|
net.i2p.data.DatabaseEntry |
lookupLocally(net.i2p.data.Hash key) |
net.i2p.data.DatabaseEntry |
lookupLocallyWithoutValidation(net.i2p.data.Hash key)
Not for use without validation
|
void |
lookupRouterInfo(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs) |
RouterInfo |
lookupRouterInfoLocally(net.i2p.data.Hash key) |
void |
publish(net.i2p.data.LeaseSet localLeaseSet) |
void |
publish(RouterInfo localRouterInfo) |
void |
restart()
Perform a soft restart.
|
void |
shutdown()
Instruct the service that the router is shutting down and that it should do
whatever is necessary to go down gracefully.
|
void |
startup()
Instruct the service that it should start normal operation.
|
net.i2p.data.LeaseSet |
store(net.i2p.data.Hash key,
net.i2p.data.LeaseSet leaseSet) |
RouterInfo |
store(net.i2p.data.Hash key,
RouterInfo routerInfo) |
void |
unpublish(net.i2p.data.LeaseSet localLeaseSet) |
floodfillEnabled, getBlindData, getBlindData, getKnownLeaseSets, getKnownRouters, getLastRouterInfoPublishTime, getLeases, getRouters, isInitialized, isNegativeCachedForever, removeBlindData, renderStatusHTML, rescan, reseedChecker, setBlindData, storepublic DummyNetworkDatabaseFacade(RouterContext ctx)
public void restart()
Servicepublic void shutdown()
Servicepublic void startup()
Servicepublic net.i2p.data.DatabaseEntry lookupLocally(net.i2p.data.Hash key)
lookupLocally in class NetworkDatabaseFacadepublic net.i2p.data.DatabaseEntry lookupLocallyWithoutValidation(net.i2p.data.Hash key)
NetworkDatabaseFacadelookupLocallyWithoutValidation in class NetworkDatabaseFacadepublic void lookupLeaseSet(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs)
lookupLeaseSet in class NetworkDatabaseFacadepublic void lookupLeaseSet(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs,
net.i2p.data.Hash fromLocalDest)
NetworkDatabaseFacadelookupLeaseSet in class NetworkDatabaseFacadefromLocalDest - use these tunnels for the lookup, or null for exploratorypublic net.i2p.data.LeaseSet lookupLeaseSetLocally(net.i2p.data.Hash key)
lookupLeaseSetLocally in class NetworkDatabaseFacadepublic void lookupLeaseSetRemotely(net.i2p.data.Hash key,
net.i2p.data.Hash fromLocalDest)
NetworkDatabaseFacadelookupLeaseSetRemotely in class NetworkDatabaseFacadefromLocalDest - use these tunnels for the lookup, or null for exploratorypublic void lookupLeaseSetRemotely(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs,
net.i2p.data.Hash fromLocalDest)
NetworkDatabaseFacadelookupLeaseSetRemotely in class NetworkDatabaseFacadeonFindJob - may be nullonFailedLookupJob - may be nullfromLocalDest - use these tunnels for the lookup, or null for exploratorypublic void lookupDestination(net.i2p.data.Hash key,
Job onFinishedJob,
long timeoutMs,
net.i2p.data.Hash fromLocalDest)
NetworkDatabaseFacadelookupDestination in class NetworkDatabaseFacadefromLocalDest - use these tunnels for the lookup, or null for exploratorypublic net.i2p.data.Destination lookupDestinationLocally(net.i2p.data.Hash key)
NetworkDatabaseFacadelookupDestinationLocally in class NetworkDatabaseFacadepublic void lookupRouterInfo(net.i2p.data.Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs)
lookupRouterInfo in class NetworkDatabaseFacadepublic RouterInfo lookupRouterInfoLocally(net.i2p.data.Hash key)
lookupRouterInfoLocally in class NetworkDatabaseFacadepublic void publish(net.i2p.data.LeaseSet localLeaseSet)
publish in class NetworkDatabaseFacadepublic void publish(RouterInfo localRouterInfo)
publish in class NetworkDatabaseFacadepublic net.i2p.data.LeaseSet store(net.i2p.data.Hash key,
net.i2p.data.LeaseSet leaseSet)
store in class NetworkDatabaseFacadepublic RouterInfo store(net.i2p.data.Hash key, RouterInfo routerInfo)
store in class NetworkDatabaseFacadepublic void unpublish(net.i2p.data.LeaseSet localLeaseSet)
unpublish in class NetworkDatabaseFacadepublic void fail(net.i2p.data.Hash dbEntry)
fail in class NetworkDatabaseFacadepublic Set<net.i2p.data.Hash> getAllRouters()
getAllRouters in class NetworkDatabaseFacadepublic Set<net.i2p.data.Hash> findNearestRouters(net.i2p.data.Hash key, int maxNumRouters, Set<net.i2p.data.Hash> peersToIgnore)
NetworkDatabaseFacadefindNearestRouters in class NetworkDatabaseFacadekey - The keymaxNumRouters - The maximum number of routers to returnpeersToIgnore - Hash of routers not to include