|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationAdminMBean
This MBean provides the management interface to the OSGi Configuration Administration Service.
Field Summary | |
---|---|
static java.lang.String |
OBJECTNAME
The object name for this mbean. |
Method Summary | |
---|---|
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 properties)
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 properties)
Update the configuration with the supplied properties For each property entry, the following row is supplied. |
Field Detail |
---|
static final java.lang.String OBJECTNAME
Method Detail |
---|
java.lang.String createFactoryConfiguration(java.lang.String factoryPid) throws java.io.IOException
factoryPid
- the persistent id of the factory
java.io.IOException
- if the operation failedjava.lang.String createFactoryConfigurationForLocation(java.lang.String factoryPid, java.lang.String location) throws java.io.IOException
factoryPid
- the persistent id of the factorylocation
- the bundle location
java.io.IOException
- if the operation failedvoid delete(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configuration
java.io.IOException
- if the operation failsvoid deleteForLocation(java.lang.String pid, java.lang.String location) throws java.io.IOException
pid
- the persistent identifier of the configurationlocation
- the bundle location
java.io.IOException
- if the operation failsvoid deleteConfigurations(java.lang.String filter) throws java.io.IOException
filter
- the string representation of the
org.osgi.framework.Filter
java.io.IOException
- if the operation failed
java.lang.IllegalArgumentException
- if the filter is invalidjava.lang.String getBundleLocation(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configuration
java.io.IOException
- if the operation failsjava.lang.String getFactoryPid(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configuration
java.io.IOException
- if the operation failsjava.lang.String getFactoryPidForLocation(java.lang.String pid, java.lang.String location) throws java.io.IOException
pid
- the persistent identifier of the configurationlocation
- the bundle location
java.io.IOException
- if the operation failsjavax.management.openmbean.TabularData getProperties(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configuration
java.io.IOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
javax.management.openmbean.TabularData getPropertiesForLocation(java.lang.String pid, java.lang.String location) throws java.io.IOException
pid
- the persistent identifier of the configurationlocation
- the bundle location
java.io.IOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
java.lang.String[][] getConfigurations(java.lang.String filter) throws java.io.IOException
filter
- the string representation of the
org.osgi.framework.Filter
java.io.IOException
- if the operation failed
java.lang.IllegalArgumentException
- if the filter is invalidvoid setBundleLocation(java.lang.String pid, java.lang.String location) throws java.io.IOException
pid
- the persistent identifier of the configurationlocation
- the bundle location
java.io.IOException
- if the operation failsvoid update(java.lang.String pid, javax.management.openmbean.TabularData properties) throws java.io.IOException
pid
- the persistent identifier of the configurationproperties
- the table of properties
java.io.IOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
void updateForLocation(java.lang.String pid, java.lang.String location, javax.management.openmbean.TabularData properties) throws java.io.IOException
pid
- the persistent identifier of the configurationlocation
- the bundle locationproperties
- the table of properties
java.io.IOException
- if the operation failsJmxConstants.PROPERTIES_TYPE for the
details of the TabularType
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |