CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::TestRequestClient Class Reference

Load-test client driving a RequestGateway with binary-protocol requests at a configurable frequency/payload (used by RequestGateway::UnitTest()). More...

#include <RequestClient.h>

Collaboration diagram for cmlabs::TestRequestClient:
[legend]

Public Member Functions

 TestRequestClient (uint32 id)
bool init (uint16 port, uint32 gatewayCount, double sendfreq, int32 reconnectMS, uint32 payload, const char *longTestName)
bool finishUp ()
bool isStillRunning ()

Protected Member Functions

bool run ()

Protected Attributes

uint32 id
uint16 port
uint32 gatewayCount
double sendfreq
int32 reconnectMS
uint32 payload
std::string longTestName
bool shouldContinue
bool shouldFinishUp
bool isRunning

Friends

THREAD_RET THREAD_FUNCTION_CALL TestRequestClientRun (THREAD_ARG arg)

Detailed Description

Load-test client driving a RequestGateway with binary-protocol requests at a configurable frequency/payload (used by RequestGateway::UnitTest()).

Definition at line 503 of file RequestClient.h.

Constructor & Destructor Documentation

◆ TestRequestClient()

cmlabs::TestRequestClient::TestRequestClient ( uint32 id)

Member Function Documentation

◆ finishUp()

bool cmlabs::TestRequestClient::finishUp ( )

Definition at line 915 of file RequestClient.cpp.

References LOG_SYSTEM, LogPrint, and shouldFinishUp.

◆ init()

bool cmlabs::TestRequestClient::init ( uint16 port,
uint32 gatewayCount,
double sendfreq,
int32 reconnectMS,
uint32 payload,
const char * longTestName )

◆ isStillRunning()

bool cmlabs::TestRequestClient::isStillRunning ( )
inline

Definition at line 509 of file RequestClient.h.

References isRunning.

◆ run()

◆ TestRequestClientRun

THREAD_RET THREAD_FUNCTION_CALL TestRequestClientRun ( THREAD_ARG arg)
friend

Definition at line 1112 of file RequestClient.cpp.

References run(), TestRequestClient(), THREAD_ARG, THREAD_FUNCTION_CALL, THREAD_RET, and thread_ret_val.

Referenced by init().

Member Data Documentation

◆ gatewayCount

uint32 cmlabs::TestRequestClient::gatewayCount
protected

Definition at line 515 of file RequestClient.h.

Referenced by init(), run(), and TestRequestClient().

◆ id

uint32 cmlabs::TestRequestClient::id
protected

Definition at line 513 of file RequestClient.h.

◆ isRunning

bool cmlabs::TestRequestClient::isRunning
protected

Definition at line 522 of file RequestClient.h.

Referenced by isStillRunning(), run(), and TestRequestClient().

◆ longTestName

std::string cmlabs::TestRequestClient::longTestName
protected

Definition at line 519 of file RequestClient.h.

Referenced by init().

◆ payload

uint32 cmlabs::TestRequestClient::payload
protected

Definition at line 518 of file RequestClient.h.

Referenced by init(), run(), and TestRequestClient().

◆ port

uint16 cmlabs::TestRequestClient::port
protected

Definition at line 514 of file RequestClient.h.

Referenced by init(), run(), and TestRequestClient().

◆ reconnectMS

int32 cmlabs::TestRequestClient::reconnectMS
protected

Definition at line 517 of file RequestClient.h.

Referenced by init(), run(), and TestRequestClient().

◆ sendfreq

double cmlabs::TestRequestClient::sendfreq
protected

Definition at line 516 of file RequestClient.h.

Referenced by init(), run(), and TestRequestClient().

◆ shouldContinue

bool cmlabs::TestRequestClient::shouldContinue
protected

Definition at line 520 of file RequestClient.h.

Referenced by run(), and TestRequestClient().

◆ shouldFinishUp

bool cmlabs::TestRequestClient::shouldFinishUp
protected

Definition at line 521 of file RequestClient.h.

Referenced by finishUp(), run(), and TestRequestClient().


The documentation for this class was generated from the following files: