org.gudy.azureus2.core3.tracker.host
Interface TRHost

All Known Implementing Classes:
TRHostImpl

public interface TRHost


Field Summary
static int DEFAULT_ANNOUNCE_CACHE_PEER_THRESHOLD
           
static int DEFAULT_ANNOUNCE_CACHE_PERIOD
           
static int DEFAULT_INC_BY
           
static int DEFAULT_INC_PER
           
static int DEFAULT_MAX_RETRY_DELAY
           
static int DEFAULT_MIN_RETRY_DELAY
           
static int DEFAULT_PORT
           
static int DEFAULT_PORT_SSL
           
static int DEFAULT_SCRAPE_CACHE_PERIOD
           
static int DEFAULT_SCRAPE_RETRY_PERCENTAGE
           
 
Method Summary
 void addAuthenticationListener(TRHostAuthenticationListener l)
           
 void addListener(TRHostListener l)
           
 void addListener2(TRHostListener2 l)
           
 void close()
           
 java.net.InetAddress getBindIP()
           
 TRHostTorrent getHostTorrent(TOTorrent torrent)
          returns the host torrent for the torrent if it exists, null otherwise
 java.lang.String getName()
           
 TRHostTorrent[] getTorrents()
           
 TRHostTorrent hostTorrent(TOTorrent torrent, boolean persistent, boolean passive)
           
 void initialise(TRHostTorrentFinder finder)
           
 TRHostTorrent publishTorrent(TOTorrent torrent)
           
 void removeAuthenticationListener(TRHostAuthenticationListener l)
           
 void removeListener(TRHostListener l)
           
 void removeListener2(TRHostListener2 l)
           
 

Field Detail

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
Method Detail

initialise

void initialise(TRHostTorrentFinder finder)

getName

java.lang.String getName()

getBindIP

java.net.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()