Reply to Message

View discussion in a popup

Replying to:
dokushinno
Contributor
Contributor

Thanks Diwakar.

I would be doing something like this then... :smileyconfused:

HierarchyManagerImpl hm = HierarchyManagerImpl.getInstance();

List hierarchiesList = hm.getAllHierarchies(cbClient);

//loop hierarchiesList

    // HierarchyEntitiesType entityType = hierarchiesList [n].getEntities()

   // entityType.getEntities()

How do I determine if this "entity" is a "vCenter Server entity" and not "vCenter Chargeback Manager entity"?

Im quite confused on the following classes and please confirm if getting the steps for getting the attribute value is correct:

  • HierarchyType
  • HierarchyEntitiesType
    • this has a getEntity() which returns a list of:
  • HierarchyEntityType
    • this has a getAttributes() which returns
  • EntityAttributesType
    • this has has a getAttribute() which returns
  • EntityAttributeType
    • does invoking getValue() return 101 for Chargeback Manager entity or 0 for vCenter Server entity? (based on cbm_users_guide_2_0_0.pdf, Table 4-1. p57)

Thanks heaps for any help. :smileyconfused:

Reply
0 Kudos