Servicepublic class DummyNetworkDatabaseFacade extends NetworkDatabaseFacade
| コンストラクタ | 説明 |
|---|---|
DummyNetworkDatabaseFacade(RouterContext ctx) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
void |
fail(Hash dbEntry) |
|
java.util.Set<Hash> |
findNearestRouters(Hash key,
int maxNumRouters,
java.util.Set<Hash> peersToIgnore) |
Return the RouterInfo structures for the routers closest to the given key.
|
java.util.Set<Hash> |
getAllRouters() |
|
void |
lookupDestination(Hash key,
Job onFinishedJob,
long timeoutMs,
Hash fromLocalDest) |
Lookup using the client's tunnels
Succeeds even if LS validation fails due to unsupported sig type
|
Destination |
lookupDestinationLocally(Hash key) |
Lookup locally in netDB and in badDest cache
Succeeds even if LS validation failed due to unsupported sig type
|
void |
lookupLeaseSet(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs) |
|
void |
lookupLeaseSet(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs,
Hash fromLocalDest) |
Lookup using the client's tunnels
|
LeaseSet |
lookupLeaseSetLocally(Hash key) |
|
void |
lookupLeaseSetRemotely(Hash key,
Hash fromLocalDest) |
Unconditionally lookup using the client's tunnels.
|
DatabaseEntry |
lookupLocally(Hash key) |
|
void |
lookupRouterInfo(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs) |
|
RouterInfo |
lookupRouterInfoLocally(Hash key) |
|
void |
publish(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.
|
LeaseSet |
store(Hash key,
LeaseSet leaseSet) |
|
RouterInfo |
store(Hash key,
RouterInfo routerInfo) |
|
void |
unpublish(LeaseSet localLeaseSet) |
floodfillEnabled, getKnownLeaseSets, getKnownRouters, getLastRouterInfoPublishTime, getLeases, getRouters, isInitialized, isNegativeCachedForever, renderStatusHTML, rescan, reseedChecker, storepublic DummyNetworkDatabaseFacade(RouterContext ctx)
public void restart()
Servicepublic void shutdown()
Servicepublic void startup()
Servicepublic DatabaseEntry lookupLocally(Hash key)
lookupLocally クラス内 NetworkDatabaseFacadepublic void lookupLeaseSet(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs)
lookupLeaseSet クラス内 NetworkDatabaseFacadepublic void lookupLeaseSet(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs, Hash fromLocalDest)
NetworkDatabaseFacadelookupLeaseSet クラス内 NetworkDatabaseFacadefromLocalDest - use these tunnels for the lookup, or null for exploratorypublic void lookupLeaseSetRemotely(Hash key, Hash fromLocalDest)
NetworkDatabaseFacadelookupLeaseSetRemotely クラス内 NetworkDatabaseFacadefromLocalDest - use these tunnels for the lookup, or null for exploratorypublic void lookupDestination(Hash key, Job onFinishedJob, long timeoutMs, Hash fromLocalDest)
NetworkDatabaseFacadelookupDestination クラス内 NetworkDatabaseFacadefromLocalDest - use these tunnels for the lookup, or null for exploratorypublic Destination lookupDestinationLocally(Hash key)
NetworkDatabaseFacadepublic void lookupRouterInfo(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs)
lookupRouterInfo クラス内 NetworkDatabaseFacadepublic RouterInfo lookupRouterInfoLocally(Hash key)
public void publish(LeaseSet localLeaseSet)
publish クラス内 NetworkDatabaseFacadepublic void publish(RouterInfo localRouterInfo)
publish クラス内 NetworkDatabaseFacadepublic LeaseSet store(Hash key, LeaseSet leaseSet)
store クラス内 NetworkDatabaseFacadepublic RouterInfo store(Hash key, RouterInfo routerInfo)
store クラス内 NetworkDatabaseFacadepublic void unpublish(LeaseSet localLeaseSet)
unpublish クラス内 NetworkDatabaseFacadepublic void fail(Hash dbEntry)
fail クラス内 NetworkDatabaseFacadepublic java.util.Set<Hash> getAllRouters()
getAllRouters クラス内 NetworkDatabaseFacadepublic java.util.Set<Hash> findNearestRouters(Hash key, int maxNumRouters, java.util.Set<Hash> peersToIgnore)
NetworkDatabaseFacadefindNearestRouters クラス内 NetworkDatabaseFacadekey - The keymaxNumRouters - The maximum number of routers to returnpeersToIgnore - Hash of routers not to include