|
|||||||||||
| 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 String |
OBJECTNAME
The object name for this mbean. |
| 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 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 |
| Field Detail |
|---|
static final String OBJECTNAME
| Method Detail |
|---|
String createFactoryConfiguration(String factoryPid)
throws IOException
factoryPid - the persistent id of the factory
IOException - if the operation failed
String createFactoryConfigurationForLocation(String factoryPid,
String location)
throws IOException
factoryPid - the persistent id of the factorylocation - the bundle location
IOException - if the operation failed
void delete(String pid)
throws IOException
pid - the persistent identifier of the configuration
IOException - if the operation fails
void deleteForLocation(String pid,
String location)
throws IOException
pid - the persistent identifier of the configurationlocation - the bundle location
IOException - if the operation fails
void deleteConfigurations(String filter)
throws IOException
filter - the string representation of the
org.osgi.framework.Filter
IOException - if the operation failed
IllegalArgumentException - if the filter is invalid
String getBundleLocation(String pid)
throws IOException
pid - the persistent identifier of the configuration
IOException - if the operation fails
String getFactoryPid(String pid)
throws IOException
pid - the persistent identifier of the configuration
IOException - if the operation fails
String getFactoryPidForLocation(String pid,
String location)
throws IOException
pid - the persistent identifier of the configurationlocation - the bundle location
IOException - if the operation fails
TabularData getProperties(String pid)
throws IOException
pid - the persistent identifier of the configuration
IOException - if the operation failsfor the details of the TabularType
TabularData getPropertiesForLocation(String pid,
String location)
throws IOException
pid - the persistent identifier of the configurationlocation - the bundle location
IOException - if the operation failsfor 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 failed
IllegalArgumentException - if the filter is invalid
void setBundleLocation(String pid,
String location)
throws IOException
pid - the persistent identifier of the configurationlocation - the bundle location
IOException - if the operation fails
void update(String pid,
TabularData properties)
throws IOException
pid - the persistent identifier of the configurationproperties - the table of properties
IOException - if the operation failsfor 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 properties
IOException - if the operation failsfor the details of the TabularType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||