Package com.biglybt.core.tracker.host
Interface TRHost
- All Known Implementing Classes:
TRHostImpl
public interface TRHost
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
close()
getHostTorrent
(TOTorrent torrent) returns the host torrent for the torrent if it exists, null otherwisegetName()
int
hostTorrent
(TOTorrent torrent, boolean persistent, boolean passive) void
initialise
(TRHostTorrentFinder finder) publishTorrent
(TOTorrent torrent) void
void
void
-
Field Details
-
DEFAULT_MIN_RETRY_DELAY
static final int DEFAULT_MIN_RETRY_DELAY- See Also:
-
DEFAULT_MAX_RETRY_DELAY
static final int DEFAULT_MAX_RETRY_DELAY- See Also:
-
DEFAULT_INC_BY
static final int DEFAULT_INC_BY- See Also:
-
DEFAULT_INC_PER
static final int DEFAULT_INC_PER- See Also:
-
DEFAULT_SCRAPE_RETRY_PERCENTAGE
static final int DEFAULT_SCRAPE_RETRY_PERCENTAGE- See Also:
-
DEFAULT_SCRAPE_CACHE_PERIOD
static final int DEFAULT_SCRAPE_CACHE_PERIOD- See Also:
-
DEFAULT_ANNOUNCE_CACHE_PERIOD
static final int DEFAULT_ANNOUNCE_CACHE_PERIOD- See Also:
-
DEFAULT_ANNOUNCE_CACHE_PEER_THRESHOLD
static final int DEFAULT_ANNOUNCE_CACHE_PEER_THRESHOLD- See Also:
-
DEFAULT_PORT
static final int DEFAULT_PORT- See Also:
-
DEFAULT_PORT_SSL
static final int DEFAULT_PORT_SSL- See Also:
-
-
Method Details
-
initialise
-
getName
String getName() -
getBindIP
InetAddress getBindIP() -
hostTorrent
TRHostTorrent hostTorrent(TOTorrent torrent, boolean persistent, boolean passive) throws TRHostException - Throws:
TRHostException
-
publishTorrent
- Throws:
TRHostException
-
getTorrents
TRHostTorrent[] getTorrents() -
getTorrentCount
int getTorrentCount() -
getHostTorrent
returns the host torrent for the torrent if it exists, null otherwise- Parameters:
torrent
-- Returns:
-
addListener
-
removeListener
-
addListener2
-
removeListener2
-
addAuthenticationListener
-
removeAuthenticationListener
-
close
void close()
-