Package com.biglybt.platform.win32
Class PlatformManagerUpdateChecker
- java.lang.Object
-
- com.biglybt.platform.win32.PlatformManagerUpdateChecker
-
- All Implemented Interfaces:
Plugin
,UpdatableComponent
public class PlatformManagerUpdateChecker extends java.lang.Object implements Plugin, UpdatableComponent
-
-
Field Summary
Fields Modifier and Type Field Description private static LogIDs
LOGID
protected PluginInterface
plugin_interface
static int
RD_SIZE_RETRIES
static int
RD_SIZE_TIMEOUT
static java.lang.String
UPDATE_NAME
-
Constructor Summary
Constructors Constructor Description PlatformManagerUpdateChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForUpdate(UpdateChecker checker)
int
getMaximumCheckTime()
estimated maximum time to check whether an update is required or not in SECONDSjava.lang.String
getName()
Name of the updatable componentvoid
initialize(PluginInterface _plugin_interface)
This method is called when the Plugin is loaded by the clientprotected void
installUpdate(UpdateChecker checker, Update update, ResourceDownloader rd, java.io.InputStream data)
protected java.util.List
splitMultiLine(java.lang.String indent, java.lang.String text)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.pif.Plugin
getInitialProperties
-
-
-
-
Field Detail
-
LOGID
private static final LogIDs LOGID
-
UPDATE_NAME
public static final java.lang.String UPDATE_NAME
- See Also:
- Constant Field Values
-
RD_SIZE_RETRIES
public static final int RD_SIZE_RETRIES
- See Also:
- Constant Field Values
-
RD_SIZE_TIMEOUT
public static final int RD_SIZE_TIMEOUT
- See Also:
- Constant Field Values
-
plugin_interface
protected PluginInterface plugin_interface
-
-
Method Detail
-
initialize
public void initialize(PluginInterface _plugin_interface)
Description copied from interface:Plugin
This method is called when the Plugin is loaded by the client- Specified by:
initialize
in interfacePlugin
- Parameters:
_plugin_interface
- the interface that the plugin must use to communicate with the client
-
getName
public java.lang.String getName()
Description copied from interface:UpdatableComponent
Name of the updatable component- Specified by:
getName
in interfaceUpdatableComponent
- Returns:
-
getMaximumCheckTime
public int getMaximumCheckTime()
Description copied from interface:UpdatableComponent
estimated maximum time to check whether an update is required or not in SECONDS- Specified by:
getMaximumCheckTime
in interfaceUpdatableComponent
- Returns:
-
checkForUpdate
public void checkForUpdate(UpdateChecker checker)
- Specified by:
checkForUpdate
in interfaceUpdatableComponent
-
installUpdate
protected void installUpdate(UpdateChecker checker, Update update, ResourceDownloader rd, java.io.InputStream data)
-
splitMultiLine
protected java.util.List splitMultiLine(java.lang.String indent, java.lang.String text)
-
-