com.limegroup.gnutella.update
Class UpdateManager

java.lang.Object
  extended bycom.limegroup.gnutella.update.UpdateManager

public final class UpdateManager
extends java.lang.Object

This class manages checking the servlet for an update and executing the update based on the response. It passes off most of this functionality to auxiliary classes, such as ServletAccessor, RemoteUpdateInfo, ClientLocalUpdateInfo, and the various update classes that implement the Updator interface.


Method Summary
 void cancelUpdate()
          Notifies the Updator object that the update should be cancelled
 void doUpdate()
          Makes the calls to access the servlet and to initiate the update based on the update object that is created.
static UpdateManager instance()
          Instance accessor following the singleton pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static UpdateManager instance()
Instance accessor following the singleton pattern.

Returns:
the UpdateManager instance

doUpdate

public void doUpdate()
Makes the calls to access the servlet and to initiate the update based on the update object that is created.


cancelUpdate

public void cancelUpdate()
Notifies the Updator object that the update should be cancelled