version 1.4, 2003/10/22 14:26:12
|
version 1.4.6.2, 2004/03/10 14:19:29
|
|
|
#include <Pegasus/Common/Destroyer.h> | #include <Pegasus/Common/Destroyer.h> |
#include <Pegasus/Common/MessageLoader.h> | #include <Pegasus/Common/MessageLoader.h> |
| |
#include <Pegasus/ProviderManager2/Default/SimpleResponseHandler.h> |
#include <Pegasus/ProviderManager2/SimpleResponseHandler.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
handler); | handler); |
} | } |
| |
|
void ProviderFacade::executeQuery( |
|
const OperationContext & context, |
|
const CIMNamespaceName & nameSpace, |
|
const String & queryLanguage, |
|
const String & query, |
|
ObjectResponseHandler & handler) |
|
{ |
|
op_counter ops(&_current_operations); |
|
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, "CIMQueryProvider::*"); |
|
} |
|
|
|
|
void ProviderFacade::getClass( | void ProviderFacade::getClass( |
const OperationContext & context, | const OperationContext & context, |
const CIMObjectPath & classReference, | const CIMObjectPath & classReference, |
|
|
handler); | handler); |
} | } |
| |
void ProviderFacade::executeQuery( |
|
const OperationContext & context, |
|
const CIMNamespaceName & nameSpace, |
|
const String & queryLanguage, |
|
const String & query, |
|
ObjectResponseHandler & handler) |
|
{ |
|
op_counter ops(&_current_operations); |
|
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, "CIMQueryProvider::*"); |
|
} |
|
|
|
void ProviderFacade::enableIndications(IndicationResponseHandler & handler) | void ProviderFacade::enableIndications(IndicationResponseHandler & handler) |
{ | { |
_current_operations++; |
_indications_enabled = true; |
op_counter ind_ops(&_current_ind_operations); |
// _current_operations++; |
|
op_counter ind_ops(&_current_operations); |
| |
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
|
|
| |
// forward request | // forward request |
provider->disableIndications(); | provider->disableIndications(); |
_current_operations--; |
_indications_enabled = false; |
|
// _current_operations--; |
} | } |
| |
void ProviderFacade::createSubscription( | void ProviderFacade::createSubscription( |
|
|
const Uint16 repeatNotificationPolicy) | const Uint16 repeatNotificationPolicy) |
{ | { |
op_counter ops(&_current_operations); | op_counter ops(&_current_operations); |
op_counter ind_ops(&_current_ind_operations); |
// op_counter ind_ops(&_current_ind_operations); |
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
// forward request | // forward request |
|
|
const Uint16 repeatNotificationPolicy) | const Uint16 repeatNotificationPolicy) |
{ | { |
op_counter ops(&_current_operations); | op_counter ops(&_current_operations); |
op_counter ind_ops(&_current_ind_operations); |
// op_counter ind_ops(&_current_ind_operations); |
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
// forward request | // forward request |
|
|
{ | { |
op_counter ops(&_current_operations); | op_counter ops(&_current_operations); |
| |
op_counter ind_ops(&_current_ind_operations); |
// op_counter ind_ops(&_current_ind_operations); |
| |
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |