version 1.11, 2006/01/30 16:16:42
|
version 1.12, 2006/11/14 18:34:48
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Willis White (whiwill@us.ibm.com) |
|
// |
|
// Modified By: David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// Aruran, IBM(ashanmug@in.ibm.com) for Bug# 3674 |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef ClientPerfDataStore_h | #ifndef ClientPerfDataStore_h |
|
|
#include <Pegasus/Client/Linkage.h> | #include <Pegasus/Client/Linkage.h> |
#include <Pegasus/Client/ClientOpPerformanceDataHandler.h> | #include <Pegasus/Client/ClientOpPerformanceDataHandler.h> |
| |
|
|
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
|
|
class ClientOpPerformanceDataHandler; | class ClientOpPerformanceDataHandler; |
struct ClientOpPerformanceData; | struct ClientOpPerformanceData; |
| |
/* The ClientPerfDataStore class is internal to pegasus. It has no API's that client apps can |
/** The ClientPerfDataStore class is internal to pegasus. It has no API's |
access. It's purpose is to collect and calculate the data that is returned to the client app |
that client apps can access. It's purpose is to collect and calculate |
in the ClientOpPerformanceData object. |
the data that is returned to the client app in the |
|
ClientOpPerformanceData object. |
*/ | */ |
|
|
class PEGASUS_CLIENT_LINKAGE ClientPerfDataStore | class PEGASUS_CLIENT_LINKAGE ClientPerfDataStore |
|
|
{ | { |
public: | public: |
| |
|
|
*/ | */ |
void reset(); | void reset(); |
| |
/**Creates a ClientOpPerformanceData from the current values of of the private data members |
/** Creates a ClientOpPerformanceData from the current values of of the |
|
private data members |
*/ | */ |
ClientOpPerformanceData createPerfDataStruct(); | ClientOpPerformanceData createPerfDataStruct(); |
| |
/**checks the currentMessageID and _operationType data members against |
/** Checks the currentMessageID and _operationType data members against |
@param messageID and @param type if the values are equal | @param messageID and @param type if the values are equal |
true is returned. | true is returned. |
@param messageID | @param messageID |
|
|
*/ | */ |
Boolean checkMessageIDandType(const String& messageID, Uint32 type); | Boolean checkMessageIDandType(const String& messageID, Uint32 type); |
| |
/**sets the server time data member |
/** Sets the server time data member |
*/ | */ |
void setServerTime(Uint32 time); | void setServerTime(Uint32 time); |
| |
/**sets the responsSize data member |
/** Sets the responsSize data member |
*/ | */ |
void setResponseSize(Uint64 size); | void setResponseSize(Uint64 size); |
| |
/**sets the _requestSize data member |
/** Sets the _requestSize data member |
*/ | */ |
void setRequestSize(Uint64 size); | void setRequestSize(Uint64 size); |
| |
/**sets startNetworkTime data member |
/** Sets startNetworkTime data member |
*/ | */ |
void setStartNetworkTime(void); |
void setStartNetworkTime(); |
| |
/**sets endNetworkTime data member |
/** Sets endNetworkTime data member |
*/ | */ |
void setEndNetworkTime(TimeValue time); | void setEndNetworkTime(TimeValue time); |
| |
|
/** Sets validServerTime data member |
/** sets validServerTime data member |
|
*/ | */ |
void setServerTimeKnown(Boolean bol); | void setServerTimeKnown(Boolean bol); |
| |
/**sets _operationType data member by translating message type given by |
/** Sets _operationType data member by translating message type given by |
@param type, into a CIMOperationType. That value is ues to set the _operationType |
@param type, into a CIMOperationType. That value is used to set the |
data member and is returned. |
_operationType data member and is returned. |
@param type integer repesenting the message type | @param type integer repesenting the message type |
*/ | */ |
void setOperationType(Uint32 type); | void setOperationType(Uint32 type); |
| |
//void setErrorCondition(Boolean bol); | //void setErrorCondition(Boolean bol); |
| |
|
|
String toString() const; | String toString() const; |
| |
void setMessageID(String messageID); | void setMessageID(String messageID); |
|
|
| |
Boolean isClassRegistered() const; | Boolean isClassRegistered() const; |
| |
|
|
protected: | protected: |
CIMOperationType _operationType; | CIMOperationType _operationType; |
Boolean _serverTimeKnown; | Boolean _serverTimeKnown; |