Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT
Default timeout is 10 seconds.
|
Constructor and Description |
---|
UpgradeCheck(String url,
String version,
String agent)
|
UpgradeCheck(String url,
String version,
String agent,
int timeout)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getExceptionThrown() |
String |
getUpgradeUrl() |
boolean |
isExceptionThrown() |
boolean |
isUpgradeNeeded() |
void |
run()
If the
url has been set to null or the empty string, then no
upgrade check will be performed (silently). |
public static final int DEFAULT_TIMEOUT
public UpgradeCheck(String url, String version, String agent, int timeout)
url
- Null or empty value disables check.version
- Current version as specified in the omero.properties file
under the "omero.version" property. This can be accessed via
IConfig.getVersion() // 4.0.0
or
IConfig.getConfigValue("omero.version") // [optional-]4.0.0[-optional]
agent
- Name of the agent which is accessing the registry. This will
be appended to "OMERO." in order to adhere to the registry
API.timeout
- How long to wait for a
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.