Service that maintains remote database connections with devices on the network.

Hierarchy

  • default

Constructors

Properties

#connections: Map<number, Connection> = ...

Active device connection map

#deviceLocks: Map<number, Mutex> = ...

Locks for each device when locating the connection

#deviceManager: DeviceManager
#hostDevice: Device

Methods

  • Open a connection to the specified device for querying

    Parameters

    Returns Promise<void>

  • Disconnect from the specified device

    Parameters

    Returns Promise<void>

  • Gets the remote database query interface for the given device.

    If we have not already established a connection with the specified device, we will attempt to first connect.

    Returns

    null if the device does not export a remote database service

    Parameters

    • deviceId: number

    Returns Promise<null | QueryInterface>

Generated using TypeDoc