Class NetworkAdminSpeedTesterBTImpl

    • Field Detail

      • DOWNLOAD_STD_DEV

        public static final java.lang.String DOWNLOAD_STD_DEV
        See Also:
        Constant Field Values
      • testMode

        static int testMode
      • test_started

        private boolean test_started
      • test_completed

        boolean test_completed
      • use_crypto

        boolean use_crypto
      • aborted

        volatile boolean aborted
      • deferred_abort

        java.lang.String deferred_abort
    • Constructor Detail

      • NetworkAdminSpeedTesterBTImpl

        public NetworkAdminSpeedTesterBTImpl​(PluginInterface pi)
        Parameters:
        pi - - PluginInterface is used to get Manager classes.
    • Method Detail

      • initialise

        protected static void initialise()
      • startUp

        protected static void startUp()
      • start

        public void start​(TOTorrent tot)
        The downloads have been stopped just need to do the testing.
        Parameters:
        tot - - Torrent recieved from testing service.
      • setStartPieceBasedOnMode

        static int setStartPieceBasedOnMode​(int mode,
                                            int totalPieces)
        Depending on the mode we want to upload all the set all, none or only half the pieces to done.
        Parameters:
        mode - - int that maps to NetworkAdminSpeedTestScheduler.TEST_TYPE...
        totalPieces - - total pieces in this test torrent.
        Returns:
        - int - the starting piece number to setDone to true.
      • autoboxLong

        static long autoboxLong​(java.lang.Object o)
      • autoboxLong

        private static long autoboxLong​(java.lang.Long l)
      • autoboxLong

        static java.lang.Long autoboxLong​(long l)
      • autoboxDouble

        static java.lang.Double autoboxDouble​(double d)