FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kNode_RefreshStats ( kNode  node)

Retrieves latest health statistics from the node.

The retrieved health statistics are stored internally by this object. Statistics can then be accessed using kNode_StatCount and kNode_StatAt, or with kNode_FindStat/kNode_FindStatByName.

kNode_RefreshStats should be avoided in performance-sensitive contexts. While sometimes convenient (e.g., integration testing), kNode_RefreshStats is considerably less efficient than standard health support methods (i.e., kSystem_SetHealthHandler, kSystem_ReceiveHealth).

Parameters
nodekNode object.
Returns
Operation status.
See also
kNode_StatCount, kNode_StatAt, kNode_FindStat, kNode_FindStatByName, kSystem_SetHealthHandler, kSystem_ReceiveHealth