version 1.1, 2004/06/26 03:24:20
|
version 1.7, 2006/05/09 19:09:36
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%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. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// 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 |
|
|
| |
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 |
moduleFileName. If no ProviderAgentContainer exists for this |
module instance and requesting user. If no appropriate |
moduleFileName, one is created in an uninitialized state. |
ProviderAgentContainer exists, one is created in an uninitialized state. |
*/ | */ |
ProviderAgentContainer* _lookupProviderAgent(const String& moduleFileName); |
ProviderAgentContainer* _lookupProviderAgent( |
|
const CIMInstance& providerModule, |
|
CIMRequestMessage* request); |
|
|
|
/** |
|
Return an array of pointers to ProviderAgentContainers for the |
|
specified moduleName. |
|
*/ |
|
Array<ProviderAgentContainer*> _lookupProviderAgents( |
|
const String& moduleName); |
| |
/** | /** |
Send the specified CIMRequestMessage to all initialized Provider | Send the specified CIMRequestMessage to all initialized Provider |
|
|
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 |