|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigAdminManagerMBean
Method Summary | |
---|---|
void |
addProperty(java.lang.String pid,
java.lang.String name,
java.lang.String value,
java.lang.String type)
Add or update the property for the configuration identified by the supplied pid |
void |
addProperty(java.lang.String pid,
java.lang.String location,
java.lang.String name,
java.lang.String value,
java.lang.String type)
Add or update the property for the configuration identified by the supplied pid and location |
void |
addPropertyToConfigurations(java.lang.String filter,
java.lang.String name,
java.lang.String value,
java.lang.String type)
Add or update the property on all configurations matching the supplied filter |
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 |
createFactoryConfiguration(java.lang.String factoryPid,
java.lang.String location)
Creae 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 |
delete(java.lang.String pid,
java.lang.String location)
Delete the configuration |
void |
deleteConfigurations(java.lang.String filter)
Delete the configurations matching the filter spec |
void |
deleteProperty(java.lang.String pid,
java.lang.String key)
Delete the property from the configuration |
void |
deleteProperty(java.lang.String pid,
java.lang.String location,
java.lang.String key)
Delete the property from the configuration |
void |
deletePropertyFromConfigurations(java.lang.String filter,
java.lang.String key)
Remove the property from all configurations matching the supplied filter |
java.lang.String |
getBundleLocation(java.lang.String pid)
Answer the bundle location the configuration is bound to |
java.lang.String |
getFactoryPid(java.lang.String pid)
Answer the factory pid if the configuration is a factory configuration, null otherwise. |
java.lang.String |
getFactoryPid(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 credentials of the configuration |
javax.management.openmbean.TabularData |
getProperties(java.lang.String pid,
java.lang.String location)
Answer the credentials of the configuration |
java.lang.String[][] |
listConfigurations(java.lang.String filter)
Answer the list of PID/Location pairs of the configurations managed by this service |
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,
java.lang.String location,
javax.management.openmbean.TabularData properties)
Update the configuration with the supplied properties For each propery entry, the following row is supplied |
void |
update(java.lang.String pid,
javax.management.openmbean.TabularData properties)
Update the configuration with the supplied properties For each propery entry, the following row is supplied |
Method Detail |
---|
void addProperty(java.lang.String pid, java.lang.String name, java.lang.String value, java.lang.String type) throws java.io.IOException
pid
- the persistent id of the configurationname
- - the property key to add or updatevalue
- - the string encoded property value to add or updatetype
- - the type of the property
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the filter is invalidvoid addProperty(java.lang.String pid, java.lang.String location, java.lang.String name, java.lang.String value, java.lang.String type) throws java.io.IOException
pid
- the persistent id of the configurationlocation
- - the bundle locationname
- - the property key to add or updatevalue
- - the string encoded property value to add or updatetype
- - the type of the property
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the filter is invalidvoid addPropertyToConfigurations(java.lang.String filter, java.lang.String name, java.lang.String value, java.lang.String type) throws java.io.IOException
filter
- the string representation of the
org.osgi.framework.Filter
name
- - the property key to add or updatevalue
- - the string encoded property value to add or updatetype
- - the type of the property
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the filter is invalidjava.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 createFactoryConfiguration(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 delete(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 invalidvoid deleteProperty(java.lang.String pid, java.lang.String key) throws java.io.IOException
pid
- - the persistent identifier of the configurationkey
- the property
java.io.IOException
- if the operation failsvoid deleteProperty(java.lang.String pid, java.lang.String location, java.lang.String key) throws java.io.IOException
pid
- - the persistent identifier of the configurationlocation
- - the bundle locationkey
- the property
java.io.IOException
- if the operation failsvoid deletePropertyFromConfigurations(java.lang.String filter, java.lang.String key) throws java.io.IOException
filter
- the string representation of the
org.osgi.framework.Filter
key
- the property key to be removed
java.io.IOException
- if the operation fails
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 getFactoryPid(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 failsfor the details of the TabularType
For each propery entry, the following row is returned
- Property Key - the string key
- Property Value - the stringified version of the property value
- Property Value Type - the type of the property value
javax.management.openmbean.TabularData getProperties(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 failsfor the details of the TabularType
For each propery entry, the following row is returned
- Property Key - the string key
- Property Value - the stringified version of the property value
- Property Value Type - the type of the property value
java.lang.String[][] listConfigurations(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 failsfor the details of the TabularType
- Property Key - the string key
- Property Value - the stringified version of the property value
- Property Value Type - the type of the property value
void update(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 failsfor the details of the TabularType
- Property Key - the string key
- Property Value - the stringified version of the property value
- Property Value Type - the type of the property value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |