| Modifier and Type | Method and Description |
|---|---|
Optional<Torrent> |
TorrentClient.getTorrentByHash(byte[] torrentHash)
Gets the torrent associated with the given hash.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TorrentClient.download(Torrent torrent)
Initiates the downloading of a torrent.
|
void |
TorrentClient.download(Torrent torrent,
Collection<String> trackerUrls)
Initiates the downloading of a torrent.
|
int |
TorrentClient.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
|
| Modifier and Type | Method and Description |
|---|---|
Torrent |
TorrentInfo.getTorrent()
Gets the associated torrent
|
| Modifier and Type | Method and Description |
|---|---|
void |
ITracker.addTorrent(Torrent torrent)
Adds a torrent to the torrentMap if not already on it
|
void |
ITracker.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) |
boolean |
ITracker.hasTorrent(Torrent torrent)
Checks if the tracker can request information about the torrent
|
| Constructor and Description |
|---|
TorrentInfo(Torrent torrent,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Torrent> |
TorrentManager.getTorrent(byte[] hash)
Gets the torrent associated with the given hash.
|
Collection<Torrent> |
TorrentManager.getTorrents()
Creates a copy of the list containing the torrents
|
| Modifier and Type | Method and Description |
|---|---|
void |
TorrentManager.addTorrent(Torrent torrent)
Registers a new torrent
|
void |
TorrentManager.removeTorrent(Torrent torrent)
Removes a torrent from the list
|
void |
TorrentManager.shutdownTorrent(Torrent torrent)
Shuts down the torrent processing cleanly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TrackerManager.addTorrent(Torrent torrent,
String trackerUrl)
Adds the torrent to the tracker and registers the tracker.
|
void |
TrackerManager.announce(Torrent torrent)
Invokes the
ITracker.announce(Torrent) method for all trackers having the given torrent. |
int |
TrackerManager.getConnectingCountFor(Torrent torrent)
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
|
List<ITracker> |
TrackerManager.getTrackersFor(Torrent torrent)
Gets all trackers which know the given torrent
|
| Modifier and Type | Method and Description |
|---|---|
Torrent |
PeerConnectInfo.getTorrent() |
| Constructor and Description |
|---|
PeerConnectInfo(Torrent torrent,
InetSocketAddress address) |
| Modifier and Type | Method and Description |
|---|---|
IDownloadPhase |
PhaseRegulator.createInitialPhase(TorrentClient torrentClient,
Torrent torrent) |
Optional<IDownloadPhase> |
PhaseRegulator.createNextPhase(IDownloadPhase phase,
TorrentClient torrentClient,
Torrent torrent) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IDownloadPhase> |
PhaseRegulator.Builder.registerInitialPhase(Class<T> phase,
BiFunction<TorrentClient,Torrent,T> phaseSupplier,
Optional<Class<? extends IDownloadPhase>> nextPhase) |
<T extends IDownloadPhase> |
PhaseRegulator.Builder.registerPhase(Class<T> phase,
BiFunction<TorrentClient,Torrent,T> phaseSupplier,
Optional<Class<? extends IDownloadPhase>> nextPhase) |
| Constructor and Description |
|---|
PhaseData(TorrentClient torrentClient,
Torrent torrent) |
PhaseSeed(TorrentClient torrentClient,
Torrent torrent)
Creates a new seeding phase.
|
| Modifier and Type | Method and Description |
|---|---|
Torrent |
Torrent.Builder.build()
Creates a torrent without metadata information (the .torrent file is not present).
|
Torrent |
Torrent.Builder.buildFromMetata(File metadata,
File downloadFolder)
Creates a torrent with metadata information (the .torrent file is present).
|
| Constructor and Description |
|---|
MetadataFileSet(Torrent torrent,
File metadataFile) |
| Constructor and Description |
|---|
FullPieceSelect(Torrent torrent) |
| Modifier and Type | Method and Description |
|---|---|
Torrent |
Peer.getTorrent()
Gets the torrent to which this peer is linked.
|
| Modifier and Type | Method and Description |
|---|---|
Peer.Builder |
Peer.Builder.setTorrent(Torrent torrent) |
| Modifier and Type | Method and Description |
|---|---|
int |
PeerConnectorPool.getConnectingCountFor(Torrent torrent)
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
|
int |
PeerConnector.getConnectingCountFor(Torrent torrent)
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
|
int |
IPeerConnector.getConnectingCountFor(Torrent torrent)
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
|
boolean |
UncappedDistributor.hasReachedPeerLimit(Torrent torrent) |
boolean |
IPeerDistributor.hasReachedPeerLimit(Torrent torrent) |
boolean |
EqualDistributor.hasReachedPeerLimit(Torrent torrent) |
Copyright © 2016. All rights reserved.