(file) Return to ProviderManagerService.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager

  1 chip  1.1 //%//-*-c++-*-//////////////////////////////////////////////////////////////////
  2           //
  3           // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM
  4           //
  5           // Permission is hereby granted, free of charge, to any person obtaining a copy
  6           // of this software and associated documentation files (the "Software"), to
  7           // deal in the Software without restriction, including without limitation the
  8           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  9           // sell copies of the Software, and to permit persons to whom the Software is
 10           // furnished to do so, subject to the following conditions:
 11           //
 12           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 13           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 14           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 15           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 16           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 17           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 18           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 19           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 20           //
 21           //==============================================================================
 22 chip  1.1 //
 23           // Author: Chip Vincent (cvincent@us.ibm.com)
 24           //
 25           // Modified By:
 26           //              Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
 27           //              Yi Zhou, Hewlett-Packard Company(yi_zhou@hp.com)
 28           //              Jenny Yu, Hewlett-Packard Company (jenny_yu@hp.com)
 29           //              Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 30           //
 31           //%/////////////////////////////////////////////////////////////////////////////
 32           
 33           #ifndef Pegasus_ProviderManagerService_h
 34           #define Pegasus_ProviderManagerService_h
 35           
 36           #include <Pegasus/Common/Config.h>
 37 chip  1.3 #include <Pegasus/Common/Pair.h>
 38 kumpf 1.7 #include <Pegasus/Common/CIMObjectPath.h>
 39 chip  1.1 #include <Pegasus/Common/MessageQueueService.h>
 40 chip  1.3 #include <Pegasus/Common/Thread.h>
 41 chip  1.6 
 42           #include <Pegasus/ProviderManager/SafeQueue.h>
 43 chip  1.1 
 44           PEGASUS_NAMESPACE_BEGIN
 45           
 46 chip  1.3 class ProviderManager;
 47 kumpf 1.9 class ProviderRegistrationManager;
 48 chip  1.3 
 49 chip  1.1 class PEGASUS_SERVER_LINKAGE ProviderManagerService : public MessageQueueService
 50           {
 51 chip  1.3 public:
 52 chip  1.10     ProviderManagerService(ProviderRegistrationManager * providerRegistrationManager);
 53 chip  1.8      virtual ~ProviderManagerService(void);
 54 chip  1.3  
 55            protected:
 56 chip  1.8      virtual Boolean messageOK(const Message * message);
 57                virtual void handleEnqueue(void);
 58                virtual void handleEnqueue(Message * message);
 59            
 60                virtual void _handle_async_request(AsyncRequest * request);
 61 chip  1.3  
 62            protected:
 63 chip  1.14     virtual Pair<String, String> _lookupProviderForClass(const CIMObjectPath & objectPath);
 64 chip  1.3  
 65 sage  1.17     virtual void _lookupProviderForAssocClass(
 66                    const CIMObjectPath & objectPath, const String& assocClassName,
 67                    const String& resultClassName,
 68                    Array<String>& Locations, Array<String>& providerNames);
 69            
 70 chip  1.8  protected:
 71                static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleServiceOperation(void * arg) throw();
 72 chip  1.1  
 73 chip  1.8      //void handleStartService();
 74                //void handleStopService();
 75                //void handlePauseService();
 76                //void handleResumeService();
 77            
 78                static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleCimOperation(void * arg) throw();
 79            
 80 chip  1.13     //void handleGetClassRequest(const Message * message) throw();
 81                //void handleEnumerateClassesRequest(const Message * message) throw();
 82                //void handleEnumerateClassNamesRequest(const Message * message) throw();
 83                //void handleCreateClassRequest(const Message * message) throw();
 84                //void handleModifyClassRequest(const Message * message) throw();
 85                //void handleDeleteClassRequest(const Message * message) throw();
 86            
 87 mday  1.19     void handleGetInstanceRequest(AsyncOpNode *op, const Message *message) throw();
 88                void handleEnumerateInstancesRequest(AsyncOpNode *op, const Message *message) throw();
 89                void handleEnumerateInstanceNamesRequest(AsyncOpNode *op, const Message *message) throw();
 90                void handleCreateInstanceRequest(AsyncOpNode *op, const Message *message) throw();
 91                void handleModifyInstanceRequest(AsyncOpNode *op, const Message *message) throw();
 92                void handleDeleteInstanceRequest(AsyncOpNode *op, const Message *message) throw();
 93            
 94                void handleExecuteQueryRequest(AsyncOpNode *op, const Message *message) throw();
 95            
 96                void handleAssociatorsRequest(AsyncOpNode *op, const Message *message) throw();
 97                void handleAssociatorNamesRequest(AsyncOpNode *op, const Message *message) throw();
 98                void handleReferencesRequest(AsyncOpNode *op, const Message *message) throw();
 99                void handleReferenceNamesRequest(AsyncOpNode *op, const Message *message) throw();
100            
101                void handleGetPropertyRequest(AsyncOpNode *op, const Message *message) throw();
102                void handleSetPropertyRequest(AsyncOpNode *op, const Message *message) throw();
103            
104                void handleInvokeMethodRequest(AsyncOpNode *op, const Message *message) throw();
105            
106                void handleCreateSubscriptionRequest(AsyncOpNode *op, const Message *message) throw();
107                void handleModifySubscriptionRequest(AsyncOpNode *op, const Message *message) throw();
108 mday  1.19     void handleDeleteSubscriptionRequest(AsyncOpNode *op, const Message *message) throw();
109                void handleEnableIndicationsRequest(AsyncOpNode *op, const Message *message) throw();
110                void handleDisableIndicationsRequest(AsyncOpNode *op, const Message *message) throw();
111 chip  1.20 
112 mday  1.19     void handleDisableModuleRequest(AsyncOpNode *op, const Message *message) throw();
113                void handleEnableModuleRequest(AsyncOpNode *op, const Message *message) throw();
114 chip  1.12 
115 chip  1.3  protected:
116 chip  1.8      ThreadPool _threadPool;
117            
118 mday  1.19     SafeQueue<AsyncOpNode *> _incomingQueue;
119 chip  1.13     //SafeQueue<Message *> _outgoingQueue;
120 chip  1.1  
121 chip  1.11     ProviderRegistrationManager * _providerRegistrationManager;
122 chip  1.14 
123 chip  1.1  };
124            
125            PEGASUS_NAMESPACE_END
126            
127            #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2