version 1.22, 2004/06/29 17:24:02
|
version 1.35, 2006/06/19 20:47:39
|
|
|
//%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 |
|
|
| |
class PEGASUS_PPM_LINKAGE ProviderManagerService : public MessageQueueService | class PEGASUS_PPM_LINKAGE ProviderManagerService : public MessageQueueService |
{ | { |
friend class CMPIProviderManager; |
|
public: | public: |
static ProviderManagerService* providerManagerService; |
ProviderManagerService( |
|
ProviderRegistrationManager* providerRegistrationManager, |
ProviderManagerService(void); |
CIMRepository* repository, |
ProviderManagerService(ProviderRegistrationManager * providerRegistrationManager, |
ProviderManager* (*createDefaultProviderManagerCallback)()); |
CIMRepository * repository); |
|
|
|
| |
virtual ~ProviderManagerService(void); |
virtual ~ProviderManagerService(); |
| |
// temp |
|
void unloadIdleProviders(); | void unloadIdleProviders(); |
| |
static void indicationCallback(CIMProcessIndicationRequestMessage* request); | static void indicationCallback(CIMProcessIndicationRequestMessage* request); |
|
static void responseChunkCallback( |
|
CIMRequestMessage* request, CIMResponseMessage* response); |
|
|
|
/** |
|
Callback function to be called upon detection of failure of a |
|
provider module. |
|
*/ |
|
static void providerModuleFailureCallback (const String & moduleName, |
|
const String & userName, Uint16); |
|
|
|
private: |
|
ProviderManagerService(); |
| |
protected: |
|
virtual Boolean messageOK(const Message * message); | virtual Boolean messageOK(const Message * message); |
virtual void handleEnqueue(void); |
virtual void handleEnqueue(); |
virtual void handleEnqueue(Message * message); | virtual void handleEnqueue(Message * message); |
| |
virtual void _handle_async_request(AsyncRequest * request); | virtual void _handle_async_request(AsyncRequest * request); |
| |
CIMRepository* _repository; |
|
|
|
private: |
|
//static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleServiceOperation(void * arg) throw(); |
|
|
|
//void handleStartService() thorw(); |
|
//void handleStopService() thorw(); |
|
//void handlePauseService() thorw(); |
|
//void handleResumeService() thorw(); |
|
|
|
static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleCimOperation( | static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleCimOperation( |
void * arg) throw(); |
void* arg) ; |
| |
void handleCimRequest(AsyncOpNode *op, Message* message); | void handleCimRequest(AsyncOpNode *op, Message* message); |
| |
|
Message* _processMessage(CIMRequestMessage* request); |
|
|
static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL | static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL |
_unloadIdleProvidersHandler(void* arg) throw(); | _unloadIdleProvidersHandler(void* arg) throw(); |
| |
ProviderIdContainer _getProviderIdContainer( |
|
const CIMRequestMessage* message); |
|
|
|
void _updateProviderModuleStatus( | void _updateProviderModuleStatus( |
CIMInstance& providerModule, | CIMInstance& providerModule, |
Uint16 fromStatus, |
const Array<Uint16>& removeStatus, |
Uint16 toStatus); |
const Array<Uint16>& appendStatus); |
|
|
|
static ProviderManagerService* providerManagerService; |
|
|
|
CIMRepository* _repository; |
| |
private: |
|
SafeQueue<AsyncOpNode *> _incomingQueue; | SafeQueue<AsyncOpNode *> _incomingQueue; |
SafeQueue<AsyncOpNode *> _outgoingQueue; | SafeQueue<AsyncOpNode *> _outgoingQueue; |
| |
ProviderManagerRouter* _providerManagerRouter; |
ProviderManagerRouter* _basicProviderManagerRouter; |
|
ProviderManagerRouter* _oopProviderManagerRouter; |
| |
ProviderRegistrationManager* _providerRegistrationManager; | ProviderRegistrationManager* _providerRegistrationManager; |
| |
|
|
unloading idle providers at the same time. | unloading idle providers at the same time. |
*/ | */ |
AtomicInt _unloadIdleProvidersBusy; | AtomicInt _unloadIdleProvidersBusy; |
|
|
|
|
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |