version 1.5, 2006/01/30 16:18:01
|
version 1.7.6.1, 2006/07/27 23:12:06
|
|
|
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/HashTable.h> | #include <Pegasus/Common/HashTable.h> |
#include <Pegasus/Common/CIMMessage.h> | #include <Pegasus/Common/CIMMessage.h> |
#include <Pegasus/Common/IPC.h> |
|
| |
#include <Pegasus/ProviderManager2/ProviderManagerRouter.h> | #include <Pegasus/ProviderManager2/ProviderManagerRouter.h> |
#include <Pegasus/ProviderManager2/ProviderManager.h> | #include <Pegasus/ProviderManager2/ProviderManager.h> |
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
typedef void (*PEGASUS_PROVIDERMODULEFAIL_CALLBACK_T)(const String &, |
|
const String &, Uint16); |
|
|
class ProviderAgentContainer; | class ProviderAgentContainer; |
| |
typedef HashTable<String, ProviderAgentContainer*, EqualFunc<String>, | typedef HashTable<String, ProviderAgentContainer*, EqualFunc<String>, |
|
|
: public ProviderManagerRouter | : public ProviderManagerRouter |
{ | { |
public: | public: |
OOPProviderManagerRouter(PEGASUS_INDICATION_CALLBACK indicationCallback); |
OOPProviderManagerRouter( |
|
PEGASUS_INDICATION_CALLBACK_T indicationCallback, |
|
PEGASUS_RESPONSE_CHUNK_CALLBACK_T responseChunkCallback, |
|
PEGASUS_PROVIDERMODULEFAIL_CALLBACK_T providerModuleFailCallback); |
| |
virtual ~OOPProviderManagerRouter(); | virtual ~OOPProviderManagerRouter(); |
| |
|
|
| |
/** | /** |
Return a pointer to the ProviderAgentContainer for the specified | Return a pointer to the ProviderAgentContainer for the specified |
moduleName and userName. If no ProviderAgentContainer exists for |
module instance and requesting user. If no appropriate |
this moduleName/userName pair, one is created in an uninitialized |
ProviderAgentContainer exists, one is created in an uninitialized state. |
state. |
|
*/ | */ |
ProviderAgentContainer* _lookupProviderAgent( | ProviderAgentContainer* _lookupProviderAgent( |
const String& moduleName, |
const CIMInstance& providerModule, |
const String& userName); |
CIMRequestMessage* request); |
| |
/** | /** |
Return an array of pointers to ProviderAgentContainers for the | Return an array of pointers to ProviderAgentContainers for the |
|
|
Callback function to which all generated indications are sent for | Callback function to which all generated indications are sent for |
processing. | processing. |
*/ | */ |
PEGASUS_INDICATION_CALLBACK _indicationCallback; |
PEGASUS_INDICATION_CALLBACK_T _indicationCallback; |
|
|
|
/** |
|
Callback function to which all response chunks are sent for processing. |
|
*/ |
|
PEGASUS_RESPONSE_CHUNK_CALLBACK_T _responseChunkCallback; |
|
|
|
/** |
|
Callback function to be called upon detection of failure of a |
|
provider module. |
|
*/ |
|
PEGASUS_PROVIDERMODULEFAIL_CALLBACK_T _providerModuleFailCallback; |
| |
/** | /** |
The _providerAgentTable contains a ProviderAgentContainer entry for | The _providerAgentTable contains a ProviderAgentContainer entry for |