|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.felix.jmood.compendium.ConfigAdminManager
public class ConfigAdminManager
This is the main class of the config admin module. As such, it is responsible for controlling all the issues related to it. This class implements the ConfigAdminManagerMXBean which defines its management interface. It creates a ConfigurationDelegate object for each available Configuration object.
Constructor Summary | |
---|---|
ConfigAdminManager(AgentContext ac)
|
Method Summary | |
---|---|
void |
addPropertyToConfigurations(java.lang.String filter,
java.lang.String name,
java.lang.String value,
java.lang.String type)
Updates or adds a property to configurations selected by an LDAP expression Arrays and vectors not supported |
protected static java.lang.Object |
castValueToType(java.lang.String type,
java.lang.String value)
|
java.lang.String |
createFactoryConfiguration(java.lang.String pid)
|
java.lang.String |
createFactoryConfiguration(java.lang.String pid,
java.lang.String location)
|
void |
deleteConfigurations(java.lang.String filter)
Delete the configurations identified by the LDAP filter |
java.lang.String |
getConfiguration(java.lang.String pid)
|
java.lang.String |
getConfiguration(java.lang.String pid,
java.lang.String location)
This method gets a configuration object related to a pid and a bundle location |
boolean |
isAvailable()
|
protected static boolean |
isValidType(java.lang.String type)
Validate that the value type is supported |
java.lang.String[] |
listConfigurations(java.lang.String filter)
|
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
This is called before the module is loaded. |
void |
refresh()
|
void |
removePropertyFromConfigurations(java.lang.String filter,
java.lang.String name)
Removes a property from all the configurations selected by an LDAP expression |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigAdminManager(AgentContext ac)
Method Detail |
---|
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
java.lang.Exception
MBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
MBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
MBeanRegistration.preDeregister()
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
MBeanRegistration.postDeregister()
public java.lang.String[] listConfigurations(java.lang.String filter) throws java.lang.Exception
listConfigurations
in interface ConfigAdminManagerMBean
java.lang.Exception
ConfigAdminManagerMBean.listConfigurations(java.lang.String)
public java.lang.String getConfiguration(java.lang.String pid) throws java.lang.Exception
getConfiguration
in interface ConfigAdminManagerMBean
java.lang.Exception
ConfigAdminManagerMBean.getConfiguration(java.lang.String)
public java.lang.String getConfiguration(java.lang.String pid, java.lang.String location) throws java.lang.Exception
getConfiguration
in interface ConfigAdminManagerMBean
pid
- Persistent IDlocation
- Bundle location of the service
java.lang.Exception
ConfigAdminManagerMBean.getConfiguration(java.lang.String, java.lang.String)
public java.lang.String createFactoryConfiguration(java.lang.String pid) throws java.lang.Exception
createFactoryConfiguration
in interface ConfigAdminManagerMBean
java.lang.Exception
ConfigAdminManagerMBean.createFactoryConfiguration(java.lang.String)
public java.lang.String createFactoryConfiguration(java.lang.String pid, java.lang.String location) throws java.lang.Exception
createFactoryConfiguration
in interface ConfigAdminManagerMBean
java.lang.Exception
ConfigAdminManagerMBean.createFactoryConfiguration(java.lang.String, java.lang.String)
public void deleteConfigurations(java.lang.String filter) throws java.lang.Exception
deleteConfigurations
in interface ConfigAdminManagerMBean
filter
- LDAP String representing the configurations that want to be deleted
java.lang.Exception
ConfigAdminManagerMBean.deleteConfigurations(java.lang.String)
public void removePropertyFromConfigurations(java.lang.String filter, java.lang.String name) throws java.lang.Exception
removePropertyFromConfigurations
in interface ConfigAdminManagerMBean
java.lang.Exception
ConfigAdminManagerMBean.removePropertyFromConfigurations(java.lang.String, java.lang.String)
public void addPropertyToConfigurations(java.lang.String filter, java.lang.String name, java.lang.String value, java.lang.String type) throws java.lang.Exception
addPropertyToConfigurations
in interface ConfigAdminManagerMBean
java.lang.Exception
ConfigAdminManagerMBean.addPropertyToConfigurations(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
protected static boolean isValidType(java.lang.String type)
type
- protected static java.lang.Object castValueToType(java.lang.String type, java.lang.String value)
public void refresh() throws java.lang.Exception
refresh
in interface ConfigAdminManagerMBean
java.lang.Exception
public boolean isAvailable()
isAvailable
in interface ConfigAdminManagerMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |