![]() ![]() |
![]() |
File: [Pegasus] / pegasus / src / Pegasus / Server / Attic / BinaryMessageHandler.h
(download)
Revision: 1.10, Tue Nov 14 18:34:59 2006 UTC (17 years, 7 months ago) by kumpf Branch: MAIN CVS Tags: TASK_PEP328_SOLARIS_NEVADA_PORT, TASK-PEP328_SOLARIS_NEVADA_PORT_v2-root, TASK-PEP328_SOLARIS_NEVADA_PORT_v2-branch, TASK-PEP328_SOLARIS_NEVADA_PORT-root, TASK-PEP328_SOLARIS_NEVADA_PORT-branch, TASK-PEP328_SOLARIS_IX86_CC_PORT-root, TASK-PEP328_SOLARIS_IX86_CC_PORT-branch-v2, TASK-PEP328_SOLARIS_IX86_CC_PORT-branch, TASK-PEP305_VXWORKS-root, TASK-PEP305_VXWORKS-branch-pre-solaris-port, TASK-PEP305_VXWORKS-branch-post-solaris-port, TASK-PEP305_VXWORKS-branch-beta2, TASK-PEP305_VXWORKS-branch, TASK-PEP305_VXWORKS-2008-10-23, TASK-PEP291_IPV6-root, TASK-PEP291_IPV6-branch, TASK-PEP286_PRIVILEGE_SEPARATION-root, TASK-PEP286_PRIVILEGE_SEPARATION-branch, TASK-PEP274_dacim-root, TASK-PEP274_dacim-merged_out_to_branch, TASK-PEP274_dacim-merged_out_from_trunk, TASK-PEP274_dacim-merged_in_to_trunk, TASK-PEP274_dacim-merged_in_from_branch, TASK-PEP274_dacim-branch, TASK-Bug2102_RCMPIWindows-root, TASK-Bug2102_RCMPIWindows-merged_out_to_branch, TASK-Bug2102_RCMPIWindows-merged_out_from_trunk, TASK-Bug2102_RCMPIWindows-merged_in_to_trunk, TASK-Bug2102_RCMPIWindows-merged_in_from_branch, TASK-Bug2102_RCMPIWindows-branch, TASK-Bug2102Final-root, TASK-Bug2102Final-merged_out_to_branch, TASK-Bug2102Final-merged_out_from_trunk, TASK-Bug2102Final-merged_in_to_trunk, TASK-Bug2102Final-merged_in_from_branch, TASK-Bug2102Final-branch, TASK-BUG7240-root, TASK-BUG7240-branch, TASK-BUG7146_SqlRepositoryPrototype-root, TASK-BUG7146_SqlRepositoryPrototype-merged_out_to_branch, TASK-BUG7146_SqlRepositoryPrototype-merged_out_from_trunk, TASK-BUG7146_SqlRepositoryPrototype-merged_in_to_trunk, TASK-BUG7146_SqlRepositoryPrototype-merged_in_from_branch, TASK-BUG7146_SqlRepositoryPrototype-branch, RELEASE_2_8_2-RC1, RELEASE_2_8_2, RELEASE_2_8_1-RC1, RELEASE_2_8_1, RELEASE_2_8_0_BETA, RELEASE_2_8_0-RC2, RELEASE_2_8_0-RC1, RELEASE_2_8_0-FC, RELEASE_2_8_0, RELEASE_2_8-root, RELEASE_2_8-branch, RELEASE_2_7_3-RC1, RELEASE_2_7_3, RELEASE_2_7_2-RC1, RELEASE_2_7_2, RELEASE_2_7_1-RC1, RELEASE_2_7_1, RELEASE_2_7_0-RC1, RELEASE_2_7_0-BETA, RELEASE_2_7_0, RELEASE_2_7-root, RELEASE_2_7-branch, RELEASE_2_6_3-RC2, RELEASE_2_6_3-RC1, RELEASE_2_6_3, RELEASE_2_6_2-RC1, RELEASE_2_6_2, RELEASE_2_6_1-RC1, RELEASE_2_6_1, RELEASE_2_6_0-RC1, RELEASE_2_6_0, RELEASE_2_6-root, RELEASE_2_6-branch-clean, RELEASE_2_6-branch, PEP286_PRIVILEGE_SEPARATION_ROOT, PEP286_PRIVILEGE_SEPARATION_CODE_FREEZE, PEP286_PRIVILEGE_SEPARATION_BRANCH, PEP286_PRIVILEGE_SEPARATION_1 Changes since 1.9: +223 -226 lines BUG#: 5850 TITLE: Source files do not meet chksrc requirements DESCRIPTION: Remove tab characters and author names and shorten lines that are wider than 80 characters. |
//%2006//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Corporation, The Open Group. // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; // EMC Corporation; VERITAS Software Corporation; The Open Group. // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; // EMC Corporation; Symantec Corporation; The Open Group. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // //============================================================================== // //%///////////////////////////////////////////////////////////////////////////// #ifndef Pegasus_BinaryMessageHandler_h #define Pegasus_BinaryMessageHandler_h #include <Pegasus/Common/Config.h> #include <Pegasus/Common/AsyncOpNode.h> #include <Pegasus/Common/AsyncQueue.h> #include <Pegasus/Common/MessageQueueService.h> #include <Pegasus/Common/Message.h> #include <Pegasus/Common/CIMMessage.h> #include <Pegasus/Common/Tracer.h> #include <Pegasus/Common/TraceComponents.h> #include <Pegasus/Common/Thread.h> #include <Pegasus/Common/Constants.h> #include <Pegasus/Server/Linkage.h> PEGASUS_NAMESPACE_BEGIN /** This class provides an in-process binary client interface, both for requests and responses. */ class PEGASUS_SERVER_LINKAGE BinaryMessageHandler : public MessageQueueService { public: typedef MessageQueueService Base; BinaryMessageHandler(MessageQueueService* outputQueue); ~BinaryMessageHandler(); virtual Boolean messageOK(const Message* message); virtual void handleEnqueue(); virtual void handleEnqueue(Message* message); virtual void _handle_async_request(AsyncRequest* request); protected: static ThreadReturnType PEGASUS_THREAD_CDECL handle_binary_message(void*); // **** Request Messages **** // void handleCreateClassRequest( AsyncOpNode*, CIMCreateClassRequestMessage*) throw(); void handleGetClassRequest( AsyncOpNode*, CIMGetClassRequestMessage*) throw(); void handleModifyClassRequest( AsyncOpNode*, CIMModifyClassRequestMessage*) throw(); void handleEnumerateClassNamesRequest( AsyncOpNode*, CIMEnumerateClassNamesRequestMessage*) throw(); void handleEnumerateClassesRequest( AsyncOpNode*, CIMEnumerateClassesRequestMessage*) throw(); void handleDeleteClassRequest( AsyncOpNode*, CIMDeleteClassRequestMessage*) throw(); void handleCreateInstanceRequest( AsyncOpNode*, CIMCreateInstanceRequestMessage*) throw(); void handleGetInstanceRequest( AsyncOpNode*, CIMGetInstanceRequestMessage*) throw(); void handleModifyInstanceRequest( AsyncOpNode*, CIMModifyInstanceRequestMessage*) throw(); void handleEnumerateInstanceNamesRequest( AsyncOpNode*, CIMEnumerateInstanceNamesRequestMessage*) throw(); void handleEnumerateInstancesRequest( AsyncOpNode*, CIMEnumerateInstancesRequestMessage*) throw(); void handleDeleteInstanceRequest( AsyncOpNode*, CIMDeleteInstanceRequestMessage*) throw(); void handleSetQualifierRequest( AsyncOpNode*, CIMSetQualifierRequestMessage*) throw(); void handleGetQualifierRequest( AsyncOpNode*, CIMGetQualifierRequestMessage*) throw(); void handleEnumerateQualifiersRequest( AsyncOpNode*, CIMEnumerateQualifiersRequestMessage*) throw(); void handleDeleteQualifiersRequest( AsyncOpNode*, CIMDeleteQualifierRequestMessage*) throw(); void handleReferenceNamesRequest( AsyncOpNode*, CIMReferenceNamesRequestMessage*) throw(); void handleReferencesRequest( AsyncOpNode*, CIMReferencesRequestMessage*) throw(); void handleAssociatorNamesRequest( AsyncOpNode*, CIMAssociatorNamesRequestMessage*) throw(); void handleAssociatorsRequest( AsyncOpNode*, CIMAssociatorsRequestMessage*) throw(); void handleGetPropertyRequest( AsyncOpNode*, CIMGetPropertyRequestMessage*) throw(); void handleSetPropertyRequest( AsyncOpNode*, CIMSetPropertyRequestMessage*) throw(); void handleExecQueryRequest( AsyncOpNode*, CIMExecQueryRequestMessage*) throw(); void handleInvokeMethodRequest( AsyncOpNode*, CIMInvokeMethodRequestMessage*) throw(); // **** Response Messages **** // void handleCreateClassResponse( AsyncOpNode*, CIMCreateClassResponseMessage*) throw(); void handleGetClassResponse( AsyncOpNode*, CIMGetClassResponseMessage*) throw(); void handleModifyClassResponse( AsyncOpNode*, CIMModifyClassResponseMessage*) throw(); void handleEnumerateClassNamesResponse( AsyncOpNode*, CIMEnumerateClassNamesResponseMessage*) throw(); void handleEnumerateClassesResponse( AsyncOpNode*, CIMEnumerateClassesResponseMessage*) throw(); void handleDeleteClassResponse( AsyncOpNode*, CIMDeleteClassResponseMessage*) throw(); void handleCreateInstanceResponse( AsyncOpNode*, CIMCreateInstanceResponseMessage*) throw(); void handleGetInstanceResponse( AsyncOpNode*, CIMGetInstanceResponseMessage*) throw(); void handleModifyInstanceResponse( AsyncOpNode*, CIMModifyInstanceResponseMessage*) throw(); void handleEnumerateInstanceNamesResponse( AsyncOpNode*, CIMEnumerateInstanceNamesResponseMessage*) throw(); void handleEnumerateInstancesResponse( AsyncOpNode*, CIMEnumerateInstancesResponseMessage*) throw(); void handleDeleteInstanceResponse( AsyncOpNode*, CIMDeleteInstanceResponseMessage*) throw(); void handleGetPropertyResponse( AsyncOpNode*, CIMGetPropertyResponseMessage*) throw(); void handleSetPropertyResponse( AsyncOpNode*, CIMSetPropertyResponseMessage*) throw(); void handleSetQualifierResponse( AsyncOpNode*, CIMSetQualifierResponseMessage*) throw(); void handleGetQualifierResponse( AsyncOpNode*, CIMGetQualifierResponseMessage*) throw(); void handleEnumerateQualifiersResponse( AsyncOpNode*, CIMEnumerateQualifiersResponseMessage*) throw(); void handleDeleteQualifierResponse( AsyncOpNode*, CIMDeleteQualifierResponseMessage*) throw(); void handleReferenceNamesResponse( AsyncOpNode*, CIMReferenceNamesResponseMessage*) throw(); void handleReferencesResponse( AsyncOpNode*, CIMReferencesResponseMessage*) throw(); void handleAssociatorNamesResponse( AsyncOpNode*, CIMAssociatorNamesResponseMessage*) throw(); void handleAssociatorsResponse( AsyncOpNode*, CIMAssociatorsResponseMessage*) throw(); void handleExecQueryResponse( AsyncOpNode*, CIMExecQueryResponseMessage*) throw(); void handleInvokeMethodResponse( AsyncOpNode*, CIMInvokeMethodResponseMessage*) throw(); private: BinaryMessageHandler(); BinaryMessageHandler& operator=(const BinaryMessageHandler&) const; void _handleRequest(AsyncOpNode*, Message*) throw(); void _handleResponse(AsyncOpNode*, Message*) throw(); MessageQueueService* _outputQueue; // Flag to indicate whether or not the CIMServer is shutting down. AsyncQueue<AsyncOpNode> _msg_q; }; PEGASUS_NAMESPACE_END #endif // Pegasus_BinaryMessageHandler_h
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |