org.gudy.azureus2.update
Class CorePatchChecker

java.lang.Object
  extended by org.gudy.azureus2.update.CorePatchChecker
All Implemented Interfaces:
Plugin, UpdatableComponent, UpdateCheckInstanceListener

public class CorePatchChecker
extends java.lang.Object
implements Plugin, UpdatableComponent, UpdateCheckInstanceListener


Field Summary
protected  PluginInterface plugin_interface
           
static boolean TESTING
           
 
Constructor Summary
CorePatchChecker()
           
 
Method Summary
 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 SECONDS
 java.lang.String getName()
          Name of the updatable component
 void initialize(PluginInterface _plugin_interface)
          This method is called when the Plugin is loaded by Azureus
protected  void patch(UpdateCheckInstance instance, Update updater_update, PluginInterface updater_plugin)
           
static void patchAzureus2(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
 

Field Detail

TESTING

public static final boolean TESTING
See Also:
Constant Field Values

plugin_interface

protected PluginInterface plugin_interface
Constructor Detail

CorePatchChecker

public CorePatchChecker()
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 Azureus

Specified by:
initialize in interface Plugin
Parameters:
_plugin_interface - the interface that the plugin must use to communicate with Azureus
Throws:
PluginException

getName

public java.lang.String getName()
Description copied from interface: UpdatableComponent
Name of the updatable component

Specified by:
getName in interface UpdatableComponent
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 interface UpdatableComponent
Returns:

checkForUpdate

public void checkForUpdate(UpdateChecker checker)
Specified by:
checkForUpdate in interface UpdatableComponent

cancelled

public void cancelled(UpdateCheckInstance instance)
Specified by:
cancelled in interface UpdateCheckInstanceListener

complete

public void complete(UpdateCheckInstance instance)
Specified by:
complete in interface UpdateCheckInstanceListener

patch

protected void patch(UpdateCheckInstance instance,
                     Update updater_update,
                     PluginInterface updater_plugin)

patchAzureus2

public static void patchAzureus2(UpdateCheckInstance instance,
                                 java.io.InputStream pis,
                                 java.lang.String resource_tag,
                                 LoggerChannel log)
                          throws java.lang.Exception
Throws:
java.lang.Exception