public interface ConfigService
Modifier and Type | Method and Description |
---|---|
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 interfaceAddress,
java.lang.String scanFilter,
java.lang.String settings,
int timeout) |
void |
setConfig(RootConfig config) |
void |
stopListeningForConfigChange(ConfigChangeListener listener) |
boolean |
tryLock() |
void |
unlock() |
void |
writeConfigToFile() |
void lock()
boolean tryLock()
void unlock()
RootConfig getConfig()
RootConfig getConfig(ConfigChangeListener listener)
void stopListeningForConfigChange(ConfigChangeListener listener)
void setConfig(RootConfig config)
void writeConfigToFile() throws ConfigWriteException
ConfigWriteException
void reloadConfigFromFile() throws java.io.FileNotFoundException, ParseException
java.io.FileNotFoundException
ParseException
RootConfig getEmptyConfig()
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
DriverNotAvailableException
java.lang.UnsupportedOperationException
ArgumentSyntaxException
java.io.IOException
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
DriverNotAvailableException
java.lang.UnsupportedOperationException
java.io.IOException
java.util.List<java.lang.String> getIdsOfRegisteredDrivers()
java.util.List<java.lang.String> getIdsOfRegisteredDrivers(DriverChangeListener listener)