org.openmuc.framework.config
Interface ConfigService


public interface ConfigService


Method Summary
 RootConfig getConfig()
           
 RootConfig getConfig(ConfigChangeListener listener)
           
 RootConfig getEmptyConfig()
           
 java.util.List<java.lang.String> getIdsOfRegisteredDrivers()
           
 java.util.List<java.lang.String> getIdsOfRegisteredDrivers(DriverChangeListener listener)
           
 void lock()
           
 void reloadConfigFromFile()
           
 java.util.List<ChannelScanInformation> scanForChannels(java.lang.String driverName, java.lang.String interfaceAddress, java.lang.String deviceAddress, java.lang.String settings, int timeout)
           
 java.util.List<DeviceScanInformation> scanForDevices(java.lang.String driverName, java.lang.String scanAddress, java.lang.String settings, int timeout)
           
 void setConfig(RootConfig config)
           
 void stopListeningForConfigChange(ConfigChangeListener listener)
           
 boolean tryLock()
           
 void unlock()
           
 void writeConfigToFile()
           
 

Method Detail

lock

void lock()

tryLock

boolean tryLock()

unlock

void unlock()

getConfig

RootConfig getConfig()

getConfig

RootConfig getConfig(ConfigChangeListener listener)

stopListeningForConfigChange

void stopListeningForConfigChange(ConfigChangeListener listener)

setConfig

void setConfig(RootConfig config)

writeConfigToFile

void writeConfigToFile()
                       throws ConfigWriteException
Throws:
ConfigWriteException

reloadConfigFromFile

void reloadConfigFromFile()
                          throws java.io.FileNotFoundException,
                                 ParseException
Throws:
java.io.FileNotFoundException
ParseException

getEmptyConfig

RootConfig getEmptyConfig()

scanForDevices

java.util.List<DeviceScanInformation> scanForDevices(java.lang.String driverName,
                                                     java.lang.String scanAddress,
                                                     java.lang.String settings,
                                                     int timeout)
                                                     throws DriverNotAvailableException,
                                                            java.lang.UnsupportedOperationException,
                                                            ArgumentSyntaxException,
                                                            java.io.IOException
Throws:
DriverNotAvailableException
java.lang.UnsupportedOperationException
ArgumentSyntaxException
java.io.IOException

scanForChannels

java.util.List<ChannelScanInformation> scanForChannels(java.lang.String driverName,
                                                       java.lang.String interfaceAddress,
                                                       java.lang.String deviceAddress,
                                                       java.lang.String settings,
                                                       int timeout)
                                                       throws DriverNotAvailableException,
                                                              java.lang.UnsupportedOperationException,
                                                              java.io.IOException
Throws:
DriverNotAvailableException
java.lang.UnsupportedOperationException
java.io.IOException

getIdsOfRegisteredDrivers

java.util.List<java.lang.String> getIdsOfRegisteredDrivers()

getIdsOfRegisteredDrivers

java.util.List<java.lang.String> getIdsOfRegisteredDrivers(DriverChangeListener listener)