org.gudy.azureus2.plugins.tracker
Interface Tracker

All Superinterfaces:
TrackerWebContext
All Known Implementing Classes:
RPTracker, TrackerImpl

public interface Tracker
extends TrackerWebContext


Field Summary
static int PR_HTTP
           
static int PR_HTTPS
           
static String PR_NON_BLOCKING
           
 
Method Summary
 void addListener(TrackerListener listener)
           
 TrackerWebContext createWebContext(int port, int protocol)
           
 TrackerWebContext createWebContext(String name, int port, int protocol)
          Create a new web context for the given port and protocol
 TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip)
          Creates a new context bound to the supplied ip
 TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip, Map<String,Object> properties)
           
 TrackerTorrent getTorrent(Torrent torrent)
           
 TrackerTorrent[] getTorrents()
           
 TrackerTorrent host(Torrent torrent, boolean persistent)
           
 TrackerTorrent host(Torrent torrent, boolean persistent, boolean passive)
           
 TrackerTorrent publish(Torrent torrent)
           
 void removeListener(TrackerListener listener)
           
 
Methods inherited from interface org.gudy.azureus2.plugins.tracker.web.TrackerWebContext
addAuthenticationListener, addPageGenerator, destroy, getBindIP, getName, getPageGenerators, getURLs, removeAuthenticationListener, removePageGenerator, setEnableKeepAlive
 

Field Detail

PR_HTTP

static final int PR_HTTP
See Also:
Constant Field Values

PR_HTTPS

static final int PR_HTTPS
See Also:
Constant Field Values

PR_NON_BLOCKING

static final String PR_NON_BLOCKING
See Also:
Constant Field Values
Method Detail

host

TrackerTorrent host(Torrent torrent,
                    boolean persistent)
                    throws TrackerException
Throws:
TrackerException

host

TrackerTorrent host(Torrent torrent,
                    boolean persistent,
                    boolean passive)
                    throws TrackerException
Throws:
TrackerException

publish

TrackerTorrent publish(Torrent torrent)
                       throws TrackerException
Throws:
TrackerException

getTorrent

TrackerTorrent getTorrent(Torrent torrent)

getTorrents

TrackerTorrent[] getTorrents()

createWebContext

TrackerWebContext createWebContext(int port,
                                   int protocol)
                                   throws TrackerException
Throws:
TrackerException

createWebContext

TrackerWebContext createWebContext(String name,
                                   int port,
                                   int protocol)
                                   throws TrackerException
Create a new web context for the given port and protocol

Parameters:
name - name of the context - will be used as basic realm for auth
port -
protocol -
Returns:
Throws:
TrackerException

createWebContext

TrackerWebContext createWebContext(String name,
                                   int port,
                                   int protocol,
                                   InetAddress bind_ip)
                                   throws TrackerException
Creates a new context bound to the supplied ip

Parameters:
name -
port -
protocol -
bind_ip -
Returns:
Throws:
TrackerException

createWebContext

TrackerWebContext createWebContext(String name,
                                   int port,
                                   int protocol,
                                   InetAddress bind_ip,
                                   Map<String,Object> properties)
                                   throws TrackerException
Throws:
TrackerException

addListener

void addListener(TrackerListener listener)

removeListener

void removeListener(TrackerListener listener)