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 String
private static AEMonitor
protected List
private static final LogIDs
private static String
protected List
protected boolean
protected long
protected Map
protected ResourceDownloaderFactory
private static final int
private static SFPluginDetailsLoaderImpl
private static String
private static final String
protected AEMonitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
void
boolean
completed
(ResourceDownloader downloader, InputStream data) void
failed
(ResourceDownloader downloader, ResourceDownloaderException e) static String
getPluginDetails
(String name) String[]
protected String
static SFPluginDetailsLoader
protected void
informListeners
(String log) protected void
loadPluginDetails
(SFPluginDetailsImpl details) protected void
protected boolean
processPluginStream
(SFPluginDetailsImpl details, InputStream is) void
void
reportActivity
(ResourceDownloader downloader, String activity) void
reportAmountComplete
(ResourceDownloader downloader, long amount) void
reportPercentComplete
(ResourceDownloader downloader, int percentage) void
reset()
-
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:
getPluginIDs
in interfaceSFPluginDetailsLoader
- Throws:
SFPluginDetailsException
-
getPluginDetails
- Specified by:
getPluginDetails
in interfaceSFPluginDetailsLoader
- Throws:
SFPluginDetailsException
-
getPluginDetails
- Specified by:
getPluginDetails
in interfaceSFPluginDetailsLoader
- Throws:
SFPluginDetailsException
-
reportPercentComplete
- Specified by:
reportPercentComplete
in interfaceResourceDownloaderListener
-
reportAmountComplete
- Specified by:
reportAmountComplete
in interfaceResourceDownloaderListener
-
reportActivity
- Specified by:
reportActivity
in interfaceResourceDownloaderListener
-
completed
- Specified by:
completed
in interfaceResourceDownloaderListener
- 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:
failed
in interfaceResourceDownloaderListener
-
informListeners
-
reset
public void reset()- Specified by:
reset
in interfaceSFPluginDetailsLoader
-
addListener
- Specified by:
addListener
in interfaceSFPluginDetailsLoader
-
removeListener
- Specified by:
removeListener
in interfaceSFPluginDetailsLoader
-
getBaseUrlParams
-