version 1.102.4.1, 2008/07/01 15:18:18
|
version 1.107, 2008/08/29 09:22:32
|
|
|
// Name and ProviderModuleName properties must be set | // Name and ProviderModuleName properties must be set |
// | // |
if (instanceObject.findProperty | if (instanceObject.findProperty |
(_PROPERTY_PROVIDER_NAME) == PEG_NOT_FOUND) |
(PEGASUS_PROPERTYNAME_NAME) == PEG_NOT_FOUND) |
{ | { |
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_INVALID_PARAMETER, | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_INVALID_PARAMETER, |
MessageLoaderParms( | MessageLoaderParms( |
|
|
// | // |
// get provider name from reference | // get provider name from reference |
// | // |
if(keys[j].getName().equal (_PROPERTY_PROVIDER_NAME)) |
if(keys[j].getName().equal (PEGASUS_PROPERTYNAME_NAME)) |
{ | { |
_providerName = keys[j].getValue(); | _providerName = keys[j].getValue(); |
} | } |
|
|
{ | { |
// get provider name | // get provider name |
String providerName; | String providerName; |
Uint32 pos = instance.findProperty(_PROPERTY_PROVIDER_NAME); |
Uint32 pos = instance.findProperty(PEGASUS_PROPERTYNAME_NAME); |
if (pos != PEG_NOT_FOUND) | if (pos != PEG_NOT_FOUND) |
{ | { |
instance.getProperty(pos).getValue().get(providerName); | instance.getProperty(pos).getValue().get(providerName); |
|
|
{ | { |
// get provider name | // get provider name |
String providerName; | String providerName; |
Uint32 pos = instance.findProperty(CIMName (_PROPERTY_PROVIDER_NAME)); |
Uint32 pos = instance.findProperty(PEGASUS_PROPERTYNAME_NAME); |
if (pos != PEG_NOT_FOUND) | if (pos != PEG_NOT_FOUND) |
{ | { |
instance.getProperty(pos).getValue().get(providerName); | instance.getProperty(pos).getValue().get(providerName); |
|
|
capInstance = _providerRegistrationManager->getInstance | capInstance = _providerRegistrationManager->getInstance |
(instanceNames[i]); | (instanceNames[i]); |
| |
Uint32 pos = capInstance.findProperty( |
Uint32 providerTypePos = capInstance.findProperty( |
CIMName (_PROPERTY_PROVIDERTYPE)); | CIMName (_PROPERTY_PROVIDERTYPE)); |
if (pos != PEG_NOT_FOUND) |
if (providerTypePos != PEG_NOT_FOUND) |
{ | { |
capInstance.getProperty(pos).getValue().get(providerTypes); |
capInstance.getProperty(providerTypePos).getValue().get( |
|
providerTypes); |
| |
for (Uint32 k=0; k < providerTypes.size(); k++) | for (Uint32 k=0; k < providerTypes.size(); k++) |
{ | { |
|
|
} | } |
catch(const Exception &e) | catch(const Exception &e) |
{ | { |
PEG_TRACE_STRING( |
PEG_TRACE((TRC_CONTROLPROVIDER,Tracer::LEVEL1, |
TRC_CONTROLPROVIDER, |
|
Tracer::LEVEL1, |
|
"Exception caught while invoking InteropProvider 'updateCache'" | "Exception caught while invoking InteropProvider 'updateCache'" |
" method: " + e.getMessage()); |
" method: %s",(const char*)e.getMessage().getCString())); |
} | } |
catch(...) | catch(...) |
{ | { |