java.lang.Object
org.klomp.snark.PeerCheckerTask
- All Implemented Interfaces:
Runnable
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LogLogger for this class.private intHow many times the task has run.private final I2PSnarkUtilThe torrent the peers belong to.private final PeerCoordinatorThe coordinator whose peers are checked.private static final longTransfer rate implied by one check per period, in bytes per second.private final RandomChooses which peers to check.Constructor Summary
ConstructorsConstructorDescriptionPeerCheckerTask(I2PSnarkUtil util, PeerCoordinator coordinator) Creates a new checker task for the given coordinator.Method Summary
All Methods
Field Details
KILOPERSECOND
private static final long KILOPERSECONDTransfer rate implied by one check per period, in bytes per second.- See Also:
coordinator
The coordinator whose peers are checked._util
The torrent the peers belong to._log
Logger for this class.random
Chooses which peers to check._runCount
private int _runCountHow many times the task has run.
Constructor Details
PeerCheckerTask
PeerCheckerTask(I2PSnarkUtil util, PeerCoordinator coordinator) Creates a new checker task for the given coordinator.- Parameters:
util- the snark utilitycoordinator- the coordinator to check
Method Details
run