java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.peermanager.PeerTestJob.PeerReplyFoundJob
All Implemented Interfaces:
Job, ReplyJob
Enclosing class:
PeerTestJob

private class PeerTestJob.PeerReplyFoundJobextends JobImpl implements ReplyJob
Called when the peer's response is found.
  • Field Details

    • _peer

      private final RouterInfo _peer
      The peer that replied.
    • _testBegin

      private final long _testBegin
      When the test started.
    • _replyTunnel

      private final TunnelInfo _replyTunnel
      The tunnel the reply arrived on.
    • _sendTunnel

      private final TunnelInfo _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 context
      peer - the peer that replied
      replyTunnel - the tunnel the reply arrived on
      sendTunnel - the tunnel the test was sent on
  • Method Details

    • getName

      public String getName()
      Name of this job.
      Specified by:
      getName in interface Job
      Returns:
      the name this job is listed under in the job queue and the logs, "Verify Peer Test"
    • runJob

      public void runJob()
      Process the matched reply and record the test result.
      Specified by:
      runJob in interface Job
    • setMessage

      public void setMessage(I2NPMessage message)
      Store the message for this job.
      Specified by:
      setMessage in interface ReplyJob
      Parameters:
      message - the received I2NP message