COM API and NodeState Enumeration
-
15. července 2008 12:45
We are currently looking at working with the COM API to retrieve some information on a node, based on its NodeGroup membership and online/offline state.
At present, we have been able to successfully gather the group membership through the API, and we are able to access the status as well, however the NodeState Enumeration values in RC1 do not seem to match the documentation.
According to the current documentation (SDK Help file), nodes should return a NodeState of 0, 1 or 2. We are seeing NodeState return values of up to 4.
We are hoping to find out what the current Enumeration values map to, and what we should be expecting to see here.
Any help would be appreciated.
Všechny reakce
-
18. července 2008 23:52
This appears to be a doc error. The correct enum values are:
enum __declspec(uuid("534f6fec-a629-40c8-8ac0-4beb0667b305")) NodeState { NodeState_Offline = 1, NodeState_Draining = 2, NodeState_Online = 4, NodeState_All = 7 };
-Josh- Označen jako odpověď James Wyld 23. července 2008 14:45
-
23. července 2008 14:44Thanks! That was exactly what we were after :-)