|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.system.UpgradeCheck
public class UpgradeCheck
Contacts a given URL which should be an OME server which will return either an empty String or a URL which points to a needed upgrade.
Field Summary | |
---|---|
static int |
DEFAULT_TIMEOUT
Default timeout is 10 seconds. |
Constructor Summary | |
---|---|
UpgradeCheck(String url,
String version,
String agent)
Calls UpgradeCheck(String, String, String, int)
using DEFAULT_TIMEOUT |
|
UpgradeCheck(String url,
String version,
String agent,
int timeout)
Main constructor. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_TIMEOUT
Constructor Detail |
---|
public UpgradeCheck(String url, String version, String agent)
UpgradeCheck(String, String, String, int)
using 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 aMethod Detail |
---|
public boolean isUpgradeNeeded()
public String getUpgradeUrl()
public boolean isExceptionThrown()
public Exception getExceptionThrown()
public void run()
url
has been set to null or the empty string, then no
upgrade check will be performed (silently). If however the string is an
invalid URL, a warning will be printed.
This method should never throw an exception.
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.