public class UpgradeChecker
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| private static int | CHUNK_SIZENumber of bytes to read from the CI server at a time. | 
| static java.lang.String | CI_SERVERLocation of the OME continuous integration server. | 
| static java.lang.String | DAILY_BUILDLocation of the JAR artifacts for Bio-Formats' daily build. | 
| static java.lang.String | DEFAULT_CALLERValue of "bioformats.caller" for Bio-Formats utilities. | 
| static java.lang.String[] | INDIVIDUAL_JARSNames of the individual JARs. | 
| private static org.slf4j.Logger | LOGGER | 
| static java.lang.String | OLD_TOOLSName of the previous versions' tools JAR. | 
| static java.lang.String | OME_TOOLSName of the OME tools JAR. | 
| static java.lang.String | REGISTRYLocation of the OME registry. | 
| static java.lang.String | REGISTRY_IMAGEJRegistry ID identifying usage of Bio-Formats in ImageJ. | 
| static java.lang.String | REGISTRY_LIBRARYRegistry ID identifying usage of Bio-Formats as a library in general. | 
| private static java.lang.String[] | REGISTRY_PROPERTIESProperties that are sent to the OME registry. | 
| static java.lang.String | STABLE_BUILDLocation of the JAR artifacts for the stable releases. | 
| static java.lang.String | STABLE_VERSIONVersion number of the latest stable release. | 
| static java.lang.String | TOOLSName of the ueber tools JAR. | 
| static java.lang.String | TRUNK_BUILDLocation of the JAR artifacts for Bio-Formats' trunk build. | 
| private static java.lang.String | UPGRADE_CHECK_ALLOWED_PROPERTYSystem property indicating whether the upgrade check is ever allowed. | 
| private static java.lang.String | UPGRADE_CHECK_PROPERTYSystem property to set once the upgrade check is performed. | 
| Constructor and Description | 
|---|
| UpgradeChecker() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | alreadyChecked()Return true if an upgrade check has already been performed in this
 JVM session. | 
| boolean | canDoUpgradeCheck()Return whether or not we are ever allowed to perform an upgrade check. | 
| boolean | install(java.lang.String urlPath,
       java.lang.String downloadPath)Download and install a JAR file from the given URL. | 
| boolean | installIndividualJars(java.lang.String urlDir,
                     java.lang.String downloadDir)Download and install all of the individual JAR files into the given
 directory. | 
| boolean | newVersionAvailable(java.lang.String caller)Contact the OME registry and return true if a new version is available. | 
| boolean | newVersionAvailable(java.lang.String registryID,
                   java.lang.String caller)Contact the OME registry and return true if a new version is available. | 
| void | setCanDoUpgradeCheck(boolean canDo)Set whether or not we are ever allowed to perform an upgrade check. | 
public static final java.lang.String REGISTRY_IMAGEJ
public static final java.lang.String REGISTRY_LIBRARY
public static final java.lang.String STABLE_VERSION
public static final java.lang.String CI_SERVER
public static final java.lang.String TRUNK_BUILD
public static final java.lang.String DAILY_BUILD
public static final java.lang.String STABLE_BUILD
public static final java.lang.String TOOLS
public static final java.lang.String OLD_TOOLS
public static final java.lang.String OME_TOOLS
public static final java.lang.String[] INDIVIDUAL_JARS
public static final java.lang.String REGISTRY
public static final java.lang.String DEFAULT_CALLER
private static final java.lang.String[] REGISTRY_PROPERTIES
private static final java.lang.String UPGRADE_CHECK_PROPERTY
private static final java.lang.String UPGRADE_CHECK_ALLOWED_PROPERTY
private static final int CHUNK_SIZE
private static final org.slf4j.Logger LOGGER
public boolean alreadyChecked()
public boolean canDoUpgradeCheck()
public void setCanDoUpgradeCheck(boolean canDo)
public boolean newVersionAvailable(java.lang.String caller)
caller - name of the calling application, e.g. "MATLAB"public boolean newVersionAvailable(java.lang.String registryID,
                                   java.lang.String caller)
registryID - how the application identifies itself to OMERO.registrycaller - name of the calling application, e.g. "MATLAB"REGISTRY_IMAGEJ, 
REGISTRY_LIBRARYpublic boolean installIndividualJars(java.lang.String urlDir,
                                     java.lang.String downloadDir)
urlDir - the location from which to download the JAR filesdownloadDir - the directory into which to save the JAR filesinstall(String, String)public boolean install(java.lang.String urlPath,
                       java.lang.String downloadPath)
urlPath - the location from which to download the JARdownloadPath - the location in which to write the JAR;
                     if this location already exists, it will be overwrittenCopyright © 2020 Open Microscopy Environment