version 1.4, 2005/02/05 23:00:26
|
version 1.7.6.1, 2006/07/27 23:12:06
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
#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 |