java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.FloodfillMonitorJob
- All Implemented Interfaces:
Job
Simple job to monitor the floodfill pool. If we are class N or O, and meet some other criteria, we will automatically become floodfill if there aren't enough. But only change ff status every few hours to minimize ff churn.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionFloodfillMonitorJob(RouterContext context, FloodfillNetworkDatabaseFacade facade) Creates a new FloodfillMonitorJob.Method Summary
All MethodsMethods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Constructor Details
FloodfillMonitorJob
Creates a new FloodfillMonitorJob.- Parameters:
context- the router contextfacade- the floodfill network database facade
Method Details
getName
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.