Package loci.formats
Class UpgradeChecker
java.lang.Object
loci.formats.UpgradeChecker
Class that allows checking for new versions of Bio-Formats, as well as
updating to the latest stable, daily, or trunk version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intNumber of bytes to read from the CI server at a time.static final StringDeprecated.since 9.0.0static final StringDeprecated.since 9.0.0static final StringValue of "bioformats.caller" for Bio-Formats utilities.static final String[]Deprecated.since 9.0.0private static final org.slf4j.Loggerstatic final StringName of the OME tools JAR.static final StringLocation of the OME registry.static final StringRegistry ID identifying usage of Bio-Formats in ImageJ.static final StringRegistry ID identifying usage of Bio-Formats as a library in general.private static final String[]Properties that are sent to the OME registry.static final StringLocation of the JAR artifacts for the stable releases.static final StringName of the ueber tools JAR.static final StringDeprecated.since 9.0.0private static final StringSystem property indicating whether the upgrade check is ever allowed.private static final StringSystem property to set once the upgrade check is performed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if an upgrade check has already been performed in this JVM session.booleanReturn whether or not we are ever allowed to perform an upgrade check.booleanDeprecated.since 9.0.0booleaninstallIndividualJars(String urlDir, String downloadDir) Deprecated.since 9.0.0booleannewVersionAvailable(String caller) Contact the OME registry and return true if a new version is available.booleannewVersionAvailable(String registryID, String caller) Contact the OME registry and return true if a new version is available.voidsetCanDoUpgradeCheck(boolean canDo) Set whether or not we are ever allowed to perform an upgrade check.
-
Field Details
-
REGISTRY_IMAGEJ
Registry ID identifying usage of Bio-Formats in ImageJ.- See Also:
-
REGISTRY_LIBRARY
Registry ID identifying usage of Bio-Formats as a library in general.- See Also:
-
CI_SERVER
Deprecated.since 9.0.0Location of the OME continuous integration server.- See Also:
-
TRUNK_BUILD
Deprecated.since 9.0.0Location of the JAR artifacts for Bio-Formats' trunk build.- See Also:
-
DAILY_BUILD
Deprecated.since 9.0.0Location of the JAR artifacts for Bio-Formats' daily build.- See Also:
-
STABLE_BUILD
Location of the JAR artifacts for the stable releases.- See Also:
-
TOOLS
Name of the ueber tools JAR.- See Also:
-
OME_TOOLS
Name of the OME tools JAR.- See Also:
-
INDIVIDUAL_JARS
Deprecated.since 9.0.0Names of the individual JARs. -
REGISTRY
Location of the OME registry.- See Also:
-
DEFAULT_CALLER
Value of "bioformats.caller" for Bio-Formats utilities.- See Also:
-
REGISTRY_PROPERTIES
Properties that are sent to the OME registry. -
UPGRADE_CHECK_PROPERTY
System property to set once the upgrade check is performed.- See Also:
-
UPGRADE_CHECK_ALLOWED_PROPERTY
System property indicating whether the upgrade check is ever allowed.- See Also:
-
CHUNK_SIZE
private static final int CHUNK_SIZENumber of bytes to read from the CI server at a time.- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
UpgradeChecker
public UpgradeChecker()
-
-
Method Details
-
alreadyChecked
public boolean alreadyChecked()Return true if an upgrade check has already been performed in this JVM session. -
canDoUpgradeCheck
public boolean canDoUpgradeCheck()Return whether or not we are ever allowed to perform an upgrade check. -
setCanDoUpgradeCheck
public void setCanDoUpgradeCheck(boolean canDo) Set whether or not we are ever allowed to perform an upgrade check. -
newVersionAvailable
Contact the OME registry and return true if a new version is available. OMERO.registry will identify this as a generic library usage of Bio-Formats (i.e. not associated with a specific client application).- Parameters:
caller- name of the calling application, e.g. "MATLAB"
-
newVersionAvailable
Contact the OME registry and return true if a new version is available.- Parameters:
registryID- how the application identifies itself to OMERO.registrycaller- name of the calling application, e.g. "MATLAB"- See Also:
-
installIndividualJars
Deprecated.since 9.0.0Download and install all of the individual JAR files into the given directory.- Parameters:
urlDir- the location from which to download the JAR filesdownloadDir- the directory into which to save the JAR files- Returns:
- true if installation was successfull
- See Also:
-
install
Deprecated.since 9.0.0Download and install a JAR file from the given URL.- Parameters:
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 overwritten- Returns:
- true if installation was successful
-