|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.StoreJob
net.i2p.router.networkdb.kademlia.FloodfillStoreJob
class FloodfillStoreJob
This extends StoreJob to fire off a FloodfillVerifyStoreJob after success. Stores through this class always request a reply.
Field Summary |
---|
Fields inherited from class net.i2p.router.networkdb.kademlia.StoreJob |
---|
_log, _state |
Constructor Summary | |
---|---|
FloodfillStoreJob(RouterContext context,
FloodfillNetworkDatabaseFacade facade,
Hash key,
DatabaseEntry data,
Job onSuccess,
Job onFailure,
long timeoutMs)
Send a data structure to the floodfills |
|
FloodfillStoreJob(RouterContext context,
FloodfillNetworkDatabaseFacade facade,
Hash key,
DatabaseEntry data,
Job onSuccess,
Job onFailure,
long timeoutMs,
Set<Hash> toSkip)
|
Method Summary | |
---|---|
String |
getName()
Descriptive name of the task |
protected int |
getParallelization()
overridden in FSJ |
protected int |
getRedundancy()
overridden in FSJ |
protected void |
succeed()
Send was totally successful |
Methods inherited from class net.i2p.router.networkdb.kademlia.StoreJob |
---|
fail, runJob, supportsBigLeaseSets, supportsCert |
Methods inherited from class net.i2p.router.JobImpl |
---|
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FloodfillStoreJob(RouterContext context, FloodfillNetworkDatabaseFacade facade, Hash key, DatabaseEntry data, Job onSuccess, Job onFailure, long timeoutMs)
public FloodfillStoreJob(RouterContext context, FloodfillNetworkDatabaseFacade facade, Hash key, DatabaseEntry data, Job onSuccess, Job onFailure, long timeoutMs, Set<Hash> toSkip)
toSkip
- set of peer hashes of people we dont want to send the data to (e.g. we
already know they have it). This can be null.Method Detail |
---|
protected int getParallelization()
StoreJob
getParallelization
in class StoreJob
protected int getRedundancy()
StoreJob
getRedundancy
in class StoreJob
protected void succeed()
succeed
in class StoreJob
public String getName()
Job
getName
in interface Job
getName
in class StoreJob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |