|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.jmx.cm.ConfigurationAdmin
public class ConfigurationAdmin
Implementation of ConfigurationAdminMBean
Field Summary |
---|
Fields inherited from interface org.osgi.jmx.service.cm.ConfigurationAdminMBean |
---|
OBJECTNAME |
Constructor Summary | |
---|---|
ConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
Constructs a ConfigurationAdmin implementation |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
configurationAdmin
- instance of org.osgi.service.cm.ConfigurationAdmin serviceMethod Detail |
---|
public String createFactoryConfiguration(String factoryPid) throws IOException
ConfigurationAdminMBean
createFactoryConfiguration
in interface ConfigurationAdminMBean
factoryPid
- the persistent id of the factory
IOException
- if the operation failedConfigurationAdminMBean.createFactoryConfiguration(java.lang.String)
public String createFactoryConfigurationForLocation(String factoryPid, String location) throws IOException
ConfigurationAdminMBean
createFactoryConfigurationForLocation
in interface ConfigurationAdminMBean
factoryPid
- the persistent id of the factorylocation
- the bundle location
IOException
- if the operation failedConfigurationAdminMBean.createFactoryConfigurationForLocation(java.lang.String, java.lang.String)
public void delete(String pid) throws IOException
ConfigurationAdminMBean
delete
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configuration
IOException
- if the operation failsConfigurationAdminMBean.delete(java.lang.String)
public void deleteForLocation(String pid, String location) throws IOException
ConfigurationAdminMBean
deleteForLocation
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configurationlocation
- the bundle location
IOException
- if the operation failsConfigurationAdminMBean.deleteForLocation(java.lang.String, java.lang.String)
public void deleteConfigurations(String filter) throws IOException
ConfigurationAdminMBean
deleteConfigurations
in interface ConfigurationAdminMBean
filter
- the string representation of the
org.osgi.framework.Filter
IOException
- if the operation failedConfigurationAdminMBean.deleteConfigurations(java.lang.String)
public String getBundleLocation(String pid) throws IOException
ConfigurationAdminMBean
getBundleLocation
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configuration
IOException
- if the operation failsConfigurationAdminMBean.getBundleLocation(java.lang.String)
public String[][] getConfigurations(String filter) throws IOException
ConfigurationAdminMBean
getConfigurations
in interface ConfigurationAdminMBean
filter
- the string representation of the
org.osgi.framework.Filter
IOException
- if the operation failedConfigurationAdminMBean.getConfigurations(java.lang.String)
public String getFactoryPid(String pid) throws IOException
ConfigurationAdminMBean
getFactoryPid
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configuration
IOException
- if the operation failsConfigurationAdminMBean.getFactoryPid(java.lang.String)
public String getFactoryPidForLocation(String pid, String location) throws IOException
ConfigurationAdminMBean
getFactoryPidForLocation
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configurationlocation
- the bundle location
IOException
- if the operation failsConfigurationAdminMBean.getFactoryPidForLocation(java.lang.String, java.lang.String)
public TabularData getProperties(String pid) throws IOException
ConfigurationAdminMBean
getProperties
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configuration
IOException
- if the operation failsConfigurationAdminMBean.getProperties(java.lang.String)
public TabularData getPropertiesForLocation(String pid, String location) throws IOException
ConfigurationAdminMBean
getPropertiesForLocation
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configurationlocation
- the bundle location
IOException
- if the operation failsConfigurationAdminMBean.getPropertiesForLocation(java.lang.String, java.lang.String)
public void setBundleLocation(String pid, String location) throws IOException
ConfigurationAdminMBean
setBundleLocation
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configurationlocation
- the bundle location
IOException
- if the operation failsConfigurationAdminMBean.setBundleLocation(java.lang.String, java.lang.String)
public void update(String pid, TabularData configurationTable) throws IOException
ConfigurationAdminMBean
update
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configurationconfigurationTable
- the table of properties
IOException
- if the operation failsConfigurationAdminMBean.update(java.lang.String, javax.management.openmbean.TabularData)
public void updateForLocation(String pid, String location, TabularData configurationTable) throws IOException
ConfigurationAdminMBean
updateForLocation
in interface ConfigurationAdminMBean
pid
- the persistent identifier of the configurationlocation
- the bundle locationconfigurationTable
- the table of properties
IOException
- if the operation failsConfigurationAdminMBean.updateForLocation(java.lang.String, java.lang.String, javax.management.openmbean.TabularData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |