Class RPTracker
java.lang.Object
com.biglybt.pifimpl.remote.RPObject
com.biglybt.pifimpl.remote.tracker.RPTracker
- All Implemented Interfaces:
Tracker, TrackerWebContext, Serializable
-
Field Summary
FieldsFields inherited from class RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverseFields inherited from interface Tracker
PR_HTTP, PR_HTTPS, PR_NON_BLOCKING, PR_REVERSE_PROXY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_setDelegate(Object _delegate) voidvoidaddListener(TrackerListener listener) voidaddPageGenerator(TrackerWebPageGenerator generator) static RPTrackercreateWebContext(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) voiddestroy()getName()URL[]getURLs()returns the context URLS (can be two for the tracker as http + https)voidvoidremoveListener(TrackerListener listener) voidremovePageGenerator(TrackerWebPageGenerator generator) voidsetEnableKeepAlive(boolean enable) Methods inherited from class RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
-
Field Details
-
delegate
-
-
Constructor Details
-
RPTracker
-
-
Method Details
-
create
-
_setDelegate
- Overrides:
_setDelegatein classRPObject
-
_setLocal
- Overrides:
_setLocalin classRPObject- Throws:
RPException
-
_process
-
host
- Specified by:
hostin interfaceTracker- Throws:
TrackerException
-
host
public TrackerTorrent host(Torrent torrent, boolean persistent, boolean passive) throws TrackerException - Specified by:
hostin interfaceTracker- Throws:
TrackerException
-
publish
- Specified by:
publishin interfaceTracker- Throws:
TrackerException
-
getTorrents
- Specified by:
getTorrentsin interfaceTracker
-
getTorrent
- Specified by:
getTorrentin interfaceTracker
-
createWebContext
- Specified by:
createWebContextin interfaceTracker- Parameters:
port-protocol-- Returns:
- Throws:
TrackerException
-
createWebContext
public TrackerWebContext createWebContext(String name, int port, int protocol) throws TrackerException Description copied from interface:TrackerCreate a new web context for the given port and protocol- Specified by:
createWebContextin interfaceTracker- Parameters:
name- name of the context - will be used as basic realm for authport-protocol-- Returns:
- Throws:
TrackerException
-
createWebContext
public TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip) throws TrackerException Description copied from interface:TrackerCreates a new context bound to the supplied ip- Specified by:
createWebContextin interfaceTracker- Parameters:
name-port-protocol-bind_ip-- Returns:
- Throws:
TrackerException
-
createWebContext
public TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip, Map<String, Object> properties) throws TrackerException- Specified by:
createWebContextin interfaceTracker- Throws:
TrackerException
-
addListener
- Specified by:
addListenerin interfaceTracker
-
removeListener
- Specified by:
removeListenerin interfaceTracker
-
getName
- Specified by:
getNamein interfaceTrackerWebContext
-
setEnableKeepAlive
public void setEnableKeepAlive(boolean enable) - Specified by:
setEnableKeepAlivein interfaceTrackerWebContext
-
getURLs
Description copied from interface:TrackerWebContextreturns the context URLS (can be two for the tracker as http + https)- Specified by:
getURLsin interfaceTrackerWebContext- Returns:
-
getBindIP
- Specified by:
getBindIPin interfaceTrackerWebContext
-
getProperties
- Specified by:
getPropertiesin interfaceTrackerWebContext
-
addPageGenerator
- Specified by:
addPageGeneratorin interfaceTrackerWebContext
-
removePageGenerator
- Specified by:
removePageGeneratorin interfaceTrackerWebContext
-
getPageGenerators
- Specified by:
getPageGeneratorsin interfaceTrackerWebContext
-
addAuthenticationListener
- Specified by:
addAuthenticationListenerin interfaceTrackerWebContext
-
removeAuthenticationListener
- Specified by:
removeAuthenticationListenerin interfaceTrackerWebContext
-
destroy
public void destroy()- Specified by:
destroyin interfaceTrackerWebContext
-