(file) Return to StatisticalData.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/StatisticalData.cpp between version 1.1 and 1.6

version 1.1, 2002/04/22 12:07:27 version 1.6, 2004/06/29 16:12:34
Line 1 
Line 1 
 //%////////////-*-c++-*-///////////////////////////////////////////////////////////  //%2003////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
   // Company, L. P., IBM Corp., The Open Group, Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
   // IBM Corp.; EMC Corporation, The Open Group.
 // //
 // 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
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 32 
Line 35 
 String StatisticalData::requestName[] = { String StatisticalData::requestName[] = {
     "GET_CLASS",     "GET_CLASS",
     "GET_INSTANCE",     "GET_INSTANCE",
           "EXPORT_INDICATION",
     "DELETE_CLASS",     "DELETE_CLASS",
     "DELETE_INSTANCE",     "DELETE_INSTANCE",
     "CREATE_CLASS",     "CREATE_CLASS",
Line 67 
Line 71 
 } }
  
 StatisticalData::StatisticalData(){ StatisticalData::StatisticalData(){
   
   
      copyGSD = 0;
   
    for (unsigned int i=0; i<StatisticalData::length; i++){    for (unsigned int i=0; i<StatisticalData::length; i++){
       numCalls[i] = 0;       numCalls[i] = 0;
       cimomTime[i] = 0;      providerTime[i] = 0;        cimomTime[i] = 0;
             providerTime[i] = 0;
       responseSize[i] = 0;       responseSize[i] = 0;
       requestSize[i] = 0;       requestSize[i] = 0;
   
    }    }
 } }
  
 void StatisticalData::addToValue(Uint64 value, Uint16 type, Uint32 t){  void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t){
    _mutex.lock( pegasus_thread_self() );    _mutex.lock( pegasus_thread_self() );
    switch(t){    switch(t){
       case SERVER:      numCalls[type] += 1;       case SERVER:      numCalls[type] += 1;
Line 91 
Line 101 
    _mutex.unlock();    _mutex.unlock();
 } }
  
    void StatisticalData::setCopyGSD(Boolean flag)
   {
   
           copyGSD = flag;
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2