1 //%2005////////////////////////////////////////////////////////////////////////
3 // 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 // IBM Corp.; EMC Corporation, The Open Group.
7 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
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:
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.
28 //==============================================================================
30 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
32 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
33 // (carolann_graves@hp.com)
34 // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
36 //%/////////////////////////////////////////////////////////////////////////////
39 #ifndef Pegasus_IndicationHandlerService_h
40 #define Pegasus_IndicationHandlerService_h
42 #include <Pegasus/Common/Config.h>
43 #include <sys/types.h>
48 #include <Pegasus/Common/Config.h>
49 #include <Pegasus/Common/AsyncOpNode.h>
50 #include <Pegasus/Common/MessageQueueService.h>
51 #include <Pegasus/Common/CIMMessage.h>
52 #include <Pegasus/Handler/CIMHandler.h>
53 #include <Pegasus/Repository/CIMRepository.h>
55 #include "HandlerTable.h"
57 #include <Pegasus/HandlerService/Linkage.h>
59 PEGASUS_NAMESPACE_BEGIN
61 class PEGASUS_HANDLER_SERVICE_LINKAGE IndicationHandlerService
62 : public MessageQueueService
66 typedef MessageQueueService Base;
68 IndicationHandlerService(CIMRepository* repository);
70 IndicationHandlerService(void);
72 ~IndicationHandlerService(void) { } ;
74 virtual void _handle_async_request(AsyncRequest *req);
76 virtual void handleEnqueue(Message *);
78 virtual void handleEnqueue(void);
80 static void _handleIndicationCallBack(AsyncOpNode *,
88 CIMHandleIndicationResponseMessage* _handleIndication(
89 CIMHandleIndicationRequestMessage* request);
91 HandlerTable _handlerTable;
93 CIMHandler* _lookupHandlerForClass(const CIMName& className);
95 String _parseDestination(String dest);
98 CIMRepository* _repository;
101 PEGASUS_NAMESPACE_END