version 1.15, 2008/12/16 18:56:47
|
version 1.16, 2009/12/15 11:39:37
|
|
|
hasHostandNameSpace(host, nameSpace); | hasHostandNameSpace(host, nameSpace); |
CIMClientRep * _rep; | CIMClientRep * _rep; |
_rep = getTargetCIMOM(host, port, nameSpace); | _rep = getTargetCIMOM(host, port, nameSpace); |
Array<CIMObjectPath> returnedInstanceNames = _rep->enumerateInstanceNames( |
Array<CIMObjectPath> returnedInstanceNames = |
nameSpace, |
_rep->enumerateInstanceNames(nameSpace,className).getInstanceNames(); |
className); |
|
for (Uint32 i = 0; i < returnedInstanceNames.size(); i++) | for (Uint32 i = 0; i < returnedInstanceNames.size(); i++) |
{ | { |
returnedInstanceNames[i].setHost(_getHostwithPort(host, port)); | returnedInstanceNames[i].setHost(_getHostwithPort(host, port)); |
|
|
localOnly, | localOnly, |
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList); |
propertyList).getInstances(); |
| |
// adding host, port and namespace to every Instance | // adding host, port and namespace to every Instance |
// ensures object path is full specified | // ensures object path is full specified |
|
|
Array<CIMObject> returnedCimObjects = _rep->execQuery( | Array<CIMObject> returnedCimObjects = _rep->execQuery( |
nameSpace, | nameSpace, |
queryLanguage, | queryLanguage, |
query); |
query).getObjects(); |
// check if all objects contain a full specified object path | // check if all objects contain a full specified object path |
for (Uint32 i = 0; i < returnedCimObjects.size(); i++) | for (Uint32 i = 0; i < returnedCimObjects.size(); i++) |
{ | { |
|
|
localOnly, | localOnly, |
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList); |
propertyList).getInstance(); |
/* | /* |
CIMObjectPath chgObjectPath = CIMObjectPath(returnedCimInstance.getPath()); | CIMObjectPath chgObjectPath = CIMObjectPath(returnedCimInstance.getPath()); |
| |
|
|
assocClass, | assocClass, |
resultClass, | resultClass, |
role, | role, |
resultRole); |
resultRole).getInstanceNames(); |
| |
for (Uint32 i = 0; i < retAssocNames.size(); i++) | for (Uint32 i = 0; i < retAssocNames.size(); i++) |
{ | { |
|
|
resultRole, | resultRole, |
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList); |
propertyList).getObjects(); |
for (Uint32 i = 0; i < retAssoc.size(); i++) | for (Uint32 i = 0; i < retAssoc.size(); i++) |
{ | { |
// check if all object paths are fully qualified | // check if all object paths are fully qualified |
|
|
role, | role, |
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList); |
propertyList).getObjects(); |
|
|
for (Uint32 i = 0; i < retRefer.size(); i++) | for (Uint32 i = 0; i < retRefer.size(); i++) |
{ | { |
// check if all object paths are fully qualified | // check if all object paths are fully qualified |
|
|
objectName.getNameSpace(), | objectName.getNameSpace(), |
objectName, | objectName, |
resultClass, | resultClass, |
role); |
role).getInstanceNames(); |
for (Uint32 i = 0; i < retReferNames.size(); i++) | for (Uint32 i = 0; i < retReferNames.size(); i++) |
{ | { |
try | try |