ZCOM Tables and Data Structures
Node Entries Table
FLAGS - Node status and internal flags
This
| FLAGS.event - | Set to 1 if there is at least one application that | |||
|
| wants to be notified of a status change for the node. | |||
| FLAGS.valid - | Set to 1 if this node entry in the table is valid; that | |||
|
| is, currently defined and in use. |
| ||
| FLAGS.status | Set to 1 if this node is currently UP. The status bit | |||
| - | indicates whether a remote node is usable. If this | |||
|
| bit is not set, the LDM will reject all requests to | |||
|
| that node with a ZENDOWN | |||
|
| node, the status bit indicates that the ZNODE | |||
|
| daemon is running properly. |
| ||
| FLAGS.local - | Set to 1 if this node entry in the table represents | |||
|
| the local node. |
|
| |
| STATS - Statistics for this node |
|
| ||
| This field is a data structure that contains some statistics on the data | ||||
| traffic for this node. The layout of this structure is shown in Table | ||||
Table | STATS Data Structure |
|
| ||
|
|
|
|
| |
Field Name | Field Description | Field Type | Size | ||
(Bytes) | |||||
|
|
|
| ||
|
|
|
| ||
icount | Number of incoming messages | uns.int | 4 | ||
|
|
|
| ||
ibytes | Number of incoming bytes | uns.int | 4 | ||
|
|
|
| ||
ocount | Number of outgoing messages | uns.int | 4 | ||
|
|
|
| ||
obytes | Number of outgoing bytes | uns.int | 4 | ||
|
|
|
|
|
NDSHZRVRS - Pointer to a list of receivers for node status events.
This field contains a pointer to a linked list of applications to be notified whenever this node changes state. Whenever this node changes state from
56 | Chapter 3 |