(file) Return to ClientPerfDataStore.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Client

Diff for /pegasus/src/Pegasus/Client/ClientPerfDataStore.h between version 1.2 and 1.3

version 1.2, 2005/02/05 22:59:19 version 1.3, 2005/02/25 04:20:57
Line 24 
Line 24 
 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // 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 // 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. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //  
 //============================================================================== //==============================================================================
 // //
 // Author: Willis White (whiwill@us.ibm.com  // Author: Willis White (whiwill@us.ibm.com)
 // //
 // Modified By: // Modified By:
 // //
Line 36 
Line 35 
 #ifndef ClientPerfDataStore_h #ifndef ClientPerfDataStore_h
 #define ClientPerfDataStore_h #define ClientPerfDataStore_h
  
 #include "ClientOpPerformanceDataHandler.h"  
 #include <Pegasus/Common/CIMOperationType.h> #include <Pegasus/Common/CIMOperationType.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/CIMDateTime.h> #include <Pegasus/Common/CIMDateTime.h>
   #include <Pegasus/Common/XmlWriter.h>
   #include <Pegasus/Common/Message.h>
 #include <Pegasus/Client/Linkage.h> #include <Pegasus/Client/Linkage.h>
   #include <Pegasus/Client/ClientOpPerformanceDataHandler.h>
 #include <iostream> #include <iostream>
 #include <fstream> #include <fstream>
  
 PEGASUS_USING_STD;  
  
 PEGASUS_NAMESPACE_BEGIN  
  
 /* ALL UINT32 VALUES MUST BE CHANGED TO UINT64 BEFORE CHECK IN  PEGASUS_NAMESPACE_BEGIN;
 */  
   
   
   struct ClientOpPerformanceDataHandler;
   struct ClientOpPerformanceData;
  
   /* The ClientPerfDataStore class is internal to pegasus. It has no API's that client apps can
   access. It's purpose is to collect and calculate 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:
  
       static ClientPerfDataStore* Instance();
     static ClientPerfDataStore* current();  
   
     ClientPerfDataStore();  
  
     /**Resets all the data members to 0     /**Resets all the data members to 0
     */     */
Line 67 
Line 72 
  
     /**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 createPerfDataSrtuct();      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 equea     @param messageID and @param type if the values equea
     true is returned.     true is returned.
     @param messageID     @param messageID
       @param type CIM message type of current message
     @return true if @param messageID equals currentMessageID data member     @return true if @param messageID equals currentMessageID data member
     */     */
     Boolean checkMessageIDandType(String & messageID, CIMOperationType type);      Boolean checkMessageIDandType(String messageID, Uint32 type);
  
     /**sets the server time data member     /**sets the server time data member
     */     */
     void setServerTime(Uint32 time);      void setServerTime(Uint64 time);
  
     /**sets the responsSize data member     /**sets the responsSize data member
     */     */
     void setResponseSize(Uint32 size);      void setResponseSize(Uint64 size);
  
     /**sets the requestSize data member      /**sets the _requestSize data member
     */     */
     void setRequestSize(Uint32 size);      void setRequestSize(Uint64 size);
  
     /**sets startNetworkTime data member     /**sets startNetworkTime data member
     */     */
Line 100 
Line 106 
  
     /** sets validServerTime data member     /** sets validServerTime data member
     */     */
     void setValidServerTime(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 ues to set the _operationType
     data member and is returned.     data member and is returned.
     @param type integer repesenting the message type     @param type integer repesenting the message type
     @return translation of message type (@param type) into it's oringinal  
     CIM operation (enum CIMOperationType)  
     */     */
     CIMOperationType setOperationType(Uint32 type);      void setOperationType(Uint32 type);
  
     //void setErrorCondition(Boolean bol);     //void setErrorCondition(Boolean bol);
  
     Boolean checkMessageID(String id);  
  
     void print();      String toString();
  
     void setMessageID(String messageID);     void setMessageID(String messageID);
  
       Boolean getStatError();
   
       void setClassRegistered(Boolean bol);
   
     static ClientPerfDataStore* current_Store;     static ClientPerfDataStore* current_Store;
  
       ClientOpPerformanceDataHandler * handler_prt;
   
       Boolean isClassRegistered();
   
   
   protected:
       CIMOperationType _operationType;
       Boolean _serverTimeKnown;
       Boolean _errorCondition;
       Boolean _classRegistered;
       Uint64 _serverTime;
       Uint64 _requestSize;
       Uint64 _responseSize;
       String _messID;
       CIMDateTime _networkEndTime;
       CIMDateTime _networkStartTime;
   
   
   
   
       //using the singleton pattern - constructors are made un-usealbe
       ClientPerfDataStore();
       ClientPerfDataStore(const ClientPerfDataStore&);
       ClientPerfDataStore& operator= (const ClientPerfDataStore&);
  
 private:  
     CIMOperationType operationType;  
     Boolean serverTimeValid;  
     //Boolean errorCondition;  
     Uint32 serverTime;  
     Uint32 requestSize;  
     Uint32 responseSize;  
     String messID;  
     CIMDateTime networkEndTime;  
     CIMDateTime networkStartTime;  
 }; };
  
  


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2