public interface ConfigurationAdminMBean
Modifier and Type | Field and Description |
---|---|
static String |
OBJECTNAME
The object name for this mbean.
|
Modifier and Type | Method and Description |
---|---|
String |
createFactoryConfiguration(String factoryPid)
Create a new configuration instance for the supplied persistent id of the
factory, answering the PID of the created configuration
|
String |
createFactoryConfigurationForLocation(String factoryPid,
String location)
Create a factory configuration for the supplied persistent id of the
factory and the bundle location bound to bind the created configuration
to, answering the PID of the created configuration
|
void |
delete(String pid)
Delete the configuration
|
void |
deleteConfigurations(String filter)
Delete the configurations matching the filter specification.
|
void |
deleteForLocation(String pid,
String location)
Delete the configuration
|
String |
getBundleLocation(String pid)
Answer the bundle location the configuration is bound to
|
String[][] |
getConfigurations(String filter)
Answer the list of PID/Location pairs of the configurations managed by
this service
|
String |
getFactoryPid(String pid)
Answer the factory PID if the configuration is a factory configuration,
null otherwise.
|
String |
getFactoryPidForLocation(String pid,
String location)
Answer the factory PID if the configuration is a factory configuration,
null otherwise.
|
TabularData |
getProperties(String pid)
Answer the contents of the configuration.
|
TabularData |
getPropertiesForLocation(String pid,
String location)
Answer the contents of the configuration.
|
void |
setBundleLocation(String pid,
String location)
Set the bundle location the configuration is bound to
|
void |
update(String pid,
TabularData properties)
Update the configuration with the supplied properties For each property
entry, the following row is supplied.
|
void |
updateForLocation(String pid,
String location,
TabularData properties)
Update the configuration with the supplied properties For each property
entry, the following row is supplied.
|
static final String OBJECTNAME
String createFactoryConfiguration(String factoryPid) throws IOException
factoryPid
- the persistent id of the factoryIOException
- if the operation failedString createFactoryConfigurationForLocation(String factoryPid, String location) throws IOException
factoryPid
- the persistent id of the factorylocation
- the bundle locationIOException
- if the operation failedvoid delete(String pid) throws IOException
pid
- the persistent identifier of the configurationIOException
- if the operation failsvoid deleteForLocation(String pid, String location) throws IOException
pid
- the persistent identifier of the configurationlocation
- the bundle locationIOException
- if the operation failsvoid deleteConfigurations(String filter) throws IOException
filter
- the string representation of the
org.osgi.framework.Filter
IOException
- if the operation failedIllegalArgumentException
- if the filter is invalidString getBundleLocation(String pid) throws IOException
pid
- the persistent identifier of the configurationIOException
- if the operation failsString getFactoryPid(String pid) throws IOException
pid
- the persistent identifier of the configurationIOException
- if the operation failsString getFactoryPidForLocation(String pid, String location) throws IOException
pid
- the persistent identifier of the configurationlocation
- the bundle locationIOException
- if the operation failsTabularData getProperties(String pid) throws IOException
pid
- the persistent identifier of the configurationIOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
TabularData getPropertiesForLocation(String pid, String location) throws IOException
pid
- the persistent identifier of the configurationlocation
- the bundle locationIOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
String[][] getConfigurations(String filter) throws IOException
filter
- the string representation of the
org.osgi.framework.Filter
IOException
- if the operation failedIllegalArgumentException
- if the filter is invalidvoid setBundleLocation(String pid, String location) throws IOException
pid
- the persistent identifier of the configurationlocation
- the bundle locationIOException
- if the operation failsvoid update(String pid, TabularData properties) throws IOException
pid
- the persistent identifier of the configurationproperties
- the table of propertiesIOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
void updateForLocation(String pid, String location, TabularData properties) throws IOException
pid
- the persistent identifier of the configurationlocation
- the bundle locationproperties
- the table of propertiesIOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0