1 karl 1.7 //%2005////////////////////////////////////////////////////////////////////////
|
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 tony 1.1 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
13 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
18 //
19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 // Author: Tony Fiorentino (fiorentino_tony@emc.com)
31 //
32 tony 1.1 // Modified By:
33 //
34 //%/////////////////////////////////////////////////////////////////////////////
35 #ifndef Pegasus_CIMServerDiscovery_h
36 #define Pegasus_CIMServerDiscovery_h
37
38 #include <Pegasus/Common/Config.h>
39 #include <Pegasus/Common/Array.h>
40 #include <Pegasus/Common/String.h>
|
41 david.dillard 1.5 #include <Pegasus/Common/Attribute.h>
42 #include <Pegasus/Common/CIMServerDescription.h>
|
43 tony 1.1 #include <Pegasus/Client/Linkage.h>
44
45 PEGASUS_NAMESPACE_BEGIN
46
|
47 karl 1.4 //*****************************************************************************
48 // SLPClientOptions
49 //*****************************************************************************
50
51 /** Purpose: allow some flexibility in the nature of the SLP
52 srv requests, particularly to permit unicast da requests,
53 passing of scopes and spi parameters etc.
54 */
55
56 struct PEGASUS_CLIENT_LINKAGE SLPClientOptions{
57 char* target_address;
58 char* local_interface;
59 unsigned short target_port;
60 char* spi;
61 char* scopes;
62 char* service_type;
63 char* predicate;
64 bool use_directory_agent;
65 /**
66 * Constructs an empty object. User must strdup the
67 * string values during initialistation,
68 karl 1.4 * which are then freed automatically during
69 * destruction
70 * */
71 SLPClientOptions();
72 /**
73 * Destroys object and contained string values
74 * */
75 ~SLPClientOptions();
76 /**
77 * For debugging
78 * */
79 void print() const;
80 private:
81 SLPClientOptions(const SLPClientOptions& options);
82 SLPClientOptions& operator=(const SLPClientOptions& options);
83 };
84
|
85 tony 1.1
|
86 karl 1.2 //*****************************************************************************
|
87 tony 1.1 // CIMServerDiscoveryRep
|
88 karl 1.2 //*****************************************************************************
89
90
|
91 tony 1.1 class CIMServerDiscoveryRep
92 {
93 public:
94
95 CIMServerDiscoveryRep();
96 ~CIMServerDiscoveryRep();
97
|
98 karl 1.4 Array<CIMServerDescription> lookup(const Array<Attribute> & criteria,const SLPClientOptions* options = NULL);
|
99 tony 1.1
100 };
101
102 /** This class provides the interface that a client uses to discover
|
103 karl 1.2 CIM Servers.
104 ATTN: Add more descriptive material here KS 2 Oct 2003
|
105 tony 1.1 */
106 class PEGASUS_CLIENT_LINKAGE CIMServerDiscovery
107 {
108 public:
109
110 /** Constructor for a CIMServerDiscovery object.
111 */
112 CIMServerDiscovery();
113
114 /** Destructor for a CIMServerDiscovery object
115 */
116 ~CIMServerDiscovery();
117
118 /** Lookup all WBEM servers
119 @return the return value is an array of connection descriptions.
120 */
|
121 karl 1.4 Array<CIMServerDescription> lookup(const SLPClientOptions* options = NULL);
|
122 tony 1.1
123 /** Lookup specific WBEM servers
124 @param criteria Criteria for specifing which CIM Servers to lookup.
125 @return the return value is array of connection descriptions.
126 */
|
127 karl 1.4 Array<CIMServerDescription> lookup(const Array<Attribute> & criteria,const SLPClientOptions* options = NULL);
|
128 tony 1.1
129 private:
130
131 CIMServerDiscoveryRep* _rep;
132 };
133
134 PEGASUS_NAMESPACE_END
135
136 #endif /* Pegasus_CIMServerDiscovery_h */
|