|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationService
Method Summary | |
---|---|
DeviceConfiguration |
createDevice(java.lang.String name)
Creates a new DeviceConfiguration object for a device and add it to the configuration. |
void |
deleteDevice(java.lang.String name)
Delete a device from the configuration. |
DeviceConfiguration |
getDeviceByName(java.lang.String name)
Returns the DeviceConfiguration object for the device with the specified name. |
java.util.List<DeviceConfiguration> |
getDevices()
Returns an immutable list of configured meters. |
PlantConfiguration |
getPlantConfiguration()
|
void |
persist()
Saves the configuration to the persistent storage |
void |
registerListener(ConfigurationListener listener)
Register a listener to get informed when the configuration changes. |
void |
reloadConfiguration()
Reloads configuration from persistent storage |
Method Detail |
---|
void registerListener(ConfigurationListener listener)
listener
- void persist()
DeviceConfiguration createDevice(java.lang.String name)
name
- unique name of the new meter
void reloadConfiguration()
java.util.List<DeviceConfiguration> getDevices()
DeviceConfiguration getDeviceByName(java.lang.String name)
name
- unique name of the device
void deleteDevice(java.lang.String name)
name
- unique name of the devicePlantConfiguration getPlantConfiguration()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |