public class TrackerService extends Object implements ITrackerService
Note that this class implements a service. Hence, is not a part of the public API and is a subject to change.
Constructor and Description |
---|
TrackerService(Map<String,TrackerFactory> trackerFactories) |
Modifier and Type | Method and Description |
---|---|
Tracker |
getTracker(AnnounceKey announceKey)
Get a tracker by its announce key
|
Tracker |
getTracker(String trackerUrl)
Get a single tracker by its' URL
|
boolean |
isSupportedProtocol(String trackerUrl)
Check if the protocol specified in the tracker's URL is supported.
|
@Inject public TrackerService(Map<String,TrackerFactory> trackerFactories)
public boolean isSupportedProtocol(String trackerUrl)
ITrackerService
isSupportedProtocol
in interface ITrackerService
trackerUrl
- Tracker URLpublic Tracker getTracker(String trackerUrl)
ITrackerService
getTracker
in interface ITrackerService
public Tracker getTracker(AnnounceKey announceKey)
ITrackerService
getTracker
in interface ITrackerService
Copyright © 2016–2021. All rights reserved.