Class RPTracker
java.lang.Object
com.biglybt.pifimpl.remote.RPObject
com.biglybt.pifimpl.remote.tracker.RPTracker
- All Implemented Interfaces:
Tracker
,TrackerWebContext
,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class com.biglybt.pifimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
Fields inherited from interface com.biglybt.pif.tracker.Tracker
PR_HTTP, PR_HTTPS, PR_NON_BLOCKING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_setDelegate
(Object _delegate) void
void
addListener
(TrackerListener listener) void
addPageGenerator
(TrackerWebPageGenerator generator) static RPTracker
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) void
destroy()
getName()
URL[]
getURLs()
returns the context URLS (can be two for the tracker as http + https)void
void
removeListener
(TrackerListener listener) void
removePageGenerator
(TrackerWebPageGenerator generator) void
setEnableKeepAlive
(boolean enable) Methods inherited from class com.biglybt.pifimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
-
Field Details
-
delegate
-
-
Constructor Details
-
RPTracker
-
-
Method Details
-
create
-
_setDelegate
- Overrides:
_setDelegate
in classRPObject
-
_setLocal
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
_process
-
host
- Specified by:
host
in interfaceTracker
- Throws:
TrackerException
-
host
public TrackerTorrent host(Torrent torrent, boolean persistent, boolean passive) throws TrackerException - Specified by:
host
in interfaceTracker
- Throws:
TrackerException
-
publish
- Specified by:
publish
in interfaceTracker
- Throws:
TrackerException
-
getTorrents
- Specified by:
getTorrents
in interfaceTracker
-
getTorrent
- Specified by:
getTorrent
in interfaceTracker
-
createWebContext
- Specified by:
createWebContext
in interfaceTracker
- Returns:
- Throws:
TrackerException
-
createWebContext
public TrackerWebContext createWebContext(String name, int port, int protocol) throws TrackerException Description copied from interface:Tracker
Create a new web context for the given port and protocol- Specified by:
createWebContext
in interfaceTracker
- Parameters:
name
- name of the context - will be used as basic realm for auth- Returns:
- Throws:
TrackerException
-
createWebContext
public TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip) throws TrackerException Description copied from interface:Tracker
Creates a new context bound to the supplied ip- Specified by:
createWebContext
in interfaceTracker
- Returns:
- Throws:
TrackerException
-
createWebContext
public TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip, Map<String, Object> properties) throws TrackerException- Specified by:
createWebContext
in interfaceTracker
- Throws:
TrackerException
-
addListener
- Specified by:
addListener
in interfaceTracker
-
removeListener
- Specified by:
removeListener
in interfaceTracker
-
getName
- Specified by:
getName
in interfaceTrackerWebContext
-
setEnableKeepAlive
public void setEnableKeepAlive(boolean enable) - Specified by:
setEnableKeepAlive
in interfaceTrackerWebContext
-
getURLs
Description copied from interface:TrackerWebContext
returns the context URLS (can be two for the tracker as http + https)- Specified by:
getURLs
in interfaceTrackerWebContext
- Returns:
-
getBindIP
- Specified by:
getBindIP
in interfaceTrackerWebContext
-
addPageGenerator
- Specified by:
addPageGenerator
in interfaceTrackerWebContext
-
removePageGenerator
- Specified by:
removePageGenerator
in interfaceTrackerWebContext
-
getPageGenerators
- Specified by:
getPageGenerators
in interfaceTrackerWebContext
-
addAuthenticationListener
- Specified by:
addAuthenticationListener
in interfaceTrackerWebContext
-
removeAuthenticationListener
- Specified by:
removeAuthenticationListener
in interfaceTrackerWebContext
-
destroy
public void destroy()- Specified by:
destroy
in interfaceTrackerWebContext
-