|
||||||||||
| 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(String filter,
String name,
String value,
String type)
Updates or adds a property to configurations selected by an LDAP expression Arrays and vectors not supported |
protected static Object |
castValueToType(String type,
String value)
|
String |
createFactoryConfiguration(String pid)
|
String |
createFactoryConfiguration(String pid,
String location)
|
void |
deleteConfigurations(String filter)
Delete the configurations identified by the LDAP filter |
String |
getConfiguration(String pid)
|
String |
getConfiguration(String pid,
String location)
This method gets a configuration object related to a pid and a bundle location |
boolean |
isAvailable()
|
protected static boolean |
isValidType(String type)
Validate that the value type is supported |
String[] |
listConfigurations(String filter)
|
void |
postDeregister()
|
void |
postRegister(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(String filter,
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 Exception
preRegister in interface javax.management.MBeanRegistrationExceptionMBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)public void postRegister(Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistrationMBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister()
throws Exception
preDeregister in interface javax.management.MBeanRegistrationExceptionMBeanRegistration.preDeregister()public void postDeregister()
postDeregister in interface javax.management.MBeanRegistrationMBeanRegistration.postDeregister()
public String[] listConfigurations(String filter)
throws Exception
listConfigurations in interface ConfigAdminManagerMBeanExceptionConfigAdminManagerMBean.listConfigurations(java.lang.String)
public String getConfiguration(String pid)
throws Exception
getConfiguration in interface ConfigAdminManagerMBeanExceptionConfigAdminManagerMBean.getConfiguration(java.lang.String)
public String getConfiguration(String pid,
String location)
throws Exception
getConfiguration in interface ConfigAdminManagerMBeanpid - Persistent IDlocation - Bundle location of the service
ExceptionConfigAdminManagerMBean.getConfiguration(java.lang.String, java.lang.String)
public String createFactoryConfiguration(String pid)
throws Exception
createFactoryConfiguration in interface ConfigAdminManagerMBeanExceptionConfigAdminManagerMBean.createFactoryConfiguration(java.lang.String)
public String createFactoryConfiguration(String pid,
String location)
throws Exception
createFactoryConfiguration in interface ConfigAdminManagerMBeanExceptionConfigAdminManagerMBean.createFactoryConfiguration(java.lang.String, java.lang.String)
public void deleteConfigurations(String filter)
throws Exception
deleteConfigurations in interface ConfigAdminManagerMBeanfilter - LDAP String representing the configurations that want to be deleted
ExceptionConfigAdminManagerMBean.deleteConfigurations(java.lang.String)
public void removePropertyFromConfigurations(String filter,
String name)
throws Exception
removePropertyFromConfigurations in interface ConfigAdminManagerMBeanExceptionConfigAdminManagerMBean.removePropertyFromConfigurations(java.lang.String, java.lang.String)
public void addPropertyToConfigurations(String filter,
String name,
String value,
String type)
throws Exception
addPropertyToConfigurations in interface ConfigAdminManagerMBeanExceptionConfigAdminManagerMBean.addPropertyToConfigurations(java.lang.String, java.lang.String, java.lang.String, java.lang.String)protected static boolean isValidType(String type)
type -
protected static Object castValueToType(String type,
String value)
public void refresh()
throws Exception
refresh in interface ConfigAdminManagerMBeanExceptionpublic boolean isAvailable()
isAvailable in interface ConfigAdminManagerMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||