|
||||||||||
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.MBeanRegistration
Exception
MBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)
public void postRegister(Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
MBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister() throws Exception
preDeregister
in interface javax.management.MBeanRegistration
Exception
MBeanRegistration.preDeregister()
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
MBeanRegistration.postDeregister()
public String[] listConfigurations(String filter) throws Exception
listConfigurations
in interface ConfigAdminManagerMBean
Exception
ConfigAdminManagerMBean.listConfigurations(java.lang.String)
public String getConfiguration(String pid) throws Exception
getConfiguration
in interface ConfigAdminManagerMBean
Exception
ConfigAdminManagerMBean.getConfiguration(java.lang.String)
public String getConfiguration(String pid, String location) throws Exception
getConfiguration
in interface ConfigAdminManagerMBean
pid
- Persistent IDlocation
- Bundle location of the service
Exception
ConfigAdminManagerMBean.getConfiguration(java.lang.String, java.lang.String)
public String createFactoryConfiguration(String pid) throws Exception
createFactoryConfiguration
in interface ConfigAdminManagerMBean
Exception
ConfigAdminManagerMBean.createFactoryConfiguration(java.lang.String)
public String createFactoryConfiguration(String pid, String location) throws Exception
createFactoryConfiguration
in interface ConfigAdminManagerMBean
Exception
ConfigAdminManagerMBean.createFactoryConfiguration(java.lang.String, java.lang.String)
public void deleteConfigurations(String filter) throws Exception
deleteConfigurations
in interface ConfigAdminManagerMBean
filter
- LDAP String representing the configurations that want to be deleted
Exception
ConfigAdminManagerMBean.deleteConfigurations(java.lang.String)
public void removePropertyFromConfigurations(String filter, String name) throws Exception
removePropertyFromConfigurations
in interface ConfigAdminManagerMBean
Exception
ConfigAdminManagerMBean.removePropertyFromConfigurations(java.lang.String, java.lang.String)
public void addPropertyToConfigurations(String filter, String name, String value, String type) throws Exception
addPropertyToConfigurations
in interface ConfigAdminManagerMBean
Exception
ConfigAdminManagerMBean.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 ConfigAdminManagerMBean
Exception
public boolean isAvailable()
isAvailable
in interface ConfigAdminManagerMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |