|
||||||||||
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.DummyNetworkDatabaseFacade
class DummyNetworkDatabaseFacade
Constructor Summary | |
---|---|
DummyNetworkDatabaseFacade(RouterContext ctx)
|
Method Summary | |
---|---|
void |
fail(Hash dbEntry)
|
java.util.Set |
findNearestRouters(Hash key,
int maxNumRouters,
java.util.Set peersToIgnore)
Return the RouterInfo structures for the routers closest to the given key. |
void |
lookupLeaseSet(Hash key,
Job onFindJob,
Job onFailedLookupJob,
long timeoutMs)
|
LeaseSet |
lookupLeaseSetLocally(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 |
renderStatusHTML(java.io.Writer out)
|
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 |
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 void lookupLeaseSet(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs)
lookupLeaseSet
in class NetworkDatabaseFacade
public LeaseSet lookupLeaseSetLocally(Hash key)
lookupLeaseSetLocally
in class NetworkDatabaseFacade
public void lookupRouterInfo(Hash key, Job onFindJob, Job onFailedLookupJob, long timeoutMs)
lookupRouterInfo
in class NetworkDatabaseFacade
public RouterInfo lookupRouterInfoLocally(Hash key)
lookupRouterInfoLocally
in class NetworkDatabaseFacade
public void publish(LeaseSet localLeaseSet)
publish
in class NetworkDatabaseFacade
public 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 NetworkDatabaseFacade
public void unpublish(LeaseSet localLeaseSet)
unpublish
in class NetworkDatabaseFacade
public void fail(Hash dbEntry)
fail
in class NetworkDatabaseFacade
public java.util.Set findNearestRouters(Hash key, int maxNumRouters, java.util.Set peersToIgnore)
NetworkDatabaseFacade
findNearestRouters
in class NetworkDatabaseFacade
key
- The keymaxNumRouters
- The maximum number of routers to returnpeersToIgnore
- Hash of routers not to includepublic void renderStatusHTML(java.io.Writer out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |