Class ThingsBoardDeviceDescriptor
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.thingsboard.ThingsBoardDeviceDescriptor
- All Implemented Interfaces:
de.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
public class ThingsBoardDeviceDescriptor
extends Object
implements de.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
Implements the things board device descriptor.
- Author:
- Dennis Pidun, University of Hildesheim
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
de.iip_ecosphere.platform.deviceMgt.DeviceDescriptor.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate org.thingsboard.rest.client.RestClientprivate org.thingsboard.server.common.data.Device -
Constructor Summary
ConstructorsConstructorDescriptionThingsBoardDeviceDescriptor(org.thingsboard.server.common.data.Device tbDevice, org.thingsboard.rest.client.RestClient tbClient) Creates the descriptor. -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the device timeout.getId()getIp()de.iip_ecosphere.platform.deviceMgt.DeviceDescriptor.StategetState()static voidsetDeviceTimeout(int timeout) Changes the device timeout.
-
Field Details
-
deviceTimeout
private static int deviceTimeout -
tbDevice
private org.thingsboard.server.common.data.Device tbDevice -
tbClient
private org.thingsboard.rest.client.RestClient tbClient
-
-
Constructor Details
-
ThingsBoardDeviceDescriptor
public ThingsBoardDeviceDescriptor(org.thingsboard.server.common.data.Device tbDevice, org.thingsboard.rest.client.RestClient tbClient) Creates the descriptor.- Parameters:
tbDevice- the things board devicetbClient- the things board client
-
-
Method Details
-
getDeviceTimeout
public static int getDeviceTimeout()Returns the device timeout.- Returns:
- the device timeout [ms]
-
setDeviceTimeout
public static void setDeviceTimeout(int timeout) Changes the device timeout. [public for testing]- Parameters:
timeout- the timeout [ms]
-
getId
- Specified by:
getIdin interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-
getManagedId
- Specified by:
getManagedIdin interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-
getIp
- Specified by:
getIpin interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-
getRuntimeVersion
- Specified by:
getRuntimeVersionin interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-
getRuntimeName
- Specified by:
getRuntimeNamein interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-
getResourceId
- Specified by:
getResourceIdin interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-
getState
public de.iip_ecosphere.platform.deviceMgt.DeviceDescriptor.State getState()- Specified by:
getStatein interfacede.iip_ecosphere.platform.deviceMgt.DeviceDescriptor
-