version 1.58, 2003/11/04 19:00:59
|
version 1.64, 2004/04/16 22:17:41
|
|
|
| |
try | try |
{ | { |
instance = _providerRegistrationManager->getInstance(instanceReference); |
instance = _providerRegistrationManager->getInstance(instanceReference, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
{ | { |
|
|
| |
try | try |
{ | { |
enumInstances = _providerRegistrationManager->enumerateInstances(classReference); |
enumInstances = |
|
_providerRegistrationManager->enumerateInstances(classReference, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
{ | { |
|
|
try | try |
{ | { |
_providerRegistrationManager->modifyInstance(instanceReference, | _providerRegistrationManager->modifyInstance(instanceReference, |
instanceObject, includeQualifiers, propertyArray); |
instanceObject, |
|
includeQualifiers, |
|
propertyArray); |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
{ | { |
|
|
instanceObject.getProperty(ifcTypeIndex).getValue(). | instanceObject.getProperty(ifcTypeIndex).getValue(). |
get(ifcTypeString); | get(ifcTypeString); |
| |
if(ifcTypeString != "C++Default" && ifcTypeString != "CMPI" ) |
if (ifcTypeString != "C++Default" |
|
#ifdef ENABLE_CMPI_PROVIDER_MANAGER |
|
&& ifcTypeString != "CMPI" |
|
#endif |
|
) |
{ | { |
//l10n 485 | //l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
|
|
String ifcVersionString; | String ifcVersionString; |
instanceObject.getProperty(ifcVersionIndex).getValue(). | instanceObject.getProperty(ifcVersionIndex).getValue(). |
get(ifcVersionString); | get(ifcVersionString); |
if ((ifcVersionString != "2.1.0") && |
if ( |
(ifcVersionString != "2.2.0") && |
#ifdef ENABLE_CMPI_PROVIDER_MANAGER |
(ifcVersionString != "2.3.0")) |
(ifcTypeString == "CMPI" && |
|
ifcVersionString != "2.0.0") || |
|
#endif |
|
(ifcTypeString == "C++Default" && |
|
ifcVersionString != "2.1.0" && |
|
ifcVersionString != "2.2.0" && |
|
ifcVersionString != "2.3.0")) |
{ | { |
//l10n 485 | //l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
|
|
if (enabled) | if (enabled) |
{ | { |
// | // |
// if the module is enabled, need to send enable message to |
// Since module is enabled, need get updated module instance |
|
// |
|
CIMInstance UpdatedModuleInstance = |
|
_providerRegistrationManager->getInstance(moduleRef); |
|
|
|
// |
|
// The module is enabled, need to send enable message to |
// subscription service if the provider is an indication provider | // subscription service if the provider is an indication provider |
// | // |
| |
|
|
// | // |
if (capInstances.size() != 0) | if (capInstances.size() != 0) |
{ | { |
_sendEnableMessageToSubscription(mInstance, |
_sendEnableMessageToSubscription(UpdatedModuleInstance, |
pInstance, | pInstance, |
capInstances, | capInstances, |
al); | al); |
|
|
enable_req, | enable_req, |
_queueId); | _queueId); |
| |
if( false == _controller->ClientSendForget( |
AsyncReply * asyncReply = |
*_client_handle, |
_controller->ClientSendWait(*_client_handle, |
_queueId, | _queueId, |
asyncRequest)) |
asyncRequest); |
|
|
|
CIMNotifyProviderEnableResponseMessage * response = |
|
reinterpret_cast<CIMNotifyProviderEnableResponseMessage *>( |
|
(static_cast<AsyncLegacyOperationResult *>(asyncReply))->get_result()); |
|
|
|
if (response->cimException.getCode() != CIM_ERR_SUCCESS) |
{ | { |
|
CIMException e = response->cimException; |
delete asyncRequest; | delete asyncRequest; |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_FOUND, String::EMPTY); |
delete asyncReply; |
|
delete response; |
|
throw (e); |
} | } |
| |
|
delete asyncRequest; |
|
delete asyncReply; |
|
delete response; |
} | } |
} | } |
| |