Class DeviceIpUpdater
java.lang.Object
org.eblocker.server.common.network.DeviceIpUpdater
Service to update IP addresses of devices.
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceIpUpdater(DataSource dataSource, DeviceService deviceService, NetworkStateMachine networkStateMachine, DeviceFactory deviceFactory, UserService userService) -
Method Summary
-
Constructor Details
-
DeviceIpUpdater
@Inject public DeviceIpUpdater(DataSource dataSource, DeviceService deviceService, NetworkStateMachine networkStateMachine, DeviceFactory deviceFactory, UserService userService)
-
-
Method Details
-
refresh
Add an IP address to a given device. If the device does not exist, it is created.- Parameters:
deviceId- the device ID. The device is created if it does not exist.ipAddress- the detected IP address
-