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

  1 a.dunfey 1.30.10.1 //%2006////////////////////////////////////////////////////////////////////////
  2 chip     1.1       //
  3 karl     1.25      // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4                    // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5                    // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl     1.4       // IBM Corp.; EMC Corporation, The Open Group.
  7 karl     1.25      // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8                    // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl     1.29      // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10                    // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 a.dunfey 1.30.10.1 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12                    // EMC Corporation; Symantec Corporation; The Open Group.
 13 chip     1.1       //
 14                    // Permission is hereby granted, free of charge, to any person obtaining a copy
 15                    // of this software and associated documentation files (the "Software"), to
 16                    // deal in the Software without restriction, including without limitation the
 17                    // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18                    // sell copies of the Software, and to permit persons to whom the Software is
 19                    // furnished to do so, subject to the following conditions:
 20 karl     1.25      // 
 21 chip     1.1       // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22                    // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23                    // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24                    // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25                    // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26                    // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27                    // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28                    // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29                    //
 30                    //==============================================================================
 31                    //
 32                    // Author: Chip Vincent (cvincent@us.ibm.com)
 33                    //
 34                    // Modified By:
 35                    //              Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
 36                    //              Yi Zhou, Hewlett-Packard Company(yi_zhou@hp.com)
 37                    //              Jenny Yu, Hewlett-Packard Company (jenny_yu@hp.com)
 38                    //              Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 39                    //              Carol Ann Krug Graves, Hewlett-Packard Company
 40                    //                (carolann_graves@hp.com)
 41                    //              Mike Day, IBM (mdday@us.ibm.com)
 42 schuur   1.6       //              Adrian Schuur, IBM (schuur@de.ibm.com)
 43 kumpf    1.18      //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 44 chip     1.1       //
 45                    //%/////////////////////////////////////////////////////////////////////////////
 46                    
 47                    #ifndef Pegasus_ProviderManagerService_h
 48                    #define Pegasus_ProviderManagerService_h
 49                    
 50                    #include <Pegasus/Common/Config.h>
 51                    #include <Pegasus/Common/MessageQueueService.h>
 52 kumpf    1.17      #include <Pegasus/Common/CIMMessage.h>
 53                    #include <Pegasus/Common/OperationContextInternal.h>
 54 kumpf    1.18      #include <Pegasus/Common/AutoPtr.h>
 55 schuur   1.9       #include <Pegasus/Repository/CIMRepository.h>
 56 kumpf    1.17      #include <Pegasus/Server/ProviderRegistrationManager/ProviderRegistrationManager.h>
 57 chip     1.1       
 58                    #include <Pegasus/ProviderManager2/SafeQueue.h>
 59 kumpf    1.18      #include <Pegasus/ProviderManager2/ProviderManagerRouter.h>
 60 chip     1.1       
 61 schuur   1.8       #include <Pegasus/ProviderManager2/Linkage.h>
 62 chip     1.1       
 63                    PEGASUS_NAMESPACE_BEGIN
 64 chip     1.5       
 65 schuur   1.14      #define IDLE_LIMIT 300
 66 schuur   1.13      
 67 schuur   1.8       class PEGASUS_PPM_LINKAGE ProviderManagerService : public MessageQueueService
 68 chip     1.1       {
 69                    public:
 70 kumpf    1.27          ProviderManagerService(
 71                            ProviderRegistrationManager* providerRegistrationManager,
 72                            CIMRepository* repository);
 73 schuur   1.9       
 74 kumpf    1.27          virtual ~ProviderManagerService();
 75 chip     1.1       
 76 kumpf    1.20          void unloadIdleProviders();
 77 chip     1.1       
 78 schuur   1.21          static void indicationCallback(CIMProcessIndicationRequestMessage* request);
 79 a.dunfey 1.30.10.2     static void responseChunkCallback(
 80                            CIMRequestMessage* request, CIMResponseMessage* response);
 81 schuur   1.21      
 82 kumpf    1.27      private:
 83                        ProviderManagerService();
 84 chip     1.1       
 85 kumpf    1.27          virtual Boolean messageOK(const Message* message);
 86                        virtual void handleEnqueue();
 87                        virtual void handleEnqueue(Message* message);
 88 schuur   1.9       
 89 kumpf    1.27          virtual void _handle_async_request(AsyncRequest* request);
 90 chip     1.1       
 91 kumpf    1.27          static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL handleCimOperation(
 92                            void* arg) ;
 93 chip     1.1       
 94 kumpf    1.27          void handleCimRequest(AsyncOpNode* op, Message* message);
 95 chip     1.1       
 96 kumpf    1.27          Message* _processMessage(CIMRequestMessage* request);
 97 kumpf    1.17      
 98 kumpf    1.20          static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL
 99                            _unloadIdleProvidersHandler(void* arg) throw();
100                    
101 kumpf    1.17          void _updateProviderModuleStatus(
102                            CIMInstance& providerModule,
103                            Uint16 fromStatus,
104                            Uint16 toStatus);
105 chip     1.1       
106 kumpf    1.27          static ProviderManagerService* providerManagerService;
107                    
108                        CIMRepository* _repository;
109                    
110 chip     1.1           SafeQueue<AsyncOpNode *> _incomingQueue;
111                        SafeQueue<AsyncOpNode *> _outgoingQueue;
112                    
113 kumpf    1.27          ProviderManagerRouter* _basicProviderManagerRouter;
114                        ProviderManagerRouter* _oopProviderManagerRouter;
115 chip     1.1       
116 kumpf    1.17          ProviderRegistrationManager* _providerRegistrationManager;
117 kumpf    1.18      
118                        static Uint32 _indicationServiceQueueId;
119 kumpf    1.20      
120                        /**
121                            Indicates the number of threads currently attempting to unload idle
122                            providers.  This value is used to prevent multiple threads from
123                            unloading idle providers at the same time.
124                         */
125                        AtomicInt _unloadIdleProvidersBusy;
126 konrad.r 1.28      
127                    
128 chip     1.1       };
129                    
130                    PEGASUS_NAMESPACE_END
131                    
132 kumpf    1.17      #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2