java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.peermanager.PeerTestJob.PeerReplyFoundJob
- Enclosing class:
PeerTestJob
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RouterInfoThe peer that replied.private final TunnelInfoThe tunnel the reply arrived on.private final TunnelInfoThe tunnel the test was sent on.private final longWhen the test started.Constructor Summary
ConstructorsConstructorDescriptionPeerReplyFoundJob(RouterContext context, RouterInfo peer, TunnelInfo replyTunnel, TunnelInfo sendTunnel) Starts the clock when the tested peer's reply arrived.Method Summary
All MethodsModifier and TypeMethodDescriptiongetName()Name of this job.voidrunJob()Process the matched reply and record the test result.voidsetMessage(I2NPMessage message) Store the message for this job.Methods 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
_peer
The peer that replied._testBegin
private final long _testBeginWhen the test started._replyTunnel
The tunnel the reply arrived on._sendTunnel
The tunnel the test was sent on.
Constructor Details
PeerReplyFoundJob
public PeerReplyFoundJob(RouterContext context, RouterInfo peer, TunnelInfo replyTunnel, TunnelInfo sendTunnel) Starts the clock when the tested peer's reply arrived.- Parameters:
context- the router contextpeer- the peer that repliedreplyTunnel- the tunnel the reply arrived onsendTunnel- the tunnel the test was sent on
Method Details
getName
runJob
setMessage
Store the message for this job.- Specified by:
setMessagein interfaceReplyJob- Parameters:
message- the received I2NP message