version 1.2, 2003/10/14 22:31:46
|
version 1.3, 2003/10/16 23:15:47
|
|
|
// Sushma Fernandes, Hewlett-Packard Company | // Sushma Fernandes, Hewlett-Packard Company |
// (sushma_fernandes@hp.com) | // (sushma_fernandes@hp.com) |
// Mike Day, IBM (mdday@us.ibm.com) | // Mike Day, IBM (mdday@us.ibm.com) |
|
// Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
#include <Pegasus/Common/InternalException.h> | #include <Pegasus/Common/InternalException.h> |
#include <Pegasus/Common/Destroyer.h> | #include <Pegasus/Common/Destroyer.h> |
#include <Pegasus/Common/MessageLoader.h> //l10n |
#include <Pegasus/Common/MessageLoader.h> |
| |
#include <Pegasus/ProviderManager2/Default/SimpleResponseHandler.h> | #include <Pegasus/ProviderManager2/Default/SimpleResponseHandler.h> |
| |
|
|
void ProviderFacade::enableIndications(IndicationResponseHandler & handler) | void ProviderFacade::enableIndications(IndicationResponseHandler & handler) |
{ | { |
_current_operations++; | _current_operations++; |
|
op_counter ind_ops(&_current_ind_operations); |
| |
CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); | CIMIndicationProvider * provider = getInterface<CIMIndicationProvider>(_provider); |
| |
|
|
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 |
|
|
classNames); | classNames); |
} | } |
| |
// CIMIndicationConsumer interface |
// CIMIndicationConsumerProvider interface |
void ProviderFacade::consumeIndication( | void ProviderFacade::consumeIndication( |
const OperationContext & context, | const OperationContext & context, |
const String & url, |
const String & destinationPath, |
const CIMInstance& indicationInstance) |
const CIMInstance & indication) |
{ | { |
/* |
|
op_counter ops(&_current_operations); | op_counter ops(&_current_operations); |
| |
CIMIndicationConsumer * provider = getInterface<CIMIndicationConsumer>(_provider); |
CIMIndicationConsumerProvider * provider = getInterface<CIMIndicationConsumerProvider>(_provider); |
| |
// handler should be unused |
provider->consumeIndication( |
provider->handleIndication( |
|
context, | context, |
indication, |
destinationPath, |
handler); |
indication); |
*/ |
|
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |