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 LogIDsprivate Map<UpdateCheckInstance, Update> protected PluginInterfacestatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelled(UpdateCheckInstance instance) voidcheckForUpdate(UpdateChecker checker) voidcomplete(UpdateCheckInstance instance) intestimated maximum time to check whether an update is required or not in SECONDSgetName()Name of the updatable componentvoidinitialize(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientprotected voidpatch(UpdateCheckInstance instance, Update updater_update, PluginInterface updater_plugin) static voidpatchBiglyBT(UpdateCheckInstance instance, InputStream pis, String resource_tag, LoggerChannel log) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:PluginThis method is called when the Plugin is loaded by the client- Specified by:
initializein interfacePlugin- Parameters:
_plugin_interface- the interface that the plugin must use to communicate with the client- Throws:
PluginException
-
getName
Description copied from interface:UpdatableComponentName of the updatable component- Specified by:
getNamein interfaceUpdatableComponent- Returns:
-
getMaximumCheckTime
public int getMaximumCheckTime()Description copied from interface:UpdatableComponentestimated maximum time to check whether an update is required or not in SECONDS- Specified by:
getMaximumCheckTimein interfaceUpdatableComponent- Returns:
-
checkForUpdate
- Specified by:
checkForUpdatein interfaceUpdatableComponent
-
cancelled
- Specified by:
cancelledin interfaceUpdateCheckInstanceListener
-
complete
- Specified by:
completein 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
-