Class HandleFloodfillDatabaseLookupMessageJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.HandleDatabaseLookupMessageJob
net.i2p.router.networkdb.kademlia.HandleFloodfillDatabaseLookupMessageJob
- All Implemented Interfaces:
Job
Handle a lookup for a key received from a remote peer. Needs to be implemented
to send back replies, etc
-
Field Summary
Fields inherited from class net.i2p.router.networkdb.HandleDatabaseLookupMessageJob
EXPIRE_DELAY
-
Constructor Summary
ConstructorDescriptionHandleFloodfillDatabaseLookupMessageJob
(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity from, Hash fromHash) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
We extend this here to send our routerInfo back as well, if we are not floodfill.Methods inherited from class net.i2p.router.networkdb.HandleDatabaseLookupMessageJob
dropped, getName, runJob, sendMessage
Methods inherited from class net.i2p.router.JobImpl
getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, madeReady, requeue, toString
-
Constructor Details
-
HandleFloodfillDatabaseLookupMessageJob
public HandleFloodfillDatabaseLookupMessageJob(RouterContext ctx, DatabaseLookupMessage receivedMessage, RouterIdentity from, Hash fromHash)
-
-
Method Details
-
answerAllQueries
protected boolean answerAllQueries()- Overrides:
answerAllQueries
in classHandleDatabaseLookupMessageJob
- Returns:
- are we floodfill We don't really answer all queries if this is true, since floodfills don't have the whole keyspace any more, see ../HTLMJ for discussion
-
sendClosest
We extend this here to send our routerInfo back as well, if we are not floodfill. This gets the word out to routers that we are no longer floodfill, so they will stop bugging us.- Overrides:
sendClosest
in classHandleDatabaseLookupMessageJob
-