Uses of Class
org.johnnei.javatorrent.torrent.Torrent
-
-
Uses of Torrent in org.johnnei.javatorrent
Methods in org.johnnei.javatorrent that return types with arguments of type Torrent Modifier and Type Method Description Optional<Torrent>TorrentClient. getTorrentByHash(byte[] torrentHash)Gets the torrent associated with the given hash.Methods in org.johnnei.javatorrent with parameters of type Torrent Modifier and Type Method Description voidTorrentClient. download(Torrent torrent)Initiates the downloading of a torrent.voidTorrentClient. download(Torrent torrent, Collection<String> trackerUrls)Initiates the downloading of a torrent.intTorrentClient. getConnectingCountFor(Torrent torrent)Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.List<ITracker>TorrentClient. getTrackersFor(Torrent torrent)Gets all trackers which know the given torrent -
Uses of Torrent in org.johnnei.javatorrent.bittorrent.tracker
Methods in org.johnnei.javatorrent.bittorrent.tracker that return Torrent Modifier and Type Method Description TorrentTorrentInfo. getTorrent()Gets the associated torrentMethods in org.johnnei.javatorrent.bittorrent.tracker with parameters of type Torrent Modifier and Type Method Description voidITracker. addTorrent(Torrent torrent)Adds a torrent to the torrentMap if not already on itvoidITracker. announce(Torrent torrent)Requests the tracker to execute an announce event.Optional<TorrentInfo>ITracker. getInfo(Torrent torrent)Retrieves the torrent information which is stored for this tracker.List<ITracker>TrackerFactory. getTrackersHavingTorrent(Torrent torrent)booleanITracker. hasTorrent(Torrent torrent)Checks if the tracker can request information about the torrentConstructors in org.johnnei.javatorrent.bittorrent.tracker with parameters of type Torrent Constructor Description TorrentInfo(Torrent torrent, Clock clock) -
Uses of Torrent in org.johnnei.javatorrent.network
Methods in org.johnnei.javatorrent.network that return Torrent Modifier and Type Method Description TorrentPeerConnectInfo. getTorrent()Constructors in org.johnnei.javatorrent.network with parameters of type Torrent Constructor Description PeerConnectInfo(Torrent torrent, InetSocketAddress address) -
Uses of Torrent in org.johnnei.javatorrent.phases
Methods in org.johnnei.javatorrent.phases with parameters of type Torrent Modifier and Type Method Description IDownloadPhasePhaseRegulator. createInitialPhase(TorrentClient torrentClient, Torrent torrent)Creates an instance of the initialIDownloadPhasefor the givenTorrent.Optional<IDownloadPhase>PhaseRegulator. createNextPhase(IDownloadPhase phase, TorrentClient torrentClient, Torrent torrent)Creates an instance of the nextIDownloadPhasefor the givenTorrent.Method parameters in org.johnnei.javatorrent.phases with type arguments of type Torrent Modifier and Type Method Description <T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerInitialPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier)Registers the initialIDownloadPhase<T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerInitialPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier, Class<? extends IDownloadPhase> nextPhase)Registers the initialIDownloadPhase<T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier)Registers a new transition to the givenIDownloadPhase<T extends IDownloadPhase>
PhaseRegulator.BuilderPhaseRegulator.Builder. registerPhase(Class<T> phase, BiFunction<TorrentClient,Torrent,T> phaseSupplier, Class<? extends IDownloadPhase> nextPhase)Registers a new transition to the givenIDownloadPhaseConstructors in org.johnnei.javatorrent.phases with parameters of type Torrent Constructor Description PhaseData(TorrentClient torrentClient, Torrent torrent)Creates a new Data Phase for the given torrent.PhaseSeed(TorrentClient torrentClient, Torrent torrent)Creates a new seeding phase. -
Uses of Torrent in org.johnnei.javatorrent.torrent
Methods in org.johnnei.javatorrent.torrent that return Torrent Modifier and Type Method Description TorrentTorrent.Builder. build()Creates a torrent without metadata information (the .torrent file is not present). -
Uses of Torrent in org.johnnei.javatorrent.torrent.algos.pieceselector
Constructors in org.johnnei.javatorrent.torrent.algos.pieceselector with parameters of type Torrent Constructor Description FullPieceSelect(Torrent torrent) -
Uses of Torrent in org.johnnei.javatorrent.torrent.peer
Methods in org.johnnei.javatorrent.torrent.peer that return Torrent Modifier and Type Method Description TorrentPeer. getTorrent()Gets the torrent to which this peer is linked.Methods in org.johnnei.javatorrent.torrent.peer with parameters of type Torrent Modifier and Type Method Description Peer.BuilderPeer.Builder. setTorrent(Torrent torrent) -
Uses of Torrent in org.johnnei.javatorrent.tracker
Methods in org.johnnei.javatorrent.tracker with parameters of type Torrent Modifier and Type Method Description intIPeerConnector. getConnectingCountFor(Torrent torrent)Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.intNioPeerConnector. getConnectingCountFor(Torrent torrent)booleanEqualDistributor. hasReachedPeerLimit(Torrent torrent)booleanIPeerDistributor. hasReachedPeerLimit(Torrent torrent)booleanUncappedDistributor. hasReachedPeerLimit(Torrent torrent)
-