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

Load-test client driving a RequestGateway over plain HTTP web requests. More...

#include <RequestClient.h>

Collaboration diagram for cmlabs::TestWebRequestClient:
[legend]

Public Member Functions

 TestWebRequestClient (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 TestWebRequestClientRun (THREAD_ARG arg)

Detailed Description

Load-test client driving a RequestGateway over plain HTTP web requests.

Definition at line 529 of file RequestClient.h.

Constructor & Destructor Documentation

◆ TestWebRequestClient()

cmlabs::TestWebRequestClient::TestWebRequestClient ( uint32 id)

Member Function Documentation

◆ finishUp()

bool cmlabs::TestWebRequestClient::finishUp ( )

Definition at line 1155 of file RequestClient.cpp.

References LOG_SYSTEM, LogPrint, and shouldFinishUp.

◆ init()

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

◆ isStillRunning()

bool cmlabs::TestWebRequestClient::isStillRunning ( )
inline

Definition at line 535 of file RequestClient.h.

References isRunning.

◆ run()

◆ TestWebRequestClientRun

THREAD_RET THREAD_FUNCTION_CALL TestWebRequestClientRun ( THREAD_ARG arg)
friend

Definition at line 1256 of file RequestClient.cpp.

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

Referenced by init().

Member Data Documentation

◆ gatewayCount

uint32 cmlabs::TestWebRequestClient::gatewayCount
protected

Definition at line 541 of file RequestClient.h.

Referenced by init(), and TestWebRequestClient().

◆ id

uint32 cmlabs::TestWebRequestClient::id
protected

Definition at line 539 of file RequestClient.h.

◆ isRunning

bool cmlabs::TestWebRequestClient::isRunning
protected

Definition at line 548 of file RequestClient.h.

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

◆ longTestName

std::string cmlabs::TestWebRequestClient::longTestName
protected

Definition at line 545 of file RequestClient.h.

Referenced by init().

◆ payload

uint32 cmlabs::TestWebRequestClient::payload
protected

Definition at line 544 of file RequestClient.h.

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

◆ port

uint16 cmlabs::TestWebRequestClient::port
protected

Definition at line 540 of file RequestClient.h.

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

◆ reconnectMS

int32 cmlabs::TestWebRequestClient::reconnectMS
protected

Definition at line 543 of file RequestClient.h.

Referenced by init(), and TestWebRequestClient().

◆ sendfreq

double cmlabs::TestWebRequestClient::sendfreq
protected

Definition at line 542 of file RequestClient.h.

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

◆ shouldContinue

bool cmlabs::TestWebRequestClient::shouldContinue
protected

Definition at line 546 of file RequestClient.h.

Referenced by run(), and TestWebRequestClient().

◆ shouldFinishUp

bool cmlabs::TestWebRequestClient::shouldFinishUp
protected

Definition at line 547 of file RequestClient.h.

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


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