public class ConfigurationAdmin extends java.lang.Object implements ConfigurationAdminMBean
ConfigurationAdminMBeanOBJECTNAME| Constructor and Description |
|---|
ConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
Constructs a ConfigurationAdmin implementation
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createFactoryConfiguration(java.lang.String factoryPid)
Create a new configuration instance for the supplied persistent id of the
factory, answering the PID of the created configuration
|
java.lang.String |
createFactoryConfigurationForLocation(java.lang.String factoryPid,
java.lang.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(java.lang.String pid)
Delete the configuration
|
void |
deleteConfigurations(java.lang.String filter)
Delete the configurations matching the filter specification.
|
void |
deleteForLocation(java.lang.String pid,
java.lang.String location)
Delete the configuration
|
java.lang.String |
getBundleLocation(java.lang.String pid)
Answer the bundle location the configuration is bound to
|
java.lang.String[][] |
getConfigurations(java.lang.String filter)
Answer the list of PID/Location pairs of the configurations managed by
this service
|
java.lang.String |
getFactoryPid(java.lang.String pid)
Answer the factory PID if the configuration is a factory configuration,
null otherwise.
|
java.lang.String |
getFactoryPidForLocation(java.lang.String pid,
java.lang.String location)
Answer the factory PID if the configuration is a factory configuration,
null otherwise.
|
javax.management.openmbean.TabularData |
getProperties(java.lang.String pid)
Answer the contents of the configuration
|
javax.management.openmbean.TabularData |
getPropertiesForLocation(java.lang.String pid,
java.lang.String location)
Answer the contents of the configuration
|
void |
setBundleLocation(java.lang.String pid,
java.lang.String location)
Set the bundle location the configuration is bound to
|
void |
update(java.lang.String pid,
javax.management.openmbean.TabularData configurationTable)
Update the configuration with the supplied properties For each property
entry, the following row is supplied
|
void |
updateForLocation(java.lang.String pid,
java.lang.String location,
javax.management.openmbean.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 java.lang.String createFactoryConfiguration(java.lang.String factoryPid)
throws java.io.IOException
ConfigurationAdminMBeancreateFactoryConfiguration in interface ConfigurationAdminMBeanfactoryPid - the persistent id of the factoryjava.io.IOException - if the operation failedConfigurationAdminMBean.createFactoryConfiguration(java.lang.String)public java.lang.String createFactoryConfigurationForLocation(java.lang.String factoryPid,
java.lang.String location)
throws java.io.IOException
ConfigurationAdminMBeancreateFactoryConfigurationForLocation in interface ConfigurationAdminMBeanfactoryPid - the persistent id of the factorylocation - the bundle locationjava.io.IOException - if the operation failedConfigurationAdminMBean.createFactoryConfigurationForLocation(java.lang.String, java.lang.String)public void delete(java.lang.String pid)
throws java.io.IOException
ConfigurationAdminMBeandelete in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationjava.io.IOException - if the operation failsConfigurationAdminMBean.delete(java.lang.String)public void deleteForLocation(java.lang.String pid,
java.lang.String location)
throws java.io.IOException
ConfigurationAdminMBeandeleteForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationjava.io.IOException - if the operation failsConfigurationAdminMBean.deleteForLocation(java.lang.String, java.lang.String)public void deleteConfigurations(java.lang.String filter)
throws java.io.IOException
ConfigurationAdminMBeandeleteConfigurations in interface ConfigurationAdminMBeanfilter - the string representation of the
org.osgi.framework.Filterjava.io.IOException - if the operation failedConfigurationAdminMBean.deleteConfigurations(java.lang.String)public java.lang.String getBundleLocation(java.lang.String pid)
throws java.io.IOException
ConfigurationAdminMBeangetBundleLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationjava.io.IOException - if the operation failsConfigurationAdminMBean.getBundleLocation(java.lang.String)public java.lang.String[][] getConfigurations(java.lang.String filter)
throws java.io.IOException
ConfigurationAdminMBeangetConfigurations in interface ConfigurationAdminMBeanfilter - the string representation of the
org.osgi.framework.Filterjava.io.IOException - if the operation failedConfigurationAdminMBean.getConfigurations(java.lang.String)public java.lang.String getFactoryPid(java.lang.String pid)
throws java.io.IOException
ConfigurationAdminMBeangetFactoryPid in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationjava.io.IOException - if the operation failsConfigurationAdminMBean.getFactoryPid(java.lang.String)public java.lang.String getFactoryPidForLocation(java.lang.String pid,
java.lang.String location)
throws java.io.IOException
ConfigurationAdminMBeangetFactoryPidForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationjava.io.IOException - if the operation failsConfigurationAdminMBean.getFactoryPidForLocation(java.lang.String, java.lang.String)public javax.management.openmbean.TabularData getProperties(java.lang.String pid)
throws java.io.IOException
ConfigurationAdminMBeangetProperties in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationjava.io.IOException - if the operation failsConfigurationAdminMBean.getProperties(java.lang.String)public javax.management.openmbean.TabularData getPropertiesForLocation(java.lang.String pid,
java.lang.String location)
throws java.io.IOException
ConfigurationAdminMBeangetPropertiesForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationjava.io.IOException - if the operation failsConfigurationAdminMBean.getPropertiesForLocation(java.lang.String, java.lang.String)public void setBundleLocation(java.lang.String pid,
java.lang.String location)
throws java.io.IOException
ConfigurationAdminMBeansetBundleLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationjava.io.IOException - if the operation failsConfigurationAdminMBean.setBundleLocation(java.lang.String, java.lang.String)public void update(java.lang.String pid,
javax.management.openmbean.TabularData configurationTable)
throws java.io.IOException
ConfigurationAdminMBeanupdate in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationconfigurationTable - the table of propertiesjava.io.IOException - if the operation failsConfigurationAdminMBean.update(java.lang.String, javax.management.openmbean.TabularData)public void updateForLocation(java.lang.String pid,
java.lang.String location,
javax.management.openmbean.TabularData configurationTable)
throws java.io.IOException
ConfigurationAdminMBeanupdateForLocation in interface ConfigurationAdminMBeanpid - the persistent identifier of the configurationlocation - the bundle locationconfigurationTable - the table of propertiesjava.io.IOException - if the operation failsConfigurationAdminMBean.updateForLocation(java.lang.String, java.lang.String, javax.management.openmbean.TabularData)Copyright © 2009-2019 The Apache Software Foundation. All Rights Reserved.