version 1.64, 2005/02/25 21:44:16
|
version 1.70, 2005/07/26 00:09:44
|
|
|
// Willis White (whiwill@us.ibm.com) PEP 127 and 128 | // Willis White (whiwill@us.ibm.com) PEP 127 and 128 |
// Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase1 | // Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase1 |
// Amit K Arora, IBM (amita@in.ibm.com) for Bug#1090 | // Amit K Arora, IBM (amita@in.ibm.com) for Bug#1090 |
|
// John Alex, IBM (johnalex@us.ibm.com) - Bug#2290 |
// | // |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
|
|
#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> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/CIMDateTime.h> |
#include <Pegasus/Common/TimeValue.h> |
#include <Pegasus/Common/CIMOperationType.h> | #include <Pegasus/Common/CIMOperationType.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
_routing_code(routing_code), | _routing_code(routing_code), |
_mask(mask), | _mask(mask), |
_httpMethod (HTTP_METHOD__POST), | _httpMethod (HTTP_METHOD__POST), |
|
_close_connect(false), |
_last_thread_id(pegasus_thread_self()), | _last_thread_id(pegasus_thread_self()), |
_next(0), | _next(0), |
_prev(0), | _prev(0), |
|
|
| |
| |
virtual ~Message(); | virtual ~Message(); |
|
Boolean getCloseConnect() const { return _close_connect; } |
|
void setCloseConnect(Boolean close_connect) |
|
{ |
|
_close_connect = close_connect; |
|
} |
| |
Uint32 getType() const { return _type; } | Uint32 getType() const { return _type; } |
| |
|
|
| |
void endProvider(); | void endProvider(); |
| |
CIMDateTime getStartServerTime() const { return _timeServerStart; } |
TimeValue getStartServerTime() const { return _timeServerStart; } |
| |
void setStartServerTime(CIMDateTime timeServerStart) |
void setStartServerTime(TimeValue timeServerStart) |
{ | { |
_timeServerStart = timeServerStart; | _timeServerStart = timeServerStart; |
} | } |
| |
CIMDateTime getStartProviderTime() const { return _timeProviderStart; } |
TimeValue getStartProviderTime() const { return _timeProviderStart; } |
| |
void setStartProviderTime(CIMDateTime timeProviderStart) |
void setStartProviderTime(TimeValue timeProviderStart) |
{ | { |
_timeProviderStart = timeProviderStart; | _timeProviderStart = timeProviderStart; |
} | } |
| |
CIMDateTime getEndServerTime() const { return _timeServerEnd; } |
TimeValue getEndServerTime() const { return _timeServerEnd; } |
| |
void setEndServerTime (CIMDateTime timeServerEnd) |
void setEndServerTime (TimeValue timeServerEnd) |
{ | { |
_timeServerEnd = timeServerEnd; | _timeServerEnd = timeServerEnd; |
} | } |
| |
CIMDateTime getEndProviderTime() const { return _timeProviderEnd; } |
TimeValue getEndProviderTime() const { return _timeProviderEnd; } |
| |
void setEndProviderTime(CIMDateTime timeProviderEnd) |
void setEndProviderTime(TimeValue timeProviderEnd) |
{ | { |
_timeProviderEnd = timeProviderEnd; | _timeProviderEnd = timeProviderEnd; |
} | } |
| |
CIMDateTime getProviderTime() { return _providerTime;} |
TimeValue getProviderTime() { return _providerTime;} |
| |
CIMDateTime getTotalTime() { return _totalTime; } |
TimeValue getTotalTime() { return _totalTime; } |
| |
CIMDateTime getServerTime() { return _serverTime; } |
TimeValue getServerTime() { return _serverTime; } |
// | // |
#endif | #endif |
| |
|
|
return ret; | return ret; |
} | } |
| |
static CIMOperationType convertMessageTypetoCIMOpType(const Uint32 type) |
static CIMOperationType convertMessageTypetoCIMOpType(Uint32 type); |
{ |
|
Uint32 in_type, enum_type; |
|
CIMOperationType cT; |
|
|
|
|
|
in_type = type%38; /* groups request/response message by type ie. getClassRequestMessage |
|
(type = 1) gives the same result as getClassResponseMessage (type = 39)*/ |
|
|
|
if (in_type < 3) { |
|
enum_type = in_type; |
|
} |
|
else if((3 < in_type) && (in_type < 25)){ |
|
enum_type = in_type -1; |
|
} |
|
else if (in_type == 25) { |
|
enum_type = 0; |
|
} |
|
else{ |
|
return ((CIMOperationType)40); //error condition |
|
} |
|
|
|
cT = (CIMOperationType)enum_type; |
|
return cT; |
|
} |
|
|
|
| |
|
#ifdef PEGASUS_DEBUG |
virtual void print( | virtual void print( |
PEGASUS_STD(ostream)& os, | PEGASUS_STD(ostream)& os, |
Boolean printHeader = true) const; | Boolean printHeader = true) const; |
|
#endif |
| |
// << 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 _mask; | Uint32 _mask; |
HttpMethod _httpMethod; | HttpMethod _httpMethod; |
// Needed for performance measurement | // Needed for performance measurement |
CIMDateTime _timeServerStart; |
TimeValue _timeServerStart; |
CIMDateTime _timeServerEnd; |
TimeValue _timeServerEnd; |
CIMDateTime _timeProviderStart; |
TimeValue _timeProviderStart; |
CIMDateTime _timeProviderEnd; |
TimeValue _timeProviderEnd; |
CIMDateTime _providerTime; |
TimeValue _providerTime; |
CIMDateTime _serverTime; |
TimeValue _serverTime; |
CIMDateTime _totalTime; |
TimeValue _totalTime; |
|
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 |