public interface _IConfigOperationsNC extends _ServiceInterfaceOperationsNC
Modifier and Type | Method and Description |
---|---|
void |
getClientConfigDefaults_async(AMD_IConfig_getClientConfigDefaults __cb)
Reads the etc/omero.properties file and returns all the
key/value pairs that are found there which match the prefix
omero.client.
|
void |
getClientConfigValues_async(AMD_IConfig_getClientConfigValues __cb)
Retrieves configuration values like
getConfigValues
but only those with the prefix omero.client. |
void |
getConfigDefaults_async(AMD_IConfig_getConfigDefaults __cb)
Reads the etc/omero.properties file and returns all the
key/value pairs that are found there.
|
void |
getConfigValue_async(AMD_IConfig_getConfigValue __cb,
java.lang.String key)
Retrieves a configuration value from the backend store.
|
void |
getConfigValues_async(AMD_IConfig_getConfigValues __cb,
java.lang.String keyRegex)
Retrieves configuration values from the backend store which
match the given regex.
|
void |
getDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb)
Checks the database for its time using a SELECT statement.
|
void |
getDatabaseUuid_async(AMD_IConfig_getDatabaseUuid __cb)
Provides the UUID for this OMERO (database) instance.
|
void |
getServerTime_async(AMD_IConfig_getServerTime __cb)
Checks the current server for its time.
|
void |
getVersion_async(AMD_IConfig_getVersion __cb)
Provides the release version.
|
void |
setConfigValue_async(AMD_IConfig_setConfigValue __cb,
java.lang.String key,
java.lang.String value)
Sets a configuration value in the backend store.
|
void |
setConfigValueIfEquals_async(AMD_IConfig_setConfigValueIfEquals __cb,
java.lang.String key,
java.lang.String value,
java.lang.String test)
Calls
setConfigValue if and only if the
configuration property is currently equal to the test
argument. |
void getVersion_async(AMD_IConfig_getVersion __cb) throws ServerError
getVersion
__cb
- The callback object for the operation.ServerError
void getConfigValue_async(AMD_IConfig_getConfigValue __cb, java.lang.String key) throws ServerError
SecurityViolation
to be thrown.__cb
- The callback object for the operation.key
- The non-null name of the desired configuration
valueApiUsageException
- if the key is null or invalid.SecurityViolation
- if the value for the key is not
readable.ServerError
void getConfigValues_async(AMD_IConfig_getConfigValues __cb, java.lang.String keyRegex) throws ServerError
__cb
- The callback object for the operation.keyRegex
- The non-null regex of the desired
configuration valuesServerError
void getConfigDefaults_async(AMD_IConfig_getConfigDefaults __cb) throws ServerError
__cb
- The callback object for the operation.ServerError
void getClientConfigValues_async(AMD_IConfig_getClientConfigValues __cb) throws ServerError
getConfigValues
but only those with the prefix omero.client.__cb
- The callback object for the operation.ServerError
void getClientConfigDefaults_async(AMD_IConfig_getClientConfigDefaults __cb) throws ServerError
__cb
- The callback object for the operation.ServerError
void setConfigValue_async(AMD_IConfig_setConfigValue __cb, java.lang.String key, java.lang.String value) throws ServerError
SecurityViolation
to be thrown. If the value is
null or empty, then the configuration will be removed in
all writable configuration sources. If the configuration is
set in a non-modifiable source (e.g. in a property file on
the classpath), then a subsequent call to
getConfigValue
will return that value.__cb
- The callback object for the operation.key
- The non-null name of the desired configuration
valuevalue
- The string value to assign to the given key.ApiUsageException
- if the key is null or invalid.SecurityViolation
- if the value is not writable.ServerError
void setConfigValueIfEquals_async(AMD_IConfig_setConfigValueIfEquals __cb, java.lang.String key, java.lang.String value, java.lang.String test) throws ServerError
setConfigValue
if and only if the
configuration property is currently equal to the test
argument. If the test is null or empty, then the
configuration property will be set only if missing.__cb
- The callback object for the operation.key
- ApiUsageException
SecurityViolation
ServerError
void getDatabaseUuid_async(AMD_IConfig_getDatabaseUuid __cb) throws ServerError
__cb
- The callback object for the operation.ServerError
void getDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb) throws ServerError
__cb
- The callback object for the operation.InternalException
- though any call can throw an
InternalException it is more likely that this can
occur while contacting the DB. An exception here
most likely means (A) a temporary issue with the DB
or (B) a SQL dialect issue which must be corrected
by the Omero team.ServerError
void getServerTime_async(AMD_IConfig_getServerTime __cb) throws ServerError
__cb
- The callback object for the operation.ServerError