java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.BuildHandler.TunnelBuildNextHopFailJob
- All Implemented Interfaces:
Job
- Enclosing class:
BuildHandler
Remove the participating tunnel if we can't contact the next hop Not strictly necessary, as the entry doesn't use that much space, but it affects capacity calculations.
Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTunnelBuildNextHopFailJob(RouterContext ctx, HopConfig cfg) Creates the job reporting a next-hop failure.Method Summary
Public 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
_cfg
The hop whose build failed.
Constructor Details
TunnelBuildNextHopFailJob
Creates the job reporting a next-hop failure.- Parameters:
ctx- the router reporting itcfg- the hop that failed
Method Details
getName
The name of this job.- Returns:
- the job name used for logging and identification
runJob
public void runJob()Remove the participating tunnel when the next hop cannot be contacted.countReplied
void countReplied()Record a successful reply to an inbound build request we handled. Pairs withBuildHandler.countNextHopOutcome(int, Log, long)so the hop-contact failure rate is visible without grepping DEBUG.