|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.NetworkDatabaseFacade
net.i2p.router.dummy.DummyNetworkDatabaseFacade
public class DummyNetworkDatabaseFacade
| Constructor Summary | |
|---|---|
DummyNetworkDatabaseFacade(RouterContext ctx)
|
|
| Method Summary | |
|---|---|
void |
fail(Hash dbEntry)
|
Set<Hash> |
findNearestRouters(Hash key,
int maxNumRouters,
Set<Hash> peersToIgnore)
Return the RouterInfo structures for the routers closest to the given key. |
Set<Hash> |
getAllRouters()
|
void |
lookupLeaseSet(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs)
|
LeaseSet |
lookupLeaseSetLocally(Hash key)
|
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)
return the leaseSet if another leaseSet already existed at that key |
RouterInfo |
store(Hash key,
RouterInfo routerInfo)
return the routerInfo if another router already existed at that key |
void |
unpublish(LeaseSet localLeaseSet)
|
| Methods inherited from class net.i2p.router.NetworkDatabaseFacade |
|---|
getKnownLeaseSets, getKnownRouters, getLeases, getRouters, isInitialized, renderStatusHTML, rescan, reseedChecker |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyNetworkDatabaseFacade(RouterContext ctx)
| Method Detail |
|---|
public void restart()
Service
public void shutdown()
Service
public void startup()
Service
public DatabaseEntry lookupLocally(Hash key)
lookupLocally in class NetworkDatabaseFacade
public void lookupLeaseSet(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs)
lookupLeaseSet in class NetworkDatabaseFacadepublic LeaseSet lookupLeaseSetLocally(Hash key)
lookupLeaseSetLocally in class NetworkDatabaseFacade
public void lookupRouterInfo(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs)
lookupRouterInfo in class NetworkDatabaseFacadepublic RouterInfo lookupRouterInfoLocally(Hash key)
lookupRouterInfoLocally in class NetworkDatabaseFacadepublic void publish(LeaseSet localLeaseSet)
publish in class NetworkDatabaseFacadepublic void publish(RouterInfo localRouterInfo)
publish in class NetworkDatabaseFacade
public LeaseSet store(Hash key,
LeaseSet leaseSet)
NetworkDatabaseFacade
store in class NetworkDatabaseFacade
public RouterInfo store(Hash key,
RouterInfo routerInfo)
NetworkDatabaseFacade
store in class NetworkDatabaseFacadepublic void unpublish(LeaseSet localLeaseSet)
unpublish in class NetworkDatabaseFacadepublic void fail(Hash dbEntry)
fail in class NetworkDatabaseFacadepublic Set<Hash> getAllRouters()
getAllRouters in class NetworkDatabaseFacade
public Set<Hash> findNearestRouters(Hash key,
int maxNumRouters,
Set<Hash> peersToIgnore)
NetworkDatabaseFacade
findNearestRouters in class NetworkDatabaseFacadekey - The keymaxNumRouters - The maximum number of routers to returnpeersToIgnore - Hash of routers not to include
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||