Readonly
connectedTimestamp of the connection since it has been established.
M.Karkowski
INopeConnectivityManager
Mapping for the External Dispatchers. You can use the Event, onChange, to get the latest changes. Use the "data" field, to subscribe for the latest data.
OriginalKey
= Dispatcher ID`OriginalValue
= INopeStatusInfo
ExtractedKey
= Dispatcher IDExtractedValue
= Dispatcher IDM.Karkowski
INopeStatusManager
Readonly
idThe utilized ID, which will be used for the Status Messages etc.
M.Karkowski
INopeStatusManager
Readonly
infoThe current info of this connectivity-manager.
M.Karkowski
INopeConnectivityManager
Flag, showing, that we
M.Karkowski
INopeDispatcher
Readonly
masterReturns the Status of the Master.
M.Karkowski
INopeConnectivityManager
Readonly
nowReturns the current timestamp.
M.Karkowski
INopeConnectivityManager
Options of the StatusManager.
M.Karkowski
INopeStatusManager
Flag, to show, that the System is ready
M.Karkowski
INopeStatusManager
Readonly
upThe time since the systeme is connected.
M.Karkowski
INopeConnectivityManager
Returns the Status of an other Manager.
M.Karkowski
{INopeStatusInfo}
INopeStatusManager
Adapts the Timing Options and resets the internally used Timers etc.
M.Karkowski
INopeStatusManager
Helper function, which will synchronize the Timestamp. Timestamp must be provided in UTC (https://www.timeanddate.de/stadt/info/zeitzone/utc)
M.Karkowski
INopeStatusManager
The UTC-Timestamp
Optional
delay: numberThe Delay, since the Timestamp has been generated
Generated using TypeDoc
A
connectivityManager
observes the connection to various dispatchers. This element displays all found dispatchers in the network (if there are no others only itself) in thedispatchers
property. It manages the status (dead
,slow
,warn
,alive
) of the other dispatchers.The manager uses a
bridge
ICommunicationBridge to search for new dispatchers. When a link layer connection is established via the bridge, a so-calledbonjour
message is sent. With this message alldispatchers
in a network register themselves. If such a message is sent, all other dispatchers report their current status. Thus all dispatchers are known to each other.The
connectivityManager
checks their status time-based. To do this, all ConnectivityManagerssend each other a
livemessage (a
heartbeat`) defined time interval. This can be used to monitor when a dispatcher last checked in. If this exceeds a certain time interval, that dispatcher is first classified as 'slow' and then as 'dead'. If the dispatcher does not check in after a defined time interval, it is removed.The described changes can be observed using the
dispatchers
property.In addition, the
connectivityManager
allows synchronization of timestamps with other systems (usually other dispatchers). This is useful when different systems store sensor data, for example. The timestamp is calculated with a delay, which can be determined during pings.now
property.The
connectivityManager
provides properties that simplify the collection of some information:getStatus
to get the status of a particular dispatcher.getAllHosts
: to get all hosts on the network. (It is possible that several nope runtimes are running on the same host)upTime
: since when the Connectivity Manager is running.Sometimes it is useful to define a
master
in the network with nope runtime, (e.g. time synchronization). For this the flagmaster
can be set totrue
orfalse
. This sets the master mode of theconnectivityManager
manually. If it is set tonull
, the master is determined automatically and theconnectivityManager
could be a master. The selection of the master is based on the operation time and the connection time.