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

  1 karl  1.8 //%2006////////////////////////////////////////////////////////////////////////
  2 tony  1.1 //
  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.3 // 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 tony  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           // 
 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           //
 32           // Author: Tony Fiorentino (fiorentino_tony@emc.com)
 33           //
 34 tony  1.1 // Modified By:
 35           //
 36           //%/////////////////////////////////////////////////////////////////////////////
 37           #ifndef Pegasus_CIMServerDiscovery_h
 38           #define Pegasus_CIMServerDiscovery_h
 39           
 40           #include <Pegasus/Common/Config.h>
 41           #include <Pegasus/Common/Array.h>
 42           #include <Pegasus/Common/String.h>
 43 david.dillard 1.5 #include <Pegasus/Common/Attribute.h>
 44                   #include <Pegasus/Common/CIMServerDescription.h>
 45 tony          1.1 #include <Pegasus/Client/Linkage.h>
 46                   
 47                   PEGASUS_NAMESPACE_BEGIN
 48                   
 49 karl          1.4 //*****************************************************************************
 50                   // SLPClientOptions
 51                   //*****************************************************************************
 52                   
 53                   /** Purpose: allow some flexibility in the nature of the SLP
 54                   srv requests, particularly to permit unicast da requests,
 55                   passing of scopes and spi parameters etc.
 56                   */
 57                   
 58                   struct PEGASUS_CLIENT_LINKAGE SLPClientOptions{
 59                   	char* target_address;
 60                   	char* local_interface;
 61                   	unsigned short target_port;
 62                   	char* spi;
 63                   	char* scopes;
 64                   	char* service_type;
 65                   	char* predicate;
 66                   	bool use_directory_agent;
 67                   	/**
 68                   	 * Constructs an empty object. User must strdup the
 69                   	 * string values during initialistation,
 70 karl          1.4 	 * which are then freed automatically during
 71                   	 * destruction
 72                   	 * */
 73                   	SLPClientOptions();
 74                   	/**
 75                   	 * Destroys object and contained string values
 76                   	 * */
 77                   	~SLPClientOptions();
 78                   	/**
 79                   	 * For debugging
 80                   	 * */
 81                   	void print() const;
 82                   private:
 83                   	SLPClientOptions(const SLPClientOptions& options);
 84                   	SLPClientOptions& operator=(const SLPClientOptions& options);
 85                   };
 86                   
 87 tony          1.1 
 88 karl          1.2 //*****************************************************************************
 89 tony          1.1 // CIMServerDiscoveryRep
 90 karl          1.2 //*****************************************************************************
 91                   
 92                   
 93 tony          1.1 class CIMServerDiscoveryRep
 94                   {
 95                   public:
 96                   
 97                     CIMServerDiscoveryRep();
 98                     ~CIMServerDiscoveryRep();
 99                   
100 karl          1.4   Array<CIMServerDescription> lookup(const Array<Attribute> & criteria,const SLPClientOptions* options = NULL);
101 tony          1.1 
102                   };
103                   
104                   /** This class provides the interface that a client uses to discover
105 karl          1.2     CIM Servers.
106                       ATTN: Add more descriptive material here KS 2 Oct 2003
107 tony          1.1 */
108                   class PEGASUS_CLIENT_LINKAGE CIMServerDiscovery
109                   {
110                   public:
111                   
112                     /** Constructor for a CIMServerDiscovery object.
113                     */
114                     CIMServerDiscovery();
115                   
116                     /** Destructor for a CIMServerDiscovery object
117                     */
118                     ~CIMServerDiscovery();
119                   
120                     /** Lookup all WBEM servers
121                         @return  the return value is an array of connection descriptions.
122                     */
123 karl          1.4   Array<CIMServerDescription> lookup(const SLPClientOptions* options = NULL);
124 tony          1.1 
125                     /** Lookup specific WBEM servers
126                         @param   criteria   Criteria for specifing which CIM Servers to lookup.
127                         @return  the return value is array of connection descriptions.
128                     */
129 karl          1.4   Array<CIMServerDescription> lookup(const Array<Attribute> & criteria,const SLPClientOptions* options = NULL);
130 tony          1.1 
131                   private:
132                   
133                     CIMServerDiscoveryRep* _rep;
134                   };
135                   
136                   PEGASUS_NAMESPACE_END
137                   
138                   #endif /* Pegasus_CIMServerDiscovery_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2