Class PeerTestJob

  • All Implemented Interfaces:
    Job

    class PeerTestJob
    extends JobImpl
    Grab some peers that we want to test and probe them briefly to get some more accurate and up to date performance data. This delegates the peer selection to the peer manager and tests the peer by sending it a useless database store message TODO - What's the point? Disable this? See also notes in PeerManager.selectPeers(). TODO - Use something besides sending the peer's RI to itself?
    • Constructor Detail

      • PeerTestJob

        public PeerTestJob​(RouterContext context)
        Creates a new instance of PeerTestJob
    • Method Detail

      • startTesting

        public void startTesting​(PeerManager manager)
      • stopTesting

        public void stopTesting()
      • getName

        public String getName()
        Description copied from interface: Job
        Descriptive name of the task
      • runJob

        public void runJob()
        Description copied from interface: Job
        Actually perform the task. This call blocks until the Job is complete.