Package com.biglybt.update
Class CorePatchChecker
- java.lang.Object
-
- com.biglybt.update.CorePatchChecker
-
- All Implemented Interfaces:
Plugin
,UpdatableComponent
,UpdateCheckInstanceListener
public class CorePatchChecker extends java.lang.Object implements Plugin, UpdatableComponent, UpdateCheckInstanceListener
-
-
Field Summary
Fields Modifier and Type Field Description private static LogIDs
LOGID
private java.util.Map<UpdateCheckInstance,Update>
my_updates
protected PluginInterface
plugin_interface
static boolean
TESTING
-
Constructor Summary
Constructors Constructor Description CorePatchChecker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelled(UpdateCheckInstance instance)
void
checkForUpdate(UpdateChecker checker)
void
complete(UpdateCheckInstance instance)
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
patch(UpdateCheckInstance instance, Update updater_update, PluginInterface updater_plugin)
static void
patchBiglyBT(UpdateCheckInstance instance, java.io.InputStream pis, java.lang.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 Detail
-
LOGID
private static final LogIDs LOGID
-
TESTING
public static final boolean TESTING
- See Also:
- Constant Field Values
-
plugin_interface
protected PluginInterface plugin_interface
-
my_updates
private java.util.Map<UpdateCheckInstance,Update> my_updates
-
-
Method Detail
-
initialize
public void initialize(PluginInterface _plugin_interface) throws PluginException
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
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
-
cancelled
public void cancelled(UpdateCheckInstance instance)
- Specified by:
cancelled
in interfaceUpdateCheckInstanceListener
-
complete
public void complete(UpdateCheckInstance instance)
- Specified by:
complete
in interfaceUpdateCheckInstanceListener
-
patch
protected void patch(UpdateCheckInstance instance, Update updater_update, PluginInterface updater_plugin)
-
patchBiglyBT
public static void patchBiglyBT(UpdateCheckInstance instance, java.io.InputStream pis, java.lang.String resource_tag, LoggerChannel log) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-