org.gudy.azureus2.core3.tracker.host
Interface TRHost
- All Known Implementing Classes:
- TRHostImpl
public interface TRHost
DEFAULT_MIN_RETRY_DELAY
static final int DEFAULT_MIN_RETRY_DELAY
- See Also:
- Constant Field Values
DEFAULT_MAX_RETRY_DELAY
static final int DEFAULT_MAX_RETRY_DELAY
- See Also:
- Constant Field Values
DEFAULT_INC_BY
static final int DEFAULT_INC_BY
- See Also:
- Constant Field Values
DEFAULT_INC_PER
static final int DEFAULT_INC_PER
- See Also:
- Constant Field Values
DEFAULT_SCRAPE_RETRY_PERCENTAGE
static final int DEFAULT_SCRAPE_RETRY_PERCENTAGE
- See Also:
- Constant Field Values
DEFAULT_SCRAPE_CACHE_PERIOD
static final int DEFAULT_SCRAPE_CACHE_PERIOD
- See Also:
- Constant Field Values
DEFAULT_ANNOUNCE_CACHE_PERIOD
static final int DEFAULT_ANNOUNCE_CACHE_PERIOD
- See Also:
- Constant Field Values
DEFAULT_ANNOUNCE_CACHE_PEER_THRESHOLD
static final int DEFAULT_ANNOUNCE_CACHE_PEER_THRESHOLD
- See Also:
- Constant Field Values
DEFAULT_PORT
static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_PORT_SSL
static final int DEFAULT_PORT_SSL
- See Also:
- Constant Field Values
initialise
void initialise(TRHostTorrentFinder finder)
getName
String getName()
getBindIP
InetAddress getBindIP()
hostTorrent
TRHostTorrent hostTorrent(TOTorrent torrent,
boolean persistent,
boolean passive)
throws TRHostException
- Throws:
TRHostException
publishTorrent
TRHostTorrent publishTorrent(TOTorrent torrent)
throws TRHostException
- Throws:
TRHostException
getTorrents
TRHostTorrent[] getTorrents()
getHostTorrent
TRHostTorrent getHostTorrent(TOTorrent torrent)
- returns the host torrent for the torrent if it exists, null otherwise
- Parameters:
torrent
-
- Returns:
addListener
void addListener(TRHostListener l)
removeListener
void removeListener(TRHostListener l)
addListener2
void addListener2(TRHostListener2 l)
removeListener2
void removeListener2(TRHostListener2 l)
addAuthenticationListener
void addAuthenticationListener(TRHostAuthenticationListener l)
removeAuthenticationListener
void removeAuthenticationListener(TRHostAuthenticationListener l)
close
void close()