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

  1 karl  1.8 //%2006////////////////////////////////////////////////////////////////////////
  2 mday  1.2 //
  3 karl  1.6 // 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.5 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.6 // 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.7 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10           // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.8 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12           // EMC Corporation; Symantec Corporation; The Open Group.
 13 mday  1.2 //
 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           // 
 21           // 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 karl  1.10 
 32 mday  1.2  //%////////////////////////////////////////////////////////////////////////////
 33            
 34            
 35            #ifndef Pegasus_reg_table_h
 36            #define Pegasus_reg_table_h
 37            
 38            #include <Pegasus/Common/Config.h>
 39            #include <Pegasus/Common/String.h>
 40            #include <Pegasus/Common/ArrayInter.h>
 41            #include <Pegasus/Common/HashTable.h>
 42            #include <Pegasus/Common/System.h>
 43            #include <Pegasus/Common/CIMName.h>
 44            #include <Pegasus/Common/MessageQueueService.h>
 45            #include <Pegasus/Server/Linkage.h>
 46            
 47            PEGASUS_NAMESPACE_BEGIN
 48            
 49            class reg_table_rep;
 50            
 51            class PEGASUS_SERVER_LINKAGE DynamicRoutingTable  
 52            {
 53 mday  1.2     public:
 54                  DynamicRoutingTable(void);
 55                  DynamicRoutingTable(const DynamicRoutingTable & table);
 56                  DynamicRoutingTable & operator =(const DynamicRoutingTable & table);
 57                  ~DynamicRoutingTable(void);
 58            
 59                  static DynamicRoutingTable get_rw_routing_table(void);
 60                  
 61                  // get a single service that can route this spec. 
 62                  MessageQueueService *get_routing(const CIMName& classname, 
 63            				       const CIMNamespaceName& ns, 
 64            				       Uint32 type,
 65 mday  1.3  				       Uint32 flags,
 66            				       String & provider,
 67            				       String & module) const;
 68            
 69 mday  1.2        Boolean insert_record(const CIMName& classname, 
 70            			    const CIMNamespaceName& ns, 
 71            			    Uint32 type,
 72            			    Uint32 flags,
 73            			    MessageQueueService* svce) ;
 74            
 75 mday  1.3        Boolean insert_record(const CIMName& classname, 
 76            			    const CIMNamespaceName& ns, 
 77            			    Uint32 type,
 78            			    Uint32 flags,
 79            			    MessageQueueService* svce, 
 80            			    const String& provider, 
 81            			    const String& module) ;
 82                  /**
 83            	 Router "types". These are actually keys used in the routing table. 
 84            	 A provider manager (or other service provider) that can route messages
 85            	 must register as being of a certain type. These types classify the routers
 86            	 according to function and also make queries faster. 
 87                  
 88            	 Most of the current types correspond to provider interfaces. However, some
 89            	 are generic pegasus services, and others are specific services.
 90            
 91            	 The extended type is an escape mechanism that allows unlimited expansion
 92            	 of "types" in the future. 
 93                  */
 94            
 95                  static const Uint32 INTERNAL; // "control providers"
 96 karl  1.10       static const Uint32 METHOD;
 97 mday  1.3        static const Uint32 INSTANCE;
 98                  static const Uint32 CLASS;
 99 mday  1.4  
100                  void dump_table(void);
101 mday  1.3        
102 mday  1.2     private:
103                  reg_table_rep *_rep;
104            };
105            
106            PEGASUS_NAMESPACE_END
107            #endif // Pegasus_reg_table_h

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2