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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2