(file) Return to StressTestController.h CVS log (file) (dir) Up to [Pegasus] / pegasus / test / StressTestController

Diff for /pegasus/test/StressTestController/StressTestController.h between version 1.1.2.1 and 1.1.2.2

version 1.1.2.1, 2006/04/18 03:15:28 version 1.1.2.2, 2006/04/24 19:15:09
Line 42 
Line 42 
 #include <Pegasus/Common/HashTable.h> #include <Pegasus/Common/HashTable.h>
 #include <Clients/cliutils/Command.h> #include <Clients/cliutils/Command.h>
 #include <Clients/cliutils/CommandException.h> #include <Clients/cliutils/CommandException.h>
 //#include "StressTestControllerException.h"  
  
 struct tm getCurrentActualTime(void);  struct tm getCurrentActualTime();
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 54 
Line 53 
 typedef HashTable<String, String, EqualFunc<String>, HashFunc<String> > Table; typedef HashTable<String, String, EqualFunc<String>, HashFunc<String> > Table;
  
 /** /**
     This constant signifies that an operation option has not been recorded      This constant signifies that an operation option has not been recorded.
 */ */
 static const Uint32 OPERATION_TYPE_UNINITIALIZED             = 0; static const Uint32 OPERATION_TYPE_UNINITIALIZED             = 0;
  
 /** /**
     This constant represents a help operation      This constant represents a help operation.
 */ */
 static const Uint32 OPERATION_TYPE_HELP                      = 1; static const Uint32 OPERATION_TYPE_HELP                      = 1;
  
 /** /**
     This constant represents a version display operation      This constant represents a version display operation.
 */ */
 static const Uint32 OPERATION_TYPE_VERSION                   = 2; static const Uint32 OPERATION_TYPE_VERSION                   = 2;
  
Line 197 
Line 196 
        - Unused log files & pid files are removed here.        - Unused log files & pid files are removed here.
  
     */     */
     void removeUnusedFiles(void);      void removeUnusedFiles();
  
     /**     /**
         Retrieves the stress Test log file path name          Retrieves the stress Test log file path name.
  
         @return StressTestLogFile  The log filename is returned.         @return StressTestLogFile  The log filename is returned.
  
      */      */
     String getStressTestLogFile(){ return StressTestLogFile;}      String getStressTestLogFile(){ return _stressTestLogFile;}
       String getStressClientLogFile(){ return _stressTestClientLogFile;}
  
     static char   FILENAME [];     static char   FILENAME [];
  
Line 220 
Line 220 
  
     // Environment variables:     // Environment variables:
     //     //
     char* pegasusRoot;  
   
     char* pegasusHome;     char* pegasusHome;
  
 private: private:
  
     /**     /**
         Parses each line in the stressController config file          Parses each line in the stressController config file.
  
         @return true   Parse was successful.         @return true   Parse was successful.
                 false  Parsing resulted in a failure or invalid config.                 false  Parsing resulted in a failure or invalid config.
      */      */
     Boolean parseLine(const String & string, int line,String & name, String & value,ostream& log_file);      Boolean _parseLine(
           const String & string,
           int line,
           String & name,
           String & value,
           ostream& log_file);
  
     /**     /**
         Stores client details from config file          Stores client details from config file.
  
         @return true   Successfully retrieved and stored the details.         @return true   Successfully retrieved and stored the details.
                 false  Un-successfull.                 false  Un-successfull.
      */      */
     Boolean storeClientDetails(String name, String value);      Boolean _storeClientDetails(String name, String value);
  
     /**     /**
         Validate StressTest configuration properties & clients          Validate StressTest configuration properties & clients.
  
         @return true   Successfully validated.         @return true   Successfully validated.
                 false  Un-successfull.                 false  Un-successfull.
      */      */
     Boolean validateConfiguration(String & var, const String & value,ostream& log_file);      Boolean _validateConfiguration(
           String & var,
           const String & value,
           ostream& log_file);
  
     /**     /**
         parse and save all the options for each client          parse and save all the options for each client.
  
         @return         @return
  
      */      */
     void getClientOptions(const Char16* p,ostream& log_file);      void _getClientOptions(const Char16* p,ostream& log_file);
  
     /**     /**
         Checks if the actual tolerance level of the current tests         Checks if the actual tolerance level of the current tests
Line 266 
Line 272 
                 false  Failed tolerance expectations.                 false  Failed tolerance expectations.
  
      */      */
     Boolean checkToleranceLevel(int act_clients,Uint64 nowMilliseconds,ostream& log_file);      Boolean _checkToleranceLevel(
           int act_clients,
           Uint64 nowMilliseconds,
           ostream& log_file);
  
     /**     /**
         Retrieves and stores client details from client pid file          Retrieves and stores client details from client pid file.
  
         @return true   Successfully retrieved and stored the details.         @return true   Successfully retrieved and stored the details.
                 false  Un-successfull.                 false  Un-successfull.
      */      */
     Boolean getClientPIDs(int clients,ostream& log_file);      Boolean _getClientPIDs(int clients,ostream& log_file);
  
  
     /**     /**
Line 466 
Line 475 
     /**     /**
         A String containing the usage information for the command.         A String containing the usage information for the command.
      */      */
     String usage;      String _usage;
  
     /**     /**
         The type of operation specified on the command line.         The type of operation specified on the command line.
      */      */
     Uint32        _operationType;     Uint32        _operationType;
  
       /**
           Property table that stores the properties
        */
     Table* _propertyTable;     Table* _propertyTable;
   
       /**
           Client table that stores the client specific properties
        */
     Table* _clientTable;     Table* _clientTable;
   
       /**
           Client commands
        */
     String* _clientCommands;     String* _clientCommands;
   
       /**
           Client specific durations
        */
     Uint64* _clientDurations;     Uint64* _clientDurations;
   
       /**
           Client specific delays
        */
     Uint64* _clientDelays;     Uint64* _clientDelays;
  
     /**     /**
         The total number of clients for this test         The total number of clients for this test
      */      */
     Uint32 _clientCount;     Uint32 _clientCount;
   
       /**
           current client name
        */
     String _currClient;     String _currClient;
   
       /**
           current client count
        */
     Uint32 _currClientCount;     Uint32 _currClientCount;
   
     /**     /**
       Stress Controller Log file.       Stress Controller Log file.
     */     */
     String StressTestLogFile;      String _stressTestLogFile;
  
     /**     /**
       StressTest Client PID file       StressTest Client PID file
     */     */
     String StressTestClientPIDFile;      String _stressTestClientPIDFile;
  
     /**     /**
       StressTest Client Log file       StressTest Client Log file
     */     */
     String StressTestClientLogFile;      String _stressTestClientLogFile;
  
     /**     /**
       StressTest temporary Client PID file       StressTest temporary Client PID file
     */     */
     String tmpStressTestClientPIDFile;      String _tmpStressTestClientPIDFile;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2