All Implemented Interfaces:
Job
Direct Known Subclasses:
IterativeFollowupJob

class SingleSearchJobextends FloodOnlySearchJob
Performs a targeted lookup to a single peer for a specific key.

This specialized search job queries exactly one peer for a RouterInfo associated with the target key. Despite extending FloodOnlySearchJob, this is not a flood operation but rather a direct, point-to-point lookup designed for specific scenarios where the target peer is known.

Used primarily for followup operations and targeted peer validation where the response from a specific peer is required. The job handles tunnel selection, message construction, and timeout management for reliable single-peer communication.

  • Field Details

    • _to

      private final Hash _to
      The hash being looked up.
    • _onm

      private OutNetMessage _onm
      The lookup message awaiting a reply.
    • TIMEOUT

      private static final int TIMEOUT
      How long to wait for the reply - 8 seconds.
      See Also:
  • Constructor Details

    • SingleSearchJob

      public SingleSearchJob(RouterContext ctx, Hash key, Hash to)
      Send one DatabaseLookupMessage straight to a chosen peer over exploratory tunnels, instead of flooding the networkDb with it.
      Parameters:
      ctx - the router context for the parent search job
      key - for Router Info ONLY
      to - the peer the lookup is sent to
  • Method Details