version 1.85.14.2, 2007/01/24 04:20:03
|
version 1.89, 2007/06/06 05:24:49
|
|
|
class PEGASUS_COMMON_LINKAGE MessageMask | class PEGASUS_COMMON_LINKAGE MessageMask |
{ | { |
public: | public: |
// Message type is indicated by the low order 20 bits. For example: |
|
// Uint32 messageType = flags & 0x000fffff; |
|
static Uint32 type_legacy; |
|
static Uint32 type_cimom; |
|
static Uint32 type_service; |
|
|
|
// Message handling is indicated by the high order 12 bits. For example: | // Message handling is indicated by the high order 12 bits. For example: |
// Uint32 messageHandling = flags & 0xfff00000; | // Uint32 messageHandling = flags & 0xfff00000; |
static Uint32 ha_request; | static Uint32 ha_request; |
|
|
Message( | Message( |
Uint32 type, | Uint32 type, |
Uint32 destination = 0, | Uint32 destination = 0, |
Uint32 mask = MessageMask::type_legacy) |
Uint32 mask = 0) |
: | : |
_type(type), | _type(type), |
_mask(mask), | _mask(mask), |
_httpMethod (HTTP_METHOD__POST), | _httpMethod (HTTP_METHOD__POST), |
|
#ifndef PEGASUS_DISABLE_PERFINST |
_serverStartTimeMicroseconds(0), | _serverStartTimeMicroseconds(0), |
_providerTimeMicroseconds(0), | _providerTimeMicroseconds(0), |
_totalServerTimeMicroseconds(0), | _totalServerTimeMicroseconds(0), |
|
#endif |
_close_connect(false), | _close_connect(false), |
_last_thread_id(Threads::self()), | _last_thread_id(Threads::self()), |
_async(0), | _async(0), |
|
|
| |
void setHttpMethod(HttpMethod httpMethod) {_httpMethod = httpMethod;} | void setHttpMethod(HttpMethod httpMethod) {_httpMethod = httpMethod;} |
| |
|
|
#ifndef PEGASUS_DISABLE_PERFINST | #ifndef PEGASUS_DISABLE_PERFINST |
// | // |
// Needed for performance measurement | // Needed for performance measurement |
|
|
Boolean printHeader = true) const; | Boolean printHeader = true) const; |
#endif | #endif |
| |
Message *get_async(void) |
Message* get_async() |
{ | { |
Message *ret = _async; | Message *ret = _async; |
_async = 0; | _async = 0; |
|
|
} | } |
| |
// << Tue Jul 1 11:02:49 2003 mdd >> pep_88 and helper for i18n and l10n | // << Tue Jul 1 11:02:49 2003 mdd >> pep_88 and helper for i18n and l10n |
Boolean thread_changed(void) |
Boolean thread_changed() |
{ | { |
if (!Threads::equal(_last_thread_id, Threads::self())) | if (!Threads::equal(_last_thread_id, Threads::self())) |
{ | { |
|
|
// set the complete flag indicating if this message piece is the | // set the complete flag indicating if this message piece is the |
// last or not | // last or not |
void setComplete(Boolean isComplete) | void setComplete(Boolean isComplete) |
{ _isComplete = isComplete ? true:false; } |
{ |
|
_isComplete = isComplete ? true:false; |
|
} |
| |
// get the message index (or sequence number) | // get the message index (or sequence number) |
Uint32 getIndex() const { return _index; } | Uint32 getIndex() const { return _index; } |
|
|
Uint32 _mask; | Uint32 _mask; |
HttpMethod _httpMethod; | HttpMethod _httpMethod; |
| |
|
#ifndef PEGASUS_DISABLE_PERFINST |
// Needed for performance measurement | // Needed for performance measurement |
Uint64 _serverStartTimeMicroseconds; | Uint64 _serverStartTimeMicroseconds; |
Uint64 _providerTimeMicroseconds; | Uint64 _providerTimeMicroseconds; |
Uint64 _totalServerTimeMicroseconds; | Uint64 _totalServerTimeMicroseconds; |
|
#endif |
Boolean _close_connect; | Boolean _close_connect; |
| |
// << Tue Jul 1 11:02:35 2003 mdd >> pep_88 and helper for i18n and l10n | // << Tue Jul 1 11:02:35 2003 mdd >> pep_88 and helper for i18n and l10n |
|
|
CIM_SUBSCRIPTION_INIT_COMPLETE_REQUEST_MESSAGE, | CIM_SUBSCRIPTION_INIT_COMPLETE_REQUEST_MESSAGE, |
CIM_SUBSCRIPTION_INIT_COMPLETE_RESPONSE_MESSAGE, | CIM_SUBSCRIPTION_INIT_COMPLETE_RESPONSE_MESSAGE, |
| |
// Added for NamedPipe implementation for windows |
|
#if defined (PEGASUS_OS_TYPE_WINDOWS) &&\ |
|
!defined(PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET) |
|
// Monitor-related messages: |
|
NAMEDPIPE_MESSAGE, |
|
#endif |
|
NUMBER_OF_MESSAGES | NUMBER_OF_MESSAGES |
}; | }; |
| |
|
|
| |
QueueIdStack(const QueueIdStack& x); | QueueIdStack(const QueueIdStack& x); |
| |
PEGASUS_EXPLICIT QueueIdStack(Uint32 x); |
explicit QueueIdStack(Uint32 x); |
| |
PEGASUS_EXPLICIT QueueIdStack(Uint32 x1, Uint32 x2); |
explicit QueueIdStack(Uint32 x1, Uint32 x2); |
| |
~QueueIdStack() | ~QueueIdStack() |
{ | { |