Package com.biglybt.pif.tracker
Interface Tracker
-
- All Superinterfaces:
TrackerWebContext
- All Known Implementing Classes:
RPTracker
,TrackerImpl
public interface Tracker extends TrackerWebContext
-
-
Field Summary
Fields Modifier and Type Field Description static int
PR_HTTP
static int
PR_HTTPS
static java.lang.String
PR_NON_BLOCKING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(TrackerListener listener)
TrackerWebContext
createWebContext(int port, int protocol)
TrackerWebContext
createWebContext(java.lang.String name, int port, int protocol)
Create a new web context for the given port and protocolTrackerWebContext
createWebContext(java.lang.String name, int port, int protocol, java.net.InetAddress bind_ip)
Creates a new context bound to the supplied ipTrackerWebContext
createWebContext(java.lang.String name, int port, int protocol, java.net.InetAddress bind_ip, java.util.Map<java.lang.String,java.lang.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 com.biglybt.pif.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 java.lang.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
- Parameters:
port
-protocol
-- Returns:
- Throws:
TrackerException
-
createWebContext
TrackerWebContext createWebContext(java.lang.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 authport
-protocol
-- Returns:
- Throws:
TrackerException
-
createWebContext
TrackerWebContext createWebContext(java.lang.String name, int port, int protocol, java.net.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(java.lang.String name, int port, int protocol, java.net.InetAddress bind_ip, java.util.Map<java.lang.String,java.lang.Object> properties) throws TrackerException
- Throws:
TrackerException
-
addListener
void addListener(TrackerListener listener)
-
removeListener
void removeListener(TrackerListener listener)
-
-