version 1.3, 2006/04/28 18:41:40
|
version 1.3.24.2, 2007/09/28 15:31:43
|
|
|
- "]" indicates end of client options. | - "]" indicates end of client options. |
- Client properties and values are seperated by commas. | - Client properties and values are seperated by commas. |
Example: | Example: |
[clientName=CLI,Options=niall] |
[clientName=cimcli,Options=niall] |
- This method will throw appropriate exceptions. | - This method will throw appropriate exceptions. |
| |
@param p The pointer to the char in the concerned line | @param p The pointer to the char in the concerned line |
|
|
} | } |
if (!(isalpha(*p) || *p == '_')) | if (!(isalpha(*p) || *p == '_')) |
{ | { |
throw StressTestControllerException(StressTestControllerException::INVALID_OPTION); |
throw StressTestControllerException |
|
(StressTestControllerException::INVALID_OPTION); |
} | } |
| |
name.append(*p++); | name.append(*p++); |
|
|
// | // |
if (*p != '=') | if (*p != '=') |
{ | { |
throw StressTestControllerException(StressTestControllerException::INVALID_OPERATOR); |
throw StressTestControllerException |
|
(StressTestControllerException::INVALID_OPERATOR); |
} | } |
| |
p++; | p++; |
|
|
| |
if(*p !=']' && *p != ',') | if(*p !=']' && *p != ',') |
{ | { |
throw StressTestControllerException(StressTestControllerException::MISSING_BRACE); |
throw StressTestControllerException |
|
(StressTestControllerException::MISSING_BRACE); |
} | } |
if(value == String::EMPTY) | if(value == String::EMPTY) |
{ | { |
throw StressTestControllerException(StressTestControllerException::MISSING_VALUE); |
throw StressTestControllerException |
|
(StressTestControllerException::MISSING_VALUE); |
} | } |
| |
#ifdef STRESSTEST_DEBUG | #ifdef STRESSTEST_DEBUG |
|
|
- "[" indicates start of client options. | - "[" indicates start of client options. |
- Client properties and values are seperated by commas. | - Client properties and values are seperated by commas. |
Example: | Example: |
[clientName=CLI,Options=niall] |
[clientName=cimcli,Options=niall] |
| |
@param line The line that will be parsed. | @param line The line that will be parsed. |
@parm lineNumber The line number of the line. | @parm lineNumber The line number of the line. |
|
|
{ | { |
cout << "Stress Test Client Name:" <<WRAPPER_CLIENT<< endl; | cout << "Stress Test Client Name:" <<WRAPPER_CLIENT<< endl; |
} | } |
if (!_clientTable[i].insert(CLIENTNAME, "CLI")) |
if (!_clientTable[i].insert(CLIENTNAME, "cimcli")) |
{ | { |
log_file<< "Duplicate name already saved: "<< | log_file<< "Duplicate name already saved: "<< |
CLIENTNAME<<endl; | CLIENTNAME<<endl; |
|
|
cout<< "Duplicate name already saved: "<<OPTIONS<<endl; | cout<< "Duplicate name already saved: "<<OPTIONS<<endl; |
} | } |
} | } |
log_file<< " Client Command & options: CLI niall"<< |
log_file<< " Client Command & options: cimcli niall"<< |
endl; | endl; |
if (verboseEnabled) | if (verboseEnabled) |
{ | { |
cout<< " Client Command & options: CLI niall"<< |
cout<< " Client Command & options: cimcli niall"<< |
endl; | endl; |
} | } |
break; | break; |