public class ConfigI extends AbstractAmdServant implements _IConfigOperations
IConfig
Constructor and Description |
---|
ConfigI(ome.api.IConfig service,
BlitzExecutor be) |
Modifier and Type | Method and Description |
---|---|
void |
getClientConfigDefaults_async(AMD_IConfig_getClientConfigDefaults __cb,
Ice.Current __current)
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,
Ice.Current __current)
Retrieves configuration values like
getConfigValues
but only those with the prefix omero.client. |
void |
getConfigDefaults_async(AMD_IConfig_getConfigDefaults __cb,
Ice.Current __current)
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,
Ice.Current __current)
Retrieves a configuration value from the backend store.
|
void |
getConfigValues_async(AMD_IConfig_getConfigValues __cb,
java.lang.String keyRegex,
Ice.Current __current)
Retrieves configuration values from the backend store which
match the given regex.
|
void |
getDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb,
Ice.Current __current)
Checks the database for its time using a SELECT statement.
|
void |
getDatabaseUuid_async(AMD_IConfig_getDatabaseUuid __cb,
Ice.Current __current)
Provides the UUID for this OMERO (database) instance.
|
void |
getServerTime_async(AMD_IConfig_getServerTime __cb,
Ice.Current __current)
Checks the current server for its time.
|
void |
getVersion_async(AMD_IConfig_getVersion __cb,
Ice.Current __current)
Provides the release version.
|
void |
setConfigValue_async(AMD_IConfig_setConfigValue __cb,
java.lang.String key,
java.lang.String value,
Ice.Current __current)
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,
Ice.Current __current)
Calls
setConfigValue if and only if the
configuration property is currently equal to the test
argument. |
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
public ConfigI(ome.api.IConfig service, BlitzExecutor be)
public void getConfigValue_async(AMD_IConfig_getConfigValue __cb, java.lang.String key, Ice.Current __current) throws ServerError
_IConfigOperations
SecurityViolation
to be thrown.getConfigValue_async
in interface _IConfigOperations
__cb
- The callback object for the operation.key
- The non-null name of the desired configuration
value__current
- The Current object for the invocation.ServerError
public void getConfigValues_async(AMD_IConfig_getConfigValues __cb, java.lang.String keyRegex, Ice.Current __current) throws ServerError
_IConfigOperations
getConfigValues_async
in interface _IConfigOperations
__cb
- The callback object for the operation.keyRegex
- The non-null regex of the desired
configuration values__current
- The Current object for the invocation.ServerError
public void getConfigDefaults_async(AMD_IConfig_getConfigDefaults __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getConfigDefaults_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getClientConfigValues_async(AMD_IConfig_getClientConfigValues __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getConfigValues
but only those with the prefix omero.client.getClientConfigValues_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getClientConfigDefaults_async(AMD_IConfig_getClientConfigDefaults __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getClientConfigDefaults_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getDatabaseTime_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getDatabaseUuid_async(AMD_IConfig_getDatabaseUuid __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getDatabaseUuid_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getServerTime_async(AMD_IConfig_getServerTime __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getServerTime_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getVersion_async(AMD_IConfig_getVersion __cb, Ice.Current __current) throws ServerError
_IConfigOperations
getVersion
getVersion_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void setConfigValue_async(AMD_IConfig_setConfigValue __cb, java.lang.String key, java.lang.String value, Ice.Current __current) throws ServerError
_IConfigOperations
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.setConfigValue_async
in interface _IConfigOperations
__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.__current
- The Current object for the invocation.ServerError
public void setConfigValueIfEquals_async(AMD_IConfig_setConfigValueIfEquals __cb, java.lang.String key, java.lang.String value, java.lang.String test, Ice.Current __current) throws ServerError
_IConfigOperations
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.setConfigValueIfEquals_async
in interface _IConfigOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError