org.gudy.azureus2.plugins.update
Interface Update

All Known Implementing Classes:
UpdateImpl

public interface Update


Field Summary
static int RESTART_REQUIRED_MAYBE
           
static int RESTART_REQUIRED_NO
           
static int RESTART_REQUIRED_YES
           
 
Method Summary
 void addListener(UpdateListener l)
           
 void cancel()
          cancel this update
 void complete(boolean success)
          mark the update as complete and inform any listeners
 UpdateCheckInstance getCheckInstance()
           
 java.lang.Object getDecision(int decision_type, java.lang.String decision_name, java.lang.String decision_description, java.lang.Object decision_data)
           
 java.lang.String getDesciptionURL()
           
 java.lang.String[] getDescription()
           
 ResourceDownloader[] getDownloaders()
           
 java.lang.String getName()
           
 java.lang.String getNewVersion()
           
 java.lang.String getOldVersion()
           
 java.lang.String getRelativeURLBase()
           
 int getRestartRequired()
           
 java.lang.Object getUserObject()
           
 boolean isCancelled()
           
 boolean isComplete()
           
 boolean isMandatory()
           
 void removeListener(UpdateListener l)
           
 void setDescriptionURL(java.lang.String url)
           
 void setRelativeURLBase(java.lang.String base)
           
 void setRestartRequired(int restart_required)
           
 void setUserObject(java.lang.Object obj)
           
 java.io.InputStream verifyData(java.io.InputStream is, boolean force)
           
 boolean wasSuccessful()
           
 

Field Detail

RESTART_REQUIRED_NO

static final int RESTART_REQUIRED_NO
See Also:
Constant Field Values

RESTART_REQUIRED_YES

static final int RESTART_REQUIRED_YES
See Also:
Constant Field Values

RESTART_REQUIRED_MAYBE

static final int RESTART_REQUIRED_MAYBE
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()

getDescription

java.lang.String[] getDescription()

getRelativeURLBase

java.lang.String getRelativeURLBase()

setRelativeURLBase

void setRelativeURLBase(java.lang.String base)

setDescriptionURL

void setDescriptionURL(java.lang.String url)
Parameters:
url - URL to load instead of showing the description text)
Since:
3.0.1.7

getDesciptionURL

java.lang.String getDesciptionURL()
Returns:
null if no description url
Since:
3.0.1.7

getOldVersion

java.lang.String getOldVersion()

getNewVersion

java.lang.String getNewVersion()

getDownloaders

ResourceDownloader[] getDownloaders()

isMandatory

boolean isMandatory()

setRestartRequired

void setRestartRequired(int restart_required)

getRestartRequired

int getRestartRequired()

setUserObject

void setUserObject(java.lang.Object obj)

getUserObject

java.lang.Object getUserObject()

complete

void complete(boolean success)
mark the update as complete and inform any listeners


cancel

void cancel()
cancel this update


isCancelled

boolean isCancelled()

isComplete

boolean isComplete()

wasSuccessful

boolean wasSuccessful()

getCheckInstance

UpdateCheckInstance getCheckInstance()

getDecision

java.lang.Object getDecision(int decision_type,
                             java.lang.String decision_name,
                             java.lang.String decision_description,
                             java.lang.Object decision_data)

verifyData

java.io.InputStream verifyData(java.io.InputStream is,
                               boolean force)
                               throws UpdateException
Throws:
UpdateException

addListener

void addListener(UpdateListener l)

removeListener

void removeListener(UpdateListener l)