java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tasks.UpdateRoutingKeyModifierJob
- All Implemented Interfaces:
Job
Update the routing Key modifier every day at midnight (plus on startup). This is done here because we want to make sure the key is updated before anyone uses it.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longLongest the job may be delayed, 15 min.Constructor Summary
ConstructorsConstructorDescriptionCreate a new routing key modifier update job.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()
Field Details
MAX_DELAY_FAILSAFE
private static final long MAX_DELAY_FAILSAFELongest the job may be delayed, 15 min. It runs about that often, in case of a time zone change or clock skew.- See Also:
Constructor Details
UpdateRoutingKeyModifierJob
Create a new routing key modifier update job.- Parameters:
ctx- the router context for accessing router services
Method Details
getName
runJob
public void runJob()Update the routing key modifier if needed.This job runs periodically (every 15 minutes maximum) to ensure the routing key modifier is updated daily at midnight. The routing key modifier is used in cryptographic operations and must be updated regularly for security.
If the modifier data changes, notifies the network database that routing keys have changed.