version 1.51, 2003/09/10 18:36:49
|
version 1.53, 2003/09/12 18:14:55
|
|
|
ObjectPathResponseHandler & handler) | ObjectPathResponseHandler & handler) |
{ | { |
// get userName and only privileged user can execute this operation | // get userName and only privileged user can execute this operation |
String PG_ProviderModule_Name = "PG_ProviderModule"; //l10n |
|
String PG_ProviderCapabilities_Name = "PG_ProviderCapabilities"; //l10n |
|
String PG_Provider_Name = "PG_Provider"; |
|
String userName; | String userName; |
try | try |
{ | { |
|
|
if (instanceObject.findProperty(_PROPERTY_PROVIDERMODULE_NAME) == | if (instanceObject.findProperty(_PROPERTY_PROVIDERMODULE_NAME) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing Name which is required property in PG_ProviderModule class."); | //"Missing Name which is required property in PG_ProviderModule class."); |
String missing = "Name"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_NAME_IN_PG_PROVIDERMODULE", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderModule_Name)); |
"Missing Name which is required property in PG_ProviderModule class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_VENDOR) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_VENDOR) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing Vendor which is required property in PG_ProviderModule class."); | //"Missing Vendor which is required property in PG_ProviderModule class."); |
String missing = "Vendor"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_VENDOR_IN_PG_PROVIDERMODULE", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderModule_Name)); |
"Missing Vendor which is required property in PG_ProviderModule class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_VERSION) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_VERSION) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing Version which is required property in PG_ProviderModule class."); | //"Missing Version which is required property in PG_ProviderModule class."); |
String missing = "Version"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_VERSION_IN_PG_PROVIDERMODULE", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderModule_Name)); |
"Missing Version which is required property in PG_ProviderModule class.")); |
} | } |
| |
Uint32 ifcTypeIndex = | Uint32 ifcTypeIndex = |
instanceObject.findProperty(_PROPERTY_INTERFACETYPE); | instanceObject.findProperty(_PROPERTY_INTERFACETYPE); |
if (ifcTypeIndex == PEG_NOT_FOUND) | if (ifcTypeIndex == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing InterfaceType which is required property in PG_ProviderModule class."); | //"Missing InterfaceType which is required property in PG_ProviderModule class."); |
String missing = "InterfaceType"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_INTERFACETYPE_IN_PG_PROVIDERMODULE", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderModule_Name)); |
"Missing InterfaceType which is required property in PG_ProviderModul class.")); |
} | } |
String ifcTypeString; | String ifcTypeString; |
instanceObject.getProperty(ifcTypeIndex).getValue(). | instanceObject.getProperty(ifcTypeIndex).getValue(). |
|
|
| |
if(ifcTypeString != "C++Default" && ifcTypeString != "CMPI" ) | if(ifcTypeString != "C++Default" && ifcTypeString != "CMPI" ) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
//"Unsupported InterfaceType value: \"" + ifcTypeString + "\""); | //"Unsupported InterfaceType value: \"" + ifcTypeString + "\""); |
String unsupported = "InterfaceType"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.UNSUPPORTED_VALUE", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.UNSUPPORTED_INTERFACETYPE_VALUE", |
"Unsupported $0 value: \"$1\"",unsupported,ifcTypeString)); |
"Unsupported InterfaceType value: \"$0\"",ifcTypeString)); |
} | } |
| |
Uint32 ifcVersionIndex = | Uint32 ifcVersionIndex = |
instanceObject.findProperty(_PROPERTY_INTERFACEVERSION); | instanceObject.findProperty(_PROPERTY_INTERFACEVERSION); |
if (ifcVersionIndex == PEG_NOT_FOUND) | if (ifcVersionIndex == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing InterfaceVersion which is required property in PG_ProviderModule class."); | //"Missing InterfaceVersion which is required property in PG_ProviderModule class."); |
String missing = "InterfaceVersion"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_INTERFACEVERSION_IN_PG_PROVIDERMODULE", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderModule_Name)); |
"Missing InterfaceVersion which is required property in PG_ProviderModule class.")); |
} | } |
String ifcVersionString; | String ifcVersionString; |
instanceObject.getProperty(ifcVersionIndex).getValue(). | instanceObject.getProperty(ifcVersionIndex).getValue(). |
|
|
(ifcVersionString != "2.2.0") && | (ifcVersionString != "2.2.0") && |
(ifcVersionString != "2.3.0")) | (ifcVersionString != "2.3.0")) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
//"Unsupported InterfaceVersion value: \"" + ifcVersionString + | //"Unsupported InterfaceVersion value: \"" + ifcVersionString + |
// "\""); | // "\""); |
String unsupported = "InterfaceVersion"; | String unsupported = "InterfaceVersion"; |
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.UNSUPPORTED_VALUE", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.UNSUPPORTED_INTERFACEVERSION_VALUE", |
"Unsupported $0 value: \"$1\"",unsupported,ifcVersionString)); |
"Unsupported InterfaceVersion value: \"$0\"",ifcVersionString)); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_LOCATION) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_LOCATION) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing Location which is required property in PG_ProviderModule class."); | //"Missing Location which is required property in PG_ProviderModule class."); |
String missing = "Location"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_LOCATION_IN_PG_PROVIDERMODULE", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderModule_Name)); |
"Missing Location which is required property in PG_ProviderModule class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_OPERATIONALSTATUS) == | if (instanceObject.findProperty(_PROPERTY_OPERATIONALSTATUS) == |
|
|
if (instanceObject.findProperty(_PROPERTY_PROVIDERMODULENAME) == | if (instanceObject.findProperty(_PROPERTY_PROVIDERMODULENAME) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing ProviderModuleName which is required property in PG_ProviderCapabilities class."); | //"Missing ProviderModuleName which is required property in PG_ProviderCapabilities class."); |
String missing = "ProviderModuleName"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_PROVIDERMODULENAME_IN_PG_PROVIDERCAPABILITIES", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderCapabilities_Name)); |
"Missing ProviderModuleName which is required property in PG_ProviderCapabilities class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_PROVIDERNAME) == | if (instanceObject.findProperty(_PROPERTY_PROVIDERNAME) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing ProviderName which is required property in PG_ProviderCapabilities class."); | //"Missing ProviderName which is required property in PG_ProviderCapabilities class."); |
String missing = "ProviderName"; | String missing = "ProviderName"; |
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", | "ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderCapabilities_Name)); |
"Missing ProviderName which is required property in PG_ProviderCapabilities class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_CAPABILITYID) == | if (instanceObject.findProperty(_PROPERTY_CAPABILITYID) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing CapabilityID which is required property in PG_ProviderCapabilities class."); | //"Missing CapabilityID which is required property in PG_ProviderCapabilities class."); |
String missing = "CapabilityID"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSINGCAPABILITYID_IN_PG_PROVIDERCAPABILITIES", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderCapabilities_Name)); |
"Missing CapabilityID which is required property in PG_ProviderCapabilities class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_CLASSNAME) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_CLASSNAME) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing ClassName which is required property in PG_ProviderCapabilities class."); | //"Missing ClassName which is required property in PG_ProviderCapabilities class."); |
String missing = "ClassName"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_CLASSNAME_IN_PG_PROVIDERCAPABILITIES", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderCapabilities_Name)); |
"Missing ClassName which is required property in PG_ProviderCapabilities class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_NAMESPACES) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_NAMESPACES) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing Namespaces which is required property in PG_ProviderCapabilities class."); | //"Missing Namespaces which is required property in PG_ProviderCapabilities class."); |
String missing = "Namespaces"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_NAMESPACES_IN_PG_PROVIDERCAPABILITIES", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderCapabilities_Name)); |
"Missing Namespaces which is required property in PG_ProviderCapabilities class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_PROVIDERTYPE) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_PROVIDERTYPE) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing ProviderType which is required property in PG_ProviderCapabilities class."); | //"Missing ProviderType which is required property in PG_ProviderCapabilities class."); |
String missing = "ProviderType"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_PROVIDERTYPE_IN_PG_PROVIDERCAPABILITIES", |
"Missing $0 which is required property in $1 class.",missing,PG_ProviderCapabilities_Name)); |
"Missing ProviderType which is required property in PG_ProviderCapabilities class.")); |
} | } |
} | } |
else if (className.equal (PEGASUS_CLASSNAME_CONSUMERCAPABILITIES)) | else if (className.equal (PEGASUS_CLASSNAME_CONSUMERCAPABILITIES)) |
|
|
// | // |
if (instanceObject.findProperty(_PROPERTY_PROVIDER_NAME) == PEG_NOT_FOUND) | if (instanceObject.findProperty(_PROPERTY_PROVIDER_NAME) == PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing Name which is required property in PG_Provider class."); | //"Missing Name which is required property in PG_Provider class."); |
String missing = "Name"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", | "ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"Missing $0 which is required property in $1 class.",missing,PG_Provider_Name)); |
"Missing Name which is required property in PG_Provider class.")); |
} | } |
| |
if (instanceObject.findProperty(_PROPERTY_PROVIDERMODULENAME) == | if (instanceObject.findProperty(_PROPERTY_PROVIDERMODULENAME) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//"Missing ProviderModuleName which is required property in PG_Provider class."); | //"Missing ProviderModuleName which is required property in PG_Provider class."); |
String missing = "ProviderModuleName"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_REQUIRED_PROPERTY", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.MISSING_PROVIDERMODULENAME_IN_PG_PROVIDER", |
"Missing $0 which is required property in $1 class.",missing,PG_Provider_Name)); |
"Missing ProviderModuleName which is required property in PG_Provider class.")); |
} | } |
} | } |
| |
|
|
// if _PROPERTY_PROVIDERMODULENAME key not found | // if _PROPERTY_PROVIDERMODULENAME key not found |
if( !moduleFound) | if( !moduleFound) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
//"key ProviderModuleName was not found"); | //"key ProviderModuleName was not found"); |
String sub = "ProviderModuleName"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.KEY_NOT_FOUND", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.PROVIDERMODULENAME_KEY_NOT_FOUND", |
"key $0 was not found",sub)); |
"key ProviderModuleName was not found")); |
} | } |
| |
// | // |
|
|
if (ret_value == -2) | if (ret_value == -2) |
{ | { |
//L10N TODO | //L10N TODO |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
// throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
"disable the provider failed: Provider is busy."); |
//"disable the provider failed: Provider is busy."); |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
|
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.DISABLE_PROVIDER_FAILED_PROVIDER_BUSY", |
|
"disable the provider failed: Provider is busy.")); |
} | } |
} | } |
catch(CIMException&) | catch(CIMException&) |
|
|
// if _PROPERTY_PROVIDERMODULE_NAME key not found | // if _PROPERTY_PROVIDERMODULE_NAME key not found |
if( !moduleFound) | if( !moduleFound) |
{ | { |
//l10n |
//l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
//"key Name was not found"); | //"key Name was not found"); |
String sub = "Name"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.KEY_NOT_FOUND", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.NAME_KEY_NOT_FOUND", |
"key $0 was not found",sub)); |
"key Name was not found")); |
} | } |
| |
// | // |
|
|
if (ret_value == -2) | if (ret_value == -2) |
{ | { |
//L10N TODO | //L10N TODO |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
"disable the provider module failed: Provider is busy."); |
// "disable the provider module failed: Provider is busy."); |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms( |
|
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.DISABLE_PROVIDER_MODULE_FAILED_PROVIDER_BUSY", |
|
"disable the provider module failed: Provider is busy.")); |
} | } |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
|
|
// if _PROPERTY_PROVIDERMODULE_NAME key not found | // if _PROPERTY_PROVIDERMODULE_NAME key not found |
if( !moduleFound) | if( !moduleFound) |
{ | { |
//l10n |
//l10n 485 |
String sub = "Name"; |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,MessageLoaderParms( |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.KEY_NOT_FOUND", |
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.NAME_KEY_NOT_FOUND", |
"key $0 was not found",sub)); |
"key Name was not found")); |
} | } |
| |
handler.processing(); | handler.processing(); |