version 1.30, 2003/10/22 14:26:12
|
version 1.31, 2003/10/22 20:58:53
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
PEGASUS_USING_STD; |
|
|
class op_counter | class op_counter |
{ | { |
public: | public: |
|
|
| |
void ProviderFacade::enableIndications(IndicationResponseHandler & handler) | void ProviderFacade::enableIndications(IndicationResponseHandler & handler) |
{ | { |
_current_operations++; |
_indications_enabled = true; |
op_counter ind_ops(&_current_ind_operations); |
op_counter ops(&_current_operations); |
| |
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
|
|
| |
void ProviderFacade::disableIndications(void) | void ProviderFacade::disableIndications(void) |
{ | { |
|
op_counter 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; |
} | } |
| |
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); |
|
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); |
|
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
// forward request | // forward request |
|
|
const Array<CIMObjectPath> & classNames) | const Array<CIMObjectPath> & classNames) |
{ | { |
op_counter ops(&_current_operations); | op_counter ops(&_current_operations); |
op_counter ind_ops(&_current_ind_operations); |
|
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
// forward request | // forward request |