public interface ITracker
| Modifier and Type | Method and Description |
|---|---|
void |
addTorrent(Torrent torrent)
Adds a torrent to the torrentMap if not already on it
|
void |
announce(Torrent torrent)
Requests the tracker to execute an announce event.
|
void |
connectPeer(PeerConnectInfo peer)
Dispatches the connecting of a peer by the tracker.
|
Optional<TorrentInfo> |
getInfo(Torrent torrent)
Retrieves the torrent information which is stored for this tracker.
|
String |
getName()
Returns a user friendly name for this tracker.
|
String |
getStatus()
Returns the a user friendly name for the current action which the being executed.
|
boolean |
hasTorrent(Torrent torrent)
Checks if the tracker can request information about the torrent
|
void |
scrape()
Requests a scrape off all known torrent in this tracker.
|
void addTorrent(Torrent torrent)
torrent - The torrent to addboolean hasTorrent(Torrent torrent)
torrent - The torrent we want information aboutvoid announce(Torrent torrent)
torrent - The torrent for which an announce event is being requested.void scrape()
void connectPeer(PeerConnectInfo peer)
peer - The peer connection informationOptional<TorrentInfo> getInfo(Torrent torrent)
torrent - The torrent which the information should be retrievedString getStatus()
String getName()
Copyright © 2016. All rights reserved.