Service
public 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, store
public DummyNetworkDatabaseFacade(RouterContext ctx)
public void restart()
Service
public void shutdown()
Service
public void startup()
Service
public DatabaseEntry lookupLocally(Hash key)
lookupLocally
クラス内 NetworkDatabaseFacade
public void lookupLeaseSet(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs)
lookupLeaseSet
クラス内 NetworkDatabaseFacade
public void lookupLeaseSet(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs, Hash fromLocalDest)
NetworkDatabaseFacade
lookupLeaseSet
クラス内 NetworkDatabaseFacade
fromLocalDest
- use these tunnels for the lookup, or null for exploratorypublic void lookupLeaseSetRemotely(Hash key, Hash fromLocalDest)
NetworkDatabaseFacade
lookupLeaseSetRemotely
クラス内 NetworkDatabaseFacade
fromLocalDest
- use these tunnels for the lookup, or null for exploratorypublic void lookupDestination(Hash key, Job onFinishedJob, long timeoutMs, Hash fromLocalDest)
NetworkDatabaseFacade
lookupDestination
クラス内 NetworkDatabaseFacade
fromLocalDest
- use these tunnels for the lookup, or null for exploratorypublic Destination lookupDestinationLocally(Hash key)
NetworkDatabaseFacade
public void lookupRouterInfo(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs)
lookupRouterInfo
クラス内 NetworkDatabaseFacade
public RouterInfo lookupRouterInfoLocally(Hash key)
public void publish(LeaseSet localLeaseSet)
publish
クラス内 NetworkDatabaseFacade
public void publish(RouterInfo localRouterInfo)
publish
クラス内 NetworkDatabaseFacade
public LeaseSet store(Hash key, LeaseSet leaseSet)
store
クラス内 NetworkDatabaseFacade
public RouterInfo store(Hash key, RouterInfo routerInfo)
store
クラス内 NetworkDatabaseFacade
public void unpublish(LeaseSet localLeaseSet)
unpublish
クラス内 NetworkDatabaseFacade
public void fail(Hash dbEntry)
fail
クラス内 NetworkDatabaseFacade
public java.util.Set<Hash> getAllRouters()
getAllRouters
クラス内 NetworkDatabaseFacade
public java.util.Set<Hash> findNearestRouters(Hash key, int maxNumRouters, java.util.Set<Hash> peersToIgnore)
NetworkDatabaseFacade
findNearestRouters
クラス内 NetworkDatabaseFacade
key
- The keymaxNumRouters
- The maximum number of routers to returnpeersToIgnore
- Hash of routers not to include