void writeBurstLogFile(const std::string &buffer) throw();
bool burstLogEnabled() const throw() { return (((a_burstLogFile == "") || (a_burstLogFile == "null")) ? false : true); }
void startDiameterServer(int) throw(anna::RuntimeException);
+ void forceCountersRecord() throw(anna::RuntimeException) { if (a_counterRecorderClock) a_counterRecorderClock->tick(); }
anna::xml::Node* asXML(anna::xml::Node* parent) const throw();
void resetStatistics() throw() { a_myDiameterEngine->resetStatistics(); }
result += "\ncollect Reset statistics and counters to start a new test stage of";
result += "\n performance measurement. Context data is written at";
result += "\n '/var/tmp/anna.context.<pid>' by mean 'kill -10 <pid>'.";
+ result += "\nforceCountersRecord Forces dump to file the current counters of the process.";
result += "\n";
result += "\n<visibility action>|[<address>:<port>]|[socket id]";
result += "\n";
return;
}
+ // Counters dump on demand:
+ if(operation == "forceCountersRecord") {
+ forceCountersRecord();
+ response_content = "Current counters have been dump to disk\n";
+ return;
+ }
+
///////////////////////////////////////////////////////////////////
// Tokenize operation
Tokenizer params;
response_content += "' loaded.";
response_content += "\n";
} else if((opType == "answerxml") || (opType == "answerxml2c")) {
- response_content += "Answer to client '";
+ response_content += "'";
response_content += param1;
- response_content += "' programmed.";
+ response_content += "' applied on server FIFO queue";
response_content += "\n";
} else if(opType == "answerxml2e") {
- response_content += "Answer to entity '";
+ response_content += "'";
response_content += param1;
- response_content += "' programmed.";
+ response_content += "' applied on client FIFO queue";
response_content += "\n";
} else if(opType == "diameterServerSessions") {
response_content += "Maximum server socket connections updated to '";