Class: NodeRAMStore

NodeRAMStore

new NodeRAMStore(self)

In RAM store representing the state of a node. Immutable value.
Parameters:
Name Type Description
self Node
Implements:
Source:

Members

(readonly) devices :Object.<string, Device>

Map of devices available at this node. Keys are UUIDs.
Type:
Source:

(readonly) flows :Object.<string, Flow>

Map of flows associated with this node. Keys are UUIDs.
Type:
  • Object.<string, Flow>
Source:

(readonly) receivers :Object.<string, Receiver>

Map of receivers associated with this node. Keys are UUIDs.
Type:
  • Object.<string, Receiver>
Source:

(readonly) senders :Object.<string, Sender>

Map of senders associated with this node. Keys are UUIDs.
Type:
  • Object.<string, Sender>
Source:

(readonly) sources :Object.<string, Source>

Map of sources available at this node. Keys are UUIDs.
Type:
  • Object.<string, Source>
Source:

Methods

getDevice(id, cb)

Get the details of a specific device.
Parameters:
Name Type Description
id String Identity of the device being queried. String as UUID.
cb NodeStore~deviceCallback Callback with the device result.
Implements:
Source:

getDevices(skipopt, limitopt, cb)

Get all the devices available at this node.
Parameters:
Name Type Attributes Description
skip number <optional>
Number of devices to skip before starting the listing.
limit number <optional>
Limit the number of values returned.
cb NodeStore~devicesCallback Callback providing the list of devlices.
Implements:
Source:

getSelf(cb)

Retrieve details of the node as the result of the callback.
Parameters:
Name Type Description
cb NodeStore~nodeCallback Callback with the node result.
Implements:
Source: