version 1.7, 2007/08/10 21:30:29
|
version 1.7.10.1, 2008/07/01 15:19:42
|
|
|
| |
static Uint32 DEFAULT_CLIENTS = 2; | static Uint32 DEFAULT_CLIENTS = 2; |
static Uint32 Total_Clients = DEFAULT_CLIENTS; | static Uint32 Total_Clients = DEFAULT_CLIENTS; |
static Uint32 Total_vClients = DEFAULT_CLIENTS; |
|
static Uint32 NEW_CLIENTS = 5; | static Uint32 NEW_CLIENTS = 5; |
| |
static char MODELWALK_CLIENT[] = "TestModelWalkStressClient"; | static char MODELWALK_CLIENT[] = "TestModelWalkStressClient"; |
|
|
/** | /** |
* Message resource name | * Message resource name |
*/ | */ |
static const char PASSWORD_PROMPT [] = |
|
"Please enter your password: "; |
|
static const char PASSWORD_BLANK [] = |
|
"Password cannot be blank. Please re-enter your password."; |
|
static const char LONG_HELP[] = "help"; | static const char LONG_HELP[] = "help"; |
static const char LONG_VERSION[] = "version"; | static const char LONG_VERSION[] = "version"; |
static const char LONG_VERBOSE[] = "verbose"; | static const char LONG_VERBOSE[] = "verbose"; |
|
|
// commands. | // commands. |
// like, -clientid, -pidfile, -clientlog | // like, -clientid, -pidfile, -clientlog |
// | // |
for (int instanceID =0;instanceID<clientInstance[j]; |
for (Uint32 instanceID = 0; instanceID<clientInstance[j]; |
instanceID++) | instanceID++) |
{ | { |
outPrintWriter<< | outPrintWriter<< |
|
|
// | // |
// Stop all the instances of this client | // Stop all the instances of this client |
// | // |
for (int instanceID =0; |
for (Uint32 instanceID = 0; |
instanceID<clientInstance[clientID]; | instanceID<clientInstance[clientID]; |
instanceID++) | instanceID++) |
{ | { |
|
|
// | // |
// Restart all the instances of the client. | // Restart all the instances of the client. |
// | // |
for (int instanceID =0; |
for (Uint32 instanceID = 0; |
instanceID<clientInstance[clientID]; | instanceID<clientInstance[clientID]; |
instanceID++) | instanceID++) |
{ | { |
|
|
act_command.append( | act_command.append( |
_clientCommands.get()[clientID]); | _clientCommands.get()[clientID]); |
act_command.append(" -clientid "); | act_command.append(" -clientid "); |
sprintf(str,"%d",clientID+instanceID); |
sprintf(str,"%u",clientID+instanceID); |
act_command.append(str); | act_command.append(str); |
act_command.append(" -pidfile "); | act_command.append(" -pidfile "); |
act_command.append(" \""); | act_command.append(" \""); |
|
|
} | } |
} | } |
clientActive[clientID+instanceID] = true; | clientActive[clientID+instanceID] = true; |
} /* for (int instanceID =0;instanceID .. */ |
} /* for (Uint32 instanceID =0;instanceID .. */ |
clientStopMilliseconds.get()[clientID] = | clientStopMilliseconds.get()[clientID] = |
nowMilliseconds + | nowMilliseconds + |
_clientDurations.get()[clientID]; | _clientDurations.get()[clientID]; |