Interface Tracker
- All Superinterfaces:
TrackerWebContext
- All Known Implementing Classes:
RPTracker, TrackerImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TrackerListener listener) createWebContext(int port, int protocol) createWebContext(String name, int port, int protocol) Create a new web context for the given port and protocolcreateWebContext(String name, int port, int protocol, InetAddress bind_ip) Creates a new context bound to the supplied ipcreateWebContext(String name, int port, int protocol, InetAddress bind_ip, Map<String, Object> properties) getTorrent(Torrent torrent) voidremoveListener(TrackerListener listener) Methods inherited from interface TrackerWebContext
addAuthenticationListener, addPageGenerator, destroy, getBindIP, getName, getPageGenerators, getProperties, getURLs, removeAuthenticationListener, removePageGenerator, setEnableKeepAlive
-
Field Details
-
PR_HTTP
static final int PR_HTTP- See Also:
-
PR_HTTPS
static final int PR_HTTPS- See Also:
-
PR_NON_BLOCKING
- See Also:
-
PR_REVERSE_PROXY
- See Also:
-
-
Method Details
-
host
- Throws:
TrackerException
-
host
- Throws:
TrackerException
-
publish
- Throws:
TrackerException
-
getTorrent
-
getTorrents
TrackerTorrent[] getTorrents() -
createWebContext
- Parameters:
port-protocol-- Returns:
- Throws:
TrackerException
-
createWebContext
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(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
-
removeListener
-