Class SFPluginDetailsLoaderImpl
java.lang.Object
com.biglybt.pifimpl.update.sf.impl2.SFPluginDetailsLoaderImpl
- All Implemented Interfaces:
ResourceDownloaderListener, SFPluginDetailsLoader
public class SFPluginDetailsLoaderImpl
extends Object
implements SFPluginDetailsLoader, ResourceDownloaderListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static AEMonitorprotected Listprivate static final LogIDsprivate static Stringprotected Listprotected booleanprotected longprotected Mapprotected ResourceDownloaderFactoryprivate static final intprivate static SFPluginDetailsLoaderImplprivate static Stringprivate static final Stringprotected AEMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringvoidbooleancompleted(ResourceDownloader downloader, InputStream data) voidfailed(ResourceDownloader downloader, ResourceDownloaderException e) static StringgetPluginDetails(String name) String[]protected Stringstatic SFPluginDetailsLoaderprotected voidinformListeners(String log) protected voidloadPluginDetails(SFPluginDetailsImpl details) protected voidprotected booleanprocessPluginStream(SFPluginDetailsImpl details, InputStream is) voidvoidreportActivity(ResourceDownloader downloader, String activity) voidreportAmountComplete(ResourceDownloader downloader, long amount) voidreportPercentComplete(ResourceDownloader downloader, int percentage) voidreset()
-
Field Details
-
LOGID
-
site_prefix_default
- See Also:
-
site_prefix
-
base_url_params
-
page_url
-
singleton
-
class_mon
-
RELOAD_MIN_TIME
private static final int RELOAD_MIN_TIME- See Also:
-
plugin_ids_loaded
protected boolean plugin_ids_loaded -
plugin_ids_loaded_at
protected long plugin_ids_loaded_at -
plugin_ids
-
plugin_map
-
listeners
-
rd_factory
-
this_mon
-
-
Constructor Details
-
SFPluginDetailsLoaderImpl
protected SFPluginDetailsLoaderImpl()
-
-
Method Details
-
getSingleton
-
getRelativeURLBase
-
loadPluginList
- Throws:
SFPluginDetailsException
-
addEPIDS
-
loadPluginDetails
- Throws:
SFPluginDetailsException
-
processPluginStream
-
getPluginIDs
- Specified by:
getPluginIDsin interfaceSFPluginDetailsLoader- Throws:
SFPluginDetailsException
-
getPluginDetails
- Specified by:
getPluginDetailsin interfaceSFPluginDetailsLoader- Throws:
SFPluginDetailsException
-
getPluginDetails
- Specified by:
getPluginDetailsin interfaceSFPluginDetailsLoader- Throws:
SFPluginDetailsException
-
reportPercentComplete
- Specified by:
reportPercentCompletein interfaceResourceDownloaderListener
-
reportAmountComplete
- Specified by:
reportAmountCompletein interfaceResourceDownloaderListener
-
reportActivity
- Specified by:
reportActivityin interfaceResourceDownloaderListener
-
completed
- Specified by:
completedin interfaceResourceDownloaderListener- Parameters:
downloader-data-- Returns:
- return true if the completed download is OK. If false is returned then if there are alternative download sources they will be tried. If there are no other sources then the download will be "failed"
-
failed
- Specified by:
failedin interfaceResourceDownloaderListener
-
informListeners
-
reset
public void reset()- Specified by:
resetin interfaceSFPluginDetailsLoader
-
addListener
- Specified by:
addListenerin interfaceSFPluginDetailsLoader
-
removeListener
- Specified by:
removeListenerin interfaceSFPluginDetailsLoader
-
getBaseUrlParams
-