org.openmuc.framework.config
Interface ConfigService
public interface ConfigService
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 interfaceAddress,
java.lang.String scanFilter,
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)