1 s.soni 1.1 //%/////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
5 //
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 //
13 // 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 s.soni 1.1 //============================================================================
23 //
24 // Author: Subodh Soni IBM Corporation, (ssubodh@in.ibm.com)
25 //
26 // Modified By:
27 //
28 //
29 //
30 //%////////////////////////////////////////////////////////////////////////////
31
32 #ifndef MultithreadingSampleProvider_H
33 #define MultithreadingSampleProvider_H
34
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Provider/CIMInstanceProvider.h>
37
38 PEGASUS_NAMESPACE_BEGIN
39
40 class MultithreadingSampleProvider :
41 public CIMInstanceProvider
42 {
43 s.soni 1.1 public:
44 MultithreadingSampleProvider(void);
45 virtual ~MultithreadingSampleProvider(void);
46
47 // CIMProvider interface
48 virtual void initialize(CIMOMHandle & cimom);
49 virtual void terminate(void);
50
51 // CIMInstanceProvider interface
52 virtual void getInstance(
53 const OperationContext & context,
54 const CIMObjectPath & ref,
55 const Boolean includeQualifiers,
56 const Boolean includeClassOrigin,
57 const CIMPropertyList & propertyList,
58 InstanceResponseHandler & handler);
59
60 virtual void enumerateInstances(
61 const OperationContext & context,
62 const CIMObjectPath & ref,
63 const Boolean includeQualifiers,
64 s.soni 1.1 const Boolean includeClassOrigin,
65 const CIMPropertyList & propertyList,
66 InstanceResponseHandler & handler);
67
68 virtual void enumerateInstanceNames(
69 const OperationContext & context,
70 const CIMObjectPath & ref,
71 ObjectPathResponseHandler & handler);
72
73 virtual void modifyInstance(
74 const OperationContext & context,
75 const CIMObjectPath & ref,
76 const CIMInstance & obj,
77 const Boolean includeQualifiers,
78 const CIMPropertyList & propertyList,
79 ResponseHandler & handler);
80
81 virtual void createInstance(
82 const OperationContext & context,
83 const CIMObjectPath & ref,
84 const CIMInstance & obj,
85 s.soni 1.1 ObjectPathResponseHandler & handler);
86
87 virtual void deleteInstance(
88 const OperationContext & context,
89 const CIMObjectPath & ref,
90 ResponseHandler & handler);
91
92 protected:
93 Array<CIMInstance> _instances;
94 Array<CIMObjectPath> _instanceNames;
95 };
96
97 PEGASUS_NAMESPACE_END
98
99 #endif
|