Packages that use PeerCoordinator
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of PeerCoordinator in org.klomp.snark
Classes in org.klomp.snark that implement interfaces with type arguments of type PeerCoordinatorModifier and TypeClassDescription(package private) classThread-safe collection for managing PeerCoordinator instances across multiple torrents.Fields in org.klomp.snark declared as PeerCoordinatorModifier and TypeFieldDescriptionprivate final PeerCoordinatorWebPeer._coordinatorThe coordinator requesting the pieces.private final PeerCoordinatorPeerAcceptor.coordinatorTold about the peers that connect in.private final PeerCoordinatorPeerCheckerTask.coordinatorThe coordinator whose peers are checked.private PeerCoordinatorSnark.coordinatorCoordinator of the peer connections.private final PeerCoordinatorTrackerClient.coordinatorCoordinator sharing peers with other torrents.Fields in org.klomp.snark with type parameters of type PeerCoordinatorModifier and TypeFieldDescriptionprivate final Map<SHA1Hash, PeerCoordinator> PeerCoordinatorSet._coordinatorsKeyed by the info hash of the torrent each coordinator works on.Methods in org.klomp.snark that return PeerCoordinatorModifier and TypeMethodDescriptionPeerCoordinatorSet.get(byte[] infoHash) Look up the coordinator handling a torrent.Methods in org.klomp.snark that return types with arguments of type PeerCoordinatorModifier and TypeMethodDescriptionPeerCoordinatorSet.iterator()Returns an iterator over all registered coordinators.Methods in org.klomp.snark with parameters of type PeerCoordinatorModifier and TypeMethodDescriptionvoidConnectionAcceptor.TorrentAcceptLoop.add(PeerCoordinator coordinator) Queue a peer's accept request.voidPeerCoordinatorSet.add(PeerCoordinator coordinator) Register a coordinator for its torrent's info hash.voidConnectionAcceptor.addTorrentAcceptor(TorrentDest td, PeerCoordinator coordinator) Start an accept loop on a torrent's destination, adding the torrent to the destination's loop when one already runs for a pooled destination.voidCoordinatorListener.gotMetaInfo(PeerCoordinator coordinator, MetaInfo metainfo) Called when the PeerCoordinator got the MetaInfo via magnet.voidSnark.gotMetaInfo(PeerCoordinator coordinator, MetaInfo metainfo) Called when the PeerCoordinator got the MetaInfo via magnet.booleanPeerCoordinatorSet.hasOtherRunning(PeerCoordinator exclude) Whether any other live, non-halted coordinator is registered.voidCoordinatorListener.peerChange(PeerCoordinator coordinator, Peer peer) Called when the PeerCoordinator notices a change in the state of a peer.voidSnark.peerChange(PeerCoordinator coordinator, Peer peer) CoordinatorListener no-op.voidConnectionAcceptor.TorrentAcceptLoop.remove(PeerCoordinator coordinator) Remove a torrent's coordinator from this loop's routing set.voidPeerCoordinatorSet.remove(PeerCoordinator coordinator) Unregister a coordinator.voidConnectionAcceptor.removeTorrentAcceptor(TorrentDest td, PeerCoordinator coordinator) Remove a torrent from its destination's accept loop, halting the loop when it no longer serves any torrent.Constructors in org.klomp.snark with parameters of type PeerCoordinatorModifierConstructorDescriptionPeerAcceptor(PeerCoordinator coordinator) Creates a single-torrent PeerAcceptor.(package private)PeerCheckerTask(I2PSnarkUtil util, PeerCoordinator coordinator) Creates a new checker task for the given coordinator.TrackerClient(I2PSnarkUtil util, MetaInfo meta, String additionalTrackerURL, PeerCoordinator coordinator, Snark snark) Call start() to start it.WebPeer(PeerCoordinator coord, URI uri, PeerID peerID, MetaInfo metainfo) Outgoing connection.