public static class ManagedServiceOperation.Actions extends Object implements ManagedServiceActions
| Constructor and Description |
|---|
Actions() |
| Modifier and Type | Method and Description |
|---|---|
ManagedServiceOperation |
create(String factoryPid,
Map<String,Object> configs)
Creates a handler that will create a managed service as part of a transaction.
|
ManagedServiceOperation |
delete(String pid)
Creates a handler that will delete a managed service as part of a transaction.
|
Map<String,Map<String,Object>> |
read(String factoryPid)
For the given managed service factory, retrieves the full complement of configuration
properties.
|
public ManagedServiceOperation create(String factoryPid, Map<String,Object> configs) throws ConfiguratorException
ManagedServiceActionscreate in interface ManagedServiceActionsfactoryPid - the PID of the service factoryconfigs - the configuration properties to apply to the serviceConfiguratorException - if an error occurs creating the operatorpublic ManagedServiceOperation delete(String pid) throws ConfiguratorException
ManagedServiceActionsdelete in interface ManagedServiceActionspid - the PID of the instance to be deletedConfiguratorException - if an error occurs creating the operatorpublic Map<String,Map<String,Object>> read(String factoryPid) throws ConfiguratorException
ManagedServiceActionsThis will get all the key:value pairs for each available configuration.
read in interface ManagedServiceActionsfactoryPid - the factoryPid of the service to queryconfigIdConfiguratorException - if any errors occur reading the stateThis work is licensed under a Creative Commons Attribution 4.0 International License.