1 kumpf 1.10 //%/////////////////////////////////////////////////////////////////////////////
|
2 kumpf 1.1 //
|
3 kumpf 1.10 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
|
4 kumpf 1.1 // 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 kumpf 1.10 //
|
13 kumpf 1.1 // 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 //==============================================================================
23 //
24 // Author: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #ifndef Pegasus_CIMOperationRequestAuthorizer_h
31 #define Pegasus_CIMOperationRequestAuthorizer_h
32
33 #include <Pegasus/Common/Config.h>
|
34 mday 1.2 #include <Pegasus/Common/MessageQueueService.h>
|
35 kumpf 1.1 #include <Pegasus/Common/CIMMessage.h>
|
36 kumpf 1.11 #include <Pegasus/Server/Linkage.h>
|
37 kumpf 1.1
38
39 PEGASUS_NAMESPACE_BEGIN
40
41
|
42 mday 1.9 class PEGASUS_SERVER_LINKAGE CIMOperationRequestAuthorizer : public MessageQueueService
|
43 kumpf 1.1 {
|
44 mday 1.2 public:
45
|
46 mday 1.9 typedef MessageQueueService Base;
|
47 mday 1.2
48 CIMOperationRequestAuthorizer(
|
49 mday 1.9 MessageQueueService* outputQueue);
|
50 mday 1.2
51 ~CIMOperationRequestAuthorizer();
52
53 void sendResponse(
54 Uint32 queueId,
55 Array<Sint8>& message);
56
|
57 kumpf 1.5 void sendIMethodError(
|
58 mday 1.2 Uint32 queueId,
59 const String& messageId,
60 const String& methodName,
|
61 kumpf 1.6 const CIMException& cimException);
|
62 mday 1.2
|
63 mday 1.3 virtual void handleEnqueue(Message *);
64
|
65 mday 1.2 virtual void handleEnqueue();
66
67 /** Sets the flag to indicate whether or not the CIMServer is
68 shutting down.
69 */
70 void setServerTerminating(Boolean flag);
|
71 kumpf 1.1
|
72 mday 1.2 private:
|
73 kumpf 1.1
|
74 mday 1.9 MessageQueueService* _outputQueue;
|
75 kumpf 1.1
|
76 mday 1.2 // Flag to indicate whether or not the CIMServer is shutting down.
77 Boolean _serverTerminating;
|
78 kumpf 1.1 };
79
80 PEGASUS_NAMESPACE_END
81
82 #endif /* Pegasus_CIMOperationRequestAuthorizer_h */
|