OTX-Runtime for C++
|
|
Class for general utils More...
#include <Util.h>
Static Public Member Functions | |
static std::uint32_t | GetNumberOfConnectedClients (short port) |
Returns the number of currently connected clients. More... | |
static std::uint32_t | GetNumberOfConnectedClients (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client) |
Returns the number of currently connected clients. More... | |
static std::uint32_t | GetNumberOfConnectedClients (std::string pipeName) |
Returns the number of currently connected clients. More... | |
static std::uint32_t | GetNumberOfExecutedDiagServices (short port) |
Returns the total number of all executed DiagServices (complete request and response) of all clients and all ComChannels since starting the DiagManager. More... | |
static std::uint32_t | GetNumberOfExecutedDiagServices (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client) |
Returns the total number of all executed DiagServices (complete request and response) of all clients and all ComChannels since starting the DiagManager. More... | |
static std::uint32_t | GetNumberOfExecutedDiagServices (std::string pipeName) |
Returns the total number of all executed DiagServices (complete request and response) of all clients and all ComChannels since starting the DiagManager. More... | |
static std::uint32_t | GetNumberOfOpenComChannels (short port) |
Returns the number of currently opened ComChannels. More... | |
static std::uint32_t | GetNumberOfOpenComChannels (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client) |
Returns the number of currently opened ComChannels. More... | |
static std::uint32_t | GetNumberOfOpenComChannels (std::string pipeName) |
Returns the number of currently opened ComChannels. More... | |
static bool | IsAlive (const std::string &pipeName) |
Checks, if the server is alive. More... | |
static bool | IsAlive (unsigned short port) |
Checks, if the server is alive. More... | |
static void | SetClientName (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client, const std::string &clientName) |
Sets a name for a client More... | |
static void | SetLicenseKey (const std::string &pipeName, const std::string &licenseKey) |
Sets a valid license key to active DiagManagerServer More... | |
static void | SetLicenseKey (std::shared_ptr< OpenTestSystem::Otx::DiagManager::Client::Client > client, const std::string &licenseKey) |
Sets a valid license key to active DiagManagerServer More... | |
static void | SetLicenseKey (unsigned short port, const std::string &licenseKey) |
Sets a valid license key to active DiagManagerServer More... | |
static void | StopServer (const std::string &pipeName) |
Stops the DiagManager server More... | |
static void | StopServer (unsigned short port) |
Stops the DiagManager server More... | |
Class for general utils
|
static |
Returns the number of currently connected clients.
port | Port number of the DiagManager server e.g. "8888" |
|
static |
Returns the number of currently connected clients.
client | Client that connected to the DiagManager server, used to get the information. |
|
static |
Returns the number of currently connected clients.
pipeName | Pipe name which the DiagManager listens on |
|
static |
Returns the total number of all executed DiagServices (complete request and response) of all clients and all ComChannels since starting the DiagManager.
port | Port number of the DiagManager server e.g. "8888" |
|
static |
Returns the total number of all executed DiagServices (complete request and response) of all clients and all ComChannels since starting the DiagManager.
client | Client that connected to the DiagManager server, used to get the information. |
|
static |
Returns the total number of all executed DiagServices (complete request and response) of all clients and all ComChannels since starting the DiagManager.
pipeName | Pipe name which the DiagManager listens on |
|
static |
Returns the number of currently opened ComChannels.
port | Port number of the DiagManager server e.g. "8888" |
|
static |
Returns the number of currently opened ComChannels.
client | Client that connected to the DiagManager server, used to get the information. |
|
static |
Returns the number of currently opened ComChannels.
pipeName | Pipe name which the DiagManager listens on |
|
static |
Checks, if the server is alive.
pipeName | Pipe name which the DiagManager listens on |
|
static |
Checks, if the server is alive.
port | Port number of the DiagManager server e.g. "8888" |
|
static |
Sets a name for a client
client | Client, which name is set |
clientName | Name of the client. The name should not be longer than 15 characters. |
|
static |
Sets a valid license key to active DiagManagerServer
pipeName | Pipe name which the DiagManager listens on |
licenseKey | License key has the format "XXXX-XXXX-XXXX-XXXX-XXXX". |
|
static |
Sets a valid license key to active DiagManagerServer
client | Client, which sends the request to active DiagManagerServerServer |
licenseKey | License key has the format "XXXX-XXXX-XXXX-XXXX-XXXX". |
|
static |
Sets a valid license key to active DiagManagerServer
port | Port number of the DiagManager server e.g. "8888" |
licenseKey | License key has the format "XXXX-XXXX-XXXX-XXXX-XXXX". |
|
static |
Stops the DiagManager server
pipeName | Pipe name which the DiagManager listens on |
|
static |
Stops the DiagManager server
port | Port number of the DiagManager server e.g. "8888" |