Changeset f73101b


Ignore:
Timestamp:
Jun 9, 2015 1:09:23 AM (5 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
1a40e574
Parents:
ff2ea9a
Message:

Added checkAvailable(), update() and getStatus() to UpdateManager? interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/update/UpdateManager.java

    rff2ea9a rf73101b  
    122122     */
    123123    public boolean notifyComplete(UpdateTask task, String actualVersion, File file);
     124   
     125    /**
     126     *  Is an update available?
     127     *  Blocking.
     128     *  An available update may still have a constraint or lack sources.
     129     *  @param type the UpdateType of this request
     130     *  @param maxWait max time to block
     131     *  @return new version or null if nothing newer is available
     132     *  @since 0.9.21
     133     */
     134    public String checkAvailable(UpdateType type, long maxWait);
     135   
     136    /**
     137     *  Is an update available?
     138     *  Blocking.
     139     *  An available update may still have a constraint or lack sources.
     140     *  @param type the UpdateType of this request
     141     *  @param maxWait max time to block
     142     *  @param id id of this request
     143     *  @return new version or null if nothing newer is available
     144     *  @since 0.9.21
     145     */
     146    public String checkAvailable(UpdateType type, String id, long maxWait);
     147   
     148    /**
     149     *  Non-blocking. Does not check.
     150     *  Fails if check or update already in progress.
     151     *  If returns true, then call isUpdateInProgress() in a loop
     152     *  @param type the UpdateType of this request   
     153     *  @param maxTime not honored by all Updaters
     154     *  @return true if task started
     155     *  @since 0.9.21
     156     */
     157    public boolean update(UpdateType type);
     158   
     159    /**
     160     *  Non-blocking. Does not check.
     161     *  Fails if check or update already in progress.
     162     *  If returns true, then call isUpdateInProgress() in a loop
     163     *  @param type the UpdateType of this request   
     164     *  @param id id of this request
     165     *  @return true if task started
     166     *  @since 0.9.21
     167     */
     168    public boolean update(UpdateType type, String id);
     169   
     170    /**
     171     *  Non-blocking. Does not check.
     172     *  Fails if check or update already in progress.
     173     *  If returns true, then call isUpdateInProgress() in a loop
     174     *  @param type the UpdateType of this request   
     175     *  @param maxTime not honored by all Updaters
     176     *  @return true if task started
     177     *  @since 0.9.21
     178     */
     179    public boolean update(UpdateType type, long maxTime);
     180   
     181    /**
     182     *  Non-blocking. Does not check.
     183     *  Fails if check or update already in progress.
     184     *  If returns true, then call isUpdateInProgress() in a loop
     185     *  @param type the UpdateType of this request   
     186     *  @param maxTime not honored by all Updaters
     187     *  @param id id of this request
     188     *  @return true if task started
     189     *  @since 0.9.21
     190     */
     191    public boolean update(UpdateType type, String id, long maxTime);
     192   
     193    /**
     194     *  The status on any update current or last finished.
     195     *  @return status or ""
     196     */
     197    public String getStatus();
    124198
    125199    /**
Note: See TracChangeset for help on using the changeset viewer.