version 1.33, 2002/05/01 21:32:53
|
version 1.40, 2002/10/07 17:42:04
|
|
|
//%///-*-c++-*-///////////////////////////////////////////////////////////////// |
//%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// The Open Group, Tivoli Systems | // The Open Group, Tivoli Systems |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <iostream> | #include <iostream> |
#include <cstring> | #include <cstring> |
#include <Pegasus/Common/Exception.h> |
#include <Pegasus/Common/InternalException.h> |
#include <Pegasus/Common/IPC.h> | #include <Pegasus/Common/IPC.h> |
#include <Pegasus/Common/StatisticalData.h> | #include <Pegasus/Common/StatisticalData.h> |
|
#include <Pegasus/Common/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
class AsyncLegacyOperationStart; | class AsyncLegacyOperationStart; |
class AsyncLegacyOperationResult; | class AsyncLegacyOperationResult; |
| |
|
enum HttpMethod |
|
{ |
|
HTTP_METHOD__POST, |
|
HTTP_METHOD_M_POST |
|
}; |
|
|
/** The Message class and derived classes are used to pass messages between | /** The Message class and derived classes are used to pass messages between |
modules. Messages are passed between modules using the message queues | modules. Messages are passed between modules using the message queues |
(see MessageQueue class). Derived classes may add their own fields. | (see MessageQueue class). Derived classes may add their own fields. |
|
|
| |
} | } |
| |
Message(const Message & msg) |
|
{ |
|
if( this != &msg) |
|
{ |
|
_type = msg._type; |
|
_key = msg._key; |
|
_routing_code = msg._routing_code; |
|
_mask = msg._mask; |
|
_next = _prev = _async = 0; |
|
dest = msg.dest; |
|
} |
|
} |
|
|
|
Message & operator = ( const Message & msg) | Message & operator = ( const Message & msg) |
{ | { |
if (this != &msg) | if (this != &msg) |
|
|
| |
void setMask(Uint32 mask) { _mask = mask; } | void setMask(Uint32 mask) { _mask = mask; } |
| |
|
HttpMethod getHttpMethod() const { return _httpMethod; } |
|
|
|
void setHttpMethod(HttpMethod httpMethod) {_httpMethod = httpMethod;} |
|
|
#ifdef PEGASUS_HAS_PERFINST | #ifdef PEGASUS_HAS_PERFINST |
// | // |
// Needed for performance measurement | // Needed for performance measurement |
|
|
return ret; | return ret; |
} | } |
| |
virtual void print(PEGASUS_STD(ostream)& os) const; |
virtual void print( |
|
PEGASUS_STD(ostream)& os, |
|
Boolean printHeader = true) const; |
| |
// << Thu Dec 27 10:46:04 2001 mdd >> for use with DQueue container | // << Thu Dec 27 10:46:04 2001 mdd >> for use with DQueue container |
// as used by AsyncOpNode | // as used by AsyncOpNode |
|
|
Uint32 _key; | Uint32 _key; |
Uint32 _routing_code; | Uint32 _routing_code; |
Uint32 _mask; | Uint32 _mask; |
|
HttpMethod _httpMethod; |
// Needed for performance measurement | // Needed for performance measurement |
timeval _timeServerStart; | timeval _timeServerStart; |
timeval _timeServerEnd; | timeval _timeServerEnd; |
|
|
CIM_DISABLE_MODULE_REQUEST_MESSAGE, | CIM_DISABLE_MODULE_REQUEST_MESSAGE, |
CIM_ENABLE_MODULE_REQUEST_MESSAGE, | CIM_ENABLE_MODULE_REQUEST_MESSAGE, |
| |
|
CIM_STOP_ALL_PROVIDERS_REQUEST_MESSAGE, |
|
|
CIM_GET_CLASS_RESPONSE_MESSAGE, // 40 | CIM_GET_CLASS_RESPONSE_MESSAGE, // 40 |
CIM_GET_INSTANCE_RESPONSE_MESSAGE, | CIM_GET_INSTANCE_RESPONSE_MESSAGE, |
CIM_EXPORT_INDICATION_RESPONSE_MESSAGE, // 42 | CIM_EXPORT_INDICATION_RESPONSE_MESSAGE, // 42 |
|
|
CIM_DISABLE_MODULE_RESPONSE_MESSAGE, | CIM_DISABLE_MODULE_RESPONSE_MESSAGE, |
CIM_ENABLE_MODULE_RESPONSE_MESSAGE, | CIM_ENABLE_MODULE_RESPONSE_MESSAGE, |
| |
|
CIM_STOP_ALL_PROVIDERS_RESPONSE_MESSAGE, |
|
|
// Monitor-related messages: | // Monitor-related messages: |
| |
SOCKET_MESSAGE, | SOCKET_MESSAGE, |