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()
           
 Object getDecision(int decision_type, String decision_name, String decision_description, Object decision_data)
           
 String getDesciptionURL()
           
 String[] getDescription()
           
 ResourceDownloader[] getDownloaders()
           
 String getName()
           
 String getNewVersion()
           
 String getOldVersion()
           
 String getRelativeURLBase()
           
 int getRestartRequired()
           
 Object getUserObject()
           
 boolean isCancelled()
           
 boolean isComplete()
           
 boolean isMandatory()
           
 void removeListener(UpdateListener l)
           
 void setDescriptionURL(String url)
           
 void setRelativeURLBase(String base)
           
 void setRestartRequired(int restart_required)
           
 void setUserObject(Object obj)
           
 InputStream verifyData(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

String getName()

getDescription

String[] getDescription()

getRelativeURLBase

String getRelativeURLBase()

setRelativeURLBase

void setRelativeURLBase(String base)

setDescriptionURL

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

getDesciptionURL

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

getOldVersion

String getOldVersion()

getNewVersion

String getNewVersion()

getDownloaders

ResourceDownloader[] getDownloaders()

isMandatory

boolean isMandatory()

setRestartRequired

void setRestartRequired(int restart_required)

getRestartRequired

int getRestartRequired()

setUserObject

void setUserObject(Object obj)

getUserObject

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

Object getDecision(int decision_type,
                   String decision_name,
                   String decision_description,
                   Object decision_data)

verifyData

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

addListener

void addListener(UpdateListener l)

removeListener

void removeListener(UpdateListener l)