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

Diff for /pegasus/src/Pegasus/Common/Tracer.h between version 1.49 and 1.49.6.4

version 1.49, 2009/01/28 15:35:57 version 1.49.6.4, 2014/03/12 22:35:02
Line 89 
Line 89 
     TRC_INDICATION_RECEIPT,     TRC_INDICATION_RECEIPT,
     TRC_CMPIPROVIDERINTERFACE,     TRC_CMPIPROVIDERINTERFACE,
     TRC_WSMSERVER,     TRC_WSMSERVER,
       TRC_RSSERVER,
   #ifdef PEGASUS_ENABLE_PROTOCOL_WEB
       TRC_WEBSERVER,
   #endif /* PEGASUS_ENABLE_PROTOCOL_WEB */
     TRC_LOGMSG,     TRC_LOGMSG,
     TRC_WMI_MAPPER_CONSUMER      TRC_WMI_MAPPER_CONSUMER,
       TRC_INTERNALPROVIDER
 }; };
  
 /** Token used for tracing functions. /** Token used for tracing functions.
Line 107 
Line 112 
 { {
 public: public:
  
       /** Trace Components list defines the strings repesenting each
           TraceComponentId entry. Externalized to allow display of the
           possible list of trace components.  The size of this list is
           defined in _NUM_COMPONENTS variable.
        */
       static char const* TRACE_COMPONENT_LIST[];
   
     /** Trace facilities     /** Trace facilities
         File - tracing occurs to the trace file         File - tracing occurs to the trace file
         Log  - tracing occurs through the Pegasus Logger class         Log  - tracing occurs through the Pegasus Logger class
Line 162 
Line 174 
         const Uint32 level,         const Uint32 level,
         const CIMException& cimException);         const CIMException& cimException);
  
       /** Formats the message given in data as hex dump if binary is true
           @param data      Message to be formatted
           @param binary    flag indicating if message is binary or not
       */
       static SharedArrayPtr<char> traceFormatChars(
           const Buffer& data,
           bool binary);
   
     /** Gets an HTTP request message.     /** Gets an HTTP request message.
  
           Given a binary HTTP request message(application/x-openpegasus
           this method returns the request message formatted in hex dump format
           and returns.
   
         Given an HTTP request message, this method checks if the         Given an HTTP request message, this method checks if the
         message contains a "Basic" authorization header.         message contains a "Basic" authorization header.
  
Line 222 
Line 246 
     */     */
     static Boolean setTraceMemoryBufferSize(Uint32 bufferSize);     static Boolean setTraceMemoryBufferSize(Uint32 bufferSize);
  
       /** Set the Max trace File Size and used for the File tracing
           @param maxLogFileSizeBytes size of cimserver.trc
       */
       static void setMaxTraceFileSize (const String &size);
   
       /** Set the Max trace File number
           @param maxLogFileNumber number of cimserver.trc in trace folder
       */
       static void setMaxTraceFileNumber(const String &numberOfFiles);
   
     /** Flushes the trace buffer to traceFilePath. This method will only     /** Flushes the trace buffer to traceFilePath. This method will only
         have an effect when traceFacility=Memory.         have an effect when traceFacility=Memory.
     */     */
Line 306 
Line 340 
                 (_traceComponentMask & ((Uint64)1 << traceComponent)));                 (_traceComponentMask & ((Uint64)1 << traceComponent)));
     }     }
  
       //
       //Converts a given string representation of a trace property into Uint32.
       //If the string reperesantation is not valid, the returnd bufferSize is 0.
       //@param  traceProperty     The trace property value as string
       //@param  valueInUint32     Returns the value as Uint32.
       //@return Boolean           True if specified size is a
       //                          valid string representaion of a Uint32.
       static Boolean tracePropertyToUint32( const String& traceProperty,
                 Uint32& valueInUint32 );
   
 private: private:
  
     /** A static single indicator if tracing is turned on allowing to     /** A static single indicator if tracing is turned on allowing to
Line 344 
Line 388 
     static const char _METHOD_ENTER_MSG[];     static const char _METHOD_ENTER_MSG[];
     static const char _METHOD_EXIT_MSG[];     static const char _METHOD_EXIT_MSG[];
  
       // Function formats size bytes of binary data given in data in a nicely
       // readable hex format and writes the output to targetBuffer
       // Return value: Pointer to one byte behind last position that was written
       static char* _formatHexDump(
           char* targetBuffer,
           const char* data,Uint32 size);
   
     // Factory function to create an instance of the matching trace handler     // Factory function to create an instance of the matching trace handler
     // for the given type of traceFacility.     // for the given type of traceFacility.
     // @param    traceFacility  type of trace handler to create     // @param    traceFacility  type of trace handler to create
Line 500 
Line 551 
     return;     return;
 } }
  
   
   
 #endif /* PEGASUS_REMOVE_TRACE */ #endif /* PEGASUS_REMOVE_TRACE */
  
 //============================================================================== //==============================================================================


Legend:
Removed from v.1.49  
changed lines
  Added in v.1.49.6.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2