version 1.18, 2004/10/17 20:40:03
|
version 1.20.12.1, 2006/02/10 16:11:59
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%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, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// 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.; |
|
// 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/Pair.h> | #include <Pegasus/Common/Pair.h> |
#include <Pegasus/Common/Triad.h> | #include <Pegasus/Common/Triad.h> |
#include <Pegasus/Common/Thread.h> | #include <Pegasus/Common/Thread.h> |
|
#include <Pegasus/Common/IPC.h> |
#include <Pegasus/Common/HashTable.h> | #include <Pegasus/Common/HashTable.h> |
#include <Pegasus/Common/OperationContextInternal.h> | #include <Pegasus/Common/OperationContextInternal.h> |
| |
|
|
Message * handleCreateSubscriptionRequest(const Message * message); | Message * handleCreateSubscriptionRequest(const Message * message); |
Message * handleModifySubscriptionRequest(const Message * message); | Message * handleModifySubscriptionRequest(const Message * message); |
Message * handleDeleteSubscriptionRequest(const Message * message); | Message * handleDeleteSubscriptionRequest(const Message * message); |
Message * handleEnableIndicationsRequest(const Message * message); |
|
Message * handleDisableIndicationsRequest(const Message * message); |
|
| |
Message * handleExportIndicationRequest(const Message * message); | Message * handleExportIndicationRequest(const Message * message); |
| |
|
|
Message * handleEnableModuleRequest(const Message * message); | Message * handleEnableModuleRequest(const Message * message); |
Message * handleStopAllProvidersRequest(const Message * message); | Message * handleStopAllProvidersRequest(const Message * message); |
Message * handleInitializeProviderRequest(const Message * message); | Message * handleInitializeProviderRequest(const Message * message); |
|
Message * handleSubscriptionInitCompleteRequest |
|
(const Message * message); |
| |
void _insertEntry(const Provider & provider, const EnableIndicationsResponseHandler *handler); |
void _insertEntry( |
|
const Provider & provider, |
|
EnableIndicationsResponseHandler* handler); |
EnableIndicationsResponseHandler * _removeEntry(const String & key); | EnableIndicationsResponseHandler * _removeEntry(const String & key); |
| |
String _generateKey(const Provider & provider); | String _generateKey(const Provider & provider); |
|
|
| |
protected: | protected: |
IndicationResponseTable _responseTable; | IndicationResponseTable _responseTable; |
|
Mutex _responseTableMutex; |
LocalProviderManager providerManager; | LocalProviderManager providerManager; |
|
|
|
private: |
|
|
|
/** |
|
Calls the provider's enableIndications() method. |
|
If successful, the indications response handler is stored in the |
|
_responseTable. |
|
|
|
@param req_provider CIMInstance for the provider to be enabled |
|
@param _indicationCallback PEGASUS_INDICATION_CALLBACK for indications |
|
@param ph OpProviderHolder for the provider to be enabled |
|
|
|
Note that since an exception thrown by the provider's |
|
enableIndications() method is considered a provider error, any such |
|
exception is ignored, and no exceptions are thrown by this method. |
|
*/ |
|
void _callEnableIndications |
|
(CIMInstance & req_provider, |
|
PEGASUS_INDICATION_CALLBACK _indicationCallback, |
|
OpProviderHolder & ph); |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |