public static class ServiceOperation.Actions extends Object implements ServiceActions
Constructor and Description |
---|
Actions() |
Modifier and Type | Method and Description |
---|---|
ServiceOperation |
build(String serviceId,
Map<String,Object> configs,
boolean keepIfNotPresent)
Creates a handler for persisting changes to a bundle configuration.
|
Map<String,Object> |
read(String serviceId)
Gets the current key:value pairs set in the given configuration file.
|
public ServiceOperation build(String serviceId, Map<String,Object> configs, boolean keepIfNotPresent) throws ConfiguratorException
ServiceActions
build
in interface ServiceActions
serviceId
- the configPid of the bundle configuration to be updatedconfigs
- map of key:value pairs to be written to the configurationkeepIfNotPresent
- if true, any keys in the current config file that are not in the configs
map will be left with their initial values; if false, they will be removed from
the fileConfiguratorException
- if an error occurs creating the operatorpublic Map<String,Object> read(String serviceId) throws ConfiguratorException
ServiceActions
read
in interface ServiceActions
serviceId
- the configId of the bundle configuration file to queryConfiguratorException
- if an error occurs reading stateThis work is licensed under a Creative Commons Attribution 4.0 International License.