none
COM API and NodeState Enumeration RRS feed

  • Question

  • 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.

    Tuesday, July 15, 2008 12:45 PM

Answers

  • 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
    • Marked as answer by James Wyld Wednesday, July 23, 2008 2:45 PM
    Friday, July 18, 2008 11:52 PM

All replies

  • 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
    • Marked as answer by James Wyld Wednesday, July 23, 2008 2:45 PM
    Friday, July 18, 2008 11:52 PM
  • Thanks!  That was exactly what we were after :-)
    Wednesday, July 23, 2008 2:44 PM