Package com.biglybt.update
Class CorePatchChecker
java.lang.Object
com.biglybt.update.CorePatchChecker
- All Implemented Interfaces:
Plugin
,UpdatableComponent
,UpdateCheckInstanceListener
public class CorePatchChecker
extends Object
implements Plugin, UpdatableComponent, UpdateCheckInstanceListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final LogIDs
private Map
<UpdateCheckInstance, Update> protected PluginInterface
static final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelled
(UpdateCheckInstance instance) void
checkForUpdate
(UpdateChecker checker) void
complete
(UpdateCheckInstance instance) int
estimated maximum time to check whether an update is required or not in SECONDSgetName()
Name of the updatable componentvoid
initialize
(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientprotected void
patch
(UpdateCheckInstance instance, Update updater_update, PluginInterface updater_plugin) static void
patchBiglyBT
(UpdateCheckInstance instance, InputStream pis, String resource_tag, LoggerChannel log) 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 Details
-
LOGID
-
TESTING
public static final boolean TESTING- See Also:
-
plugin_interface
-
my_updates
-
-
Constructor Details
-
CorePatchChecker
public CorePatchChecker()
-
-
Method Details
-
initialize
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- Throws:
PluginException
-
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
- Specified by:
checkForUpdate
in interfaceUpdatableComponent
-
cancelled
- Specified by:
cancelled
in interfaceUpdateCheckInstanceListener
-
complete
- Specified by:
complete
in interfaceUpdateCheckInstanceListener
-
patch
protected void patch(UpdateCheckInstance instance, Update updater_update, PluginInterface updater_plugin) -
patchBiglyBT
public static void patchBiglyBT(UpdateCheckInstance instance, InputStream pis, String resource_tag, LoggerChannel log) throws Exception - Throws:
Exception
-