public class ConfigurationAdmin extends Object implements ConfigurationAdminMBean
ConfigurationAdminMBeanOBJECTNAME| Constructor and Description |
|---|
ConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
Constructs a ConfigurationAdmin implementation
|
| 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 configurationTable)
Update the configuration with the supplied properties For each property
entry, the following row is supplied
|
void |
updateForLocation(String pid,
String location,
TabularData configurationTable)
Update the configuration with the supplied properties For each property
entry, the following row is supplied
|
public ConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
configurationAdmin - instance of org.osgi.service.cm.ConfigurationAdmin servicepublic String createFactoryConfiguration(String factoryPid) throws IOException
ConfigurationAdminMBeancreateFactoryConfiguration in interface ConfigurationAdminMBeanfactoryPid - the persistent id of the factoryIOException - if the operation failedConfigurationAdminMBean.createFactoryConfiguration(java.lang.String)public String createFactoryConfigurationForLocation(String factoryPid, String location) throws IOException
ConfigurationAdminMBeancreateFactoryConfigurationForLocation in interface ConfigurationAdminMBeanfactoryPid - the persistent id of the factorylocation - the bundle locationIOException - if the operation failedConfigurationAdminMBean.createFactoryConfigurationForLocation(java.lang.String, java.lang.String)public void delete(String pid) throws IOException
ConfigurationAdminMBeandelete in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationIOException - if the operation failsConfigurationAdminMBean.delete(java.lang.String)public void deleteForLocation(String pid, String location) throws IOException
ConfigurationAdminMBeandeleteForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationIOException - if the operation failsConfigurationAdminMBean.deleteForLocation(java.lang.String, java.lang.String)public void deleteConfigurations(String filter) throws IOException
ConfigurationAdminMBeandeleteConfigurations in interface ConfigurationAdminMBeanfilter - the string representation of the
org.osgi.framework.FilterIOException - if the operation failedConfigurationAdminMBean.deleteConfigurations(java.lang.String)public String getBundleLocation(String pid) throws IOException
ConfigurationAdminMBeangetBundleLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationIOException - if the operation failsConfigurationAdminMBean.getBundleLocation(java.lang.String)public String[][] getConfigurations(String filter) throws IOException
ConfigurationAdminMBeangetConfigurations in interface ConfigurationAdminMBeanfilter - the string representation of the
org.osgi.framework.FilterIOException - if the operation failedConfigurationAdminMBean.getConfigurations(java.lang.String)public String getFactoryPid(String pid) throws IOException
ConfigurationAdminMBeangetFactoryPid in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationIOException - if the operation failsConfigurationAdminMBean.getFactoryPid(java.lang.String)public String getFactoryPidForLocation(String pid, String location) throws IOException
ConfigurationAdminMBeangetFactoryPidForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationIOException - if the operation failsConfigurationAdminMBean.getFactoryPidForLocation(java.lang.String, java.lang.String)public TabularData getProperties(String pid) throws IOException
ConfigurationAdminMBeangetProperties in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationIOException - if the operation failsConfigurationAdminMBean.getProperties(java.lang.String)public TabularData getPropertiesForLocation(String pid, String location) throws IOException
ConfigurationAdminMBeangetPropertiesForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationIOException - if the operation failsConfigurationAdminMBean.getPropertiesForLocation(java.lang.String, java.lang.String)public void setBundleLocation(String pid, String location) throws IOException
ConfigurationAdminMBeansetBundleLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationIOException - if the operation failsConfigurationAdminMBean.setBundleLocation(java.lang.String, java.lang.String)public void update(String pid, TabularData configurationTable) throws IOException
ConfigurationAdminMBeanupdate in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationconfigurationTable - the table of propertiesIOException - if the operation failsConfigurationAdminMBean.update(java.lang.String, javax.management.openmbean.TabularData)public void updateForLocation(String pid, String location, TabularData configurationTable) throws IOException
ConfigurationAdminMBeanupdateForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationconfigurationTable - the table of propertiesIOException - if the operation failsConfigurationAdminMBean.updateForLocation(java.lang.String, java.lang.String, javax.management.openmbean.TabularData)Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.