Package fr.dyade.aaa.agent.services
Class A3ManagedService
- java.lang.Object
-
- fr.dyade.aaa.agent.services.CommonService
-
- fr.dyade.aaa.agent.services.A3ManagedService
-
- All Implemented Interfaces:
org.osgi.service.cm.ManagedService
public class A3ManagedService extends CommonService implements org.osgi.service.cm.ManagedService
Start the a3 server with a ConfigAdmin file.The default values
- sid (server id) : 0
- storage : s0
- pathToConf : "."
The reserved words for properties:- sid
- storage
- pathToConf
A simple example:<configadmin> <configuration pid="fr.dyade.aaa.agent.services.A3ManagedService"> <property name="sid">0</property> <property name="storage">your_path/s0</property> <property name="pathToConf">your_path/conf</property> <!-- properties --> <property name="Transaction">fr.dyade.aaa.util.NTransaction</property> </configuration> </configadmin>
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanDEBUGprivate booleaninitializedprivate static Loggerloggerprivate org.osgi.framework.ServiceRegistrationregistration-
Fields inherited from class fr.dyade.aaa.agent.services.CommonService
bundleContext, PATH_TO_CONF, SID, STORAGE
-
-
Constructor Summary
Constructors Constructor Description A3ManagedService(org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStop()StringgetName()voidupdated(Dictionary properties)-
Methods inherited from class fr.dyade.aaa.agent.services.CommonService
doStart
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
registration
private org.osgi.framework.ServiceRegistration registration
-
initialized
private boolean initialized
-
-
Method Detail
-
doStop
protected void doStop()
- Overrides:
doStopin classCommonService
-
getName
public String getName()
-
updated
public void updated(Dictionary properties) throws org.osgi.service.cm.ConfigurationException
- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Overrides:
updatedin classCommonService- Throws:
org.osgi.service.cm.ConfigurationException
-
-