version 1.3, 2003/10/16 23:07:55
|
version 1.7.2.1, 2004/03/02 21:34:42
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2003//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000 - 2003 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// 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.; |
|
// IBM Corp.; EMC 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 |
|
|
// Carol Ann Krug Graves, Hewlett-Packard Company | // Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
// Mike Day, IBM (mdday@us.ibm.com) | // Mike Day, IBM (mdday@us.ibm.com) |
|
// Adrian Schuur, IBM (schuur@de.ibm.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
#include <Pegasus/Common/Pair.h> | #include <Pegasus/Common/Pair.h> |
#include <Pegasus/Common/MessageQueueService.h> | #include <Pegasus/Common/MessageQueueService.h> |
|
#include <Pegasus/Repository/CIMRepository.h> |
| |
#include <Pegasus/ProviderManager2/ProviderManagerModule.h> |
|
#include <Pegasus/ProviderManager2/ProviderManager.h> |
|
#include <Pegasus/ProviderManager2/SafeQueue.h> | #include <Pegasus/ProviderManager2/SafeQueue.h> |
| |
#include <Pegasus/Server/Linkage.h> |
#include <Pegasus/ProviderManager2/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class PEGASUS_SERVER_LINKAGE ProviderManagerService : public MessageQueueService |
class ProviderRegistrationManager; |
|
class ProviderManager; |
|
|
|
class PEGASUS_PPM_LINKAGE ProviderManagerService : public MessageQueueService |
{ | { |
|
friend class CMPIProviderManager; |
public: | public: |
|
static ProviderManagerService* providerManagerService; |
|
|
ProviderManagerService(void); | ProviderManagerService(void); |
// temp |
ProviderManagerService(ProviderRegistrationManager * providerRegistrationManager, |
ProviderManagerService(ProviderRegistrationManager * providerRegistrationManager); |
CIMRepository * repository); |
|
|
| |
virtual ~ProviderManagerService(void); | virtual ~ProviderManagerService(void); |
| |
|
|
| |
virtual void _handle_async_request(AsyncRequest * request); | virtual void _handle_async_request(AsyncRequest * request); |
| |
|
static CIMRepository* _repository; |
|
|
private: | private: |
//static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleServiceOperation(void * arg) throw(); | //static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleServiceOperation(void * arg) throw(); |
| |
|
|
| |
static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleCimOperation(void * arg) throw(); | static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleCimOperation(void * arg) throw(); |
| |
|
ProviderManager *locateProviderManager(const Message *m, String &itf); |
void handleCimRequest(AsyncOpNode *op, const Message * message); | void handleCimRequest(AsyncOpNode *op, const Message * message); |
| |
private: | private: |