public interface ConfigurationAdminMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OBJECTNAME
The object name for this mbean.
|
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 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
|
static final java.lang.String OBJECTNAME
java.lang.String createFactoryConfiguration(java.lang.String factoryPid) throws java.io.IOException
factoryPid
- the persistent id of the factoryjava.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 locationjava.io.IOException
- if the operation failedvoid delete(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configurationjava.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 locationjava.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 failedjava.lang.IllegalArgumentException
- if the filter is invalidjava.lang.String getBundleLocation(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configurationjava.io.IOException
- if the operation failsjava.lang.String getFactoryPid(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configurationjava.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 locationjava.io.IOException
- if the operation failsjavax.management.openmbean.TabularData getProperties(java.lang.String pid) throws java.io.IOException
pid
- the persistent identifier of the configurationjava.io.IOException
- if the operation failsfor 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 locationjava.io.IOException
- if the operation failsfor 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 failedjava.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 locationjava.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 propertiesjava.io.IOException
- if the operation failsfor 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 propertiesjava.io.IOException
- if the operation failsfor the details of the TabularType
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"