This is the main class interacting with external services. Use the static instance() function to get the global component that should be used in this service.
More...
#include "ExternalServicesComponent.h"
This is the main class interacting with external services. Use the static instance() function to get the global component that should be used in this service.
◆ ComponentState
Enumerator |
---|
WaitForStartup | |
WaitForInit | |
Ready | |
◆ application()
ApplicationBase * ot::intern::ExternalServicesComponent::application |
( |
void | | ) |
const |
|
inline |
Will return the application.
◆ componentState()
ComponentState ot::intern::ExternalServicesComponent::componentState |
( |
void | | ) |
const |
|
inline |
◆ dispatchAction()
std::string ExternalServicesComponent::dispatchAction |
( |
const std::string & | _json, |
|
|
const std::string & | _sender, |
|
|
ot::MessageType | _messageType ) |
Will perform the provided action.
- Parameters
-
_json | The JSON type string containing the action and required parameter |
_sender | The sender IP of the service sending the action |
- Returns
- The response to the request or the error / warning text
◆ getCPUAndMemoryLoad()
void ExternalServicesComponent::getCPUAndMemoryLoad |
( |
double & | globalCPULoad, |
|
|
double & | globalMemoryLoad, |
|
|
double & | processCPULoad, |
|
|
double & | processMemoryLoad ) |
Tell the current cpu and memory load in percent.
◆ getLoggedInUserName()
std::string ot::intern::ExternalServicesComponent::getLoggedInUserName |
( |
void | | ) |
|
|
inline |
◆ getLoggedInUserPassword()
std::string ot::intern::ExternalServicesComponent::getLoggedInUserPassword |
( |
void | | ) |
|
|
inline |
◆ handleGetSystemInformation()
std::string ExternalServicesComponent::handleGetSystemInformation |
( |
| ) |
|
◆ init()
std::string ExternalServicesComponent::init |
( |
const std::string & | _sessionServiceURL, |
|
|
const std::string & | _sessionID ) |
Will initialize the service.
- Parameters
-
_siteID | The site ID this service is running on |
_ownIP | The IP address of this service |
_sessionServiceIP | The IP address of the session service this service was started from/ should interact with |
_sessionID | The ID of the session this service is running at |
◆ initDebugExplicit()
std::string ExternalServicesComponent::initDebugExplicit |
( |
const std::string & | _sessionServiceURL, |
|
|
const std::string & | _sessionID ) |
◆ instance()
Will return the global instance of this component since it should exist only once in the service.
◆ shutdown()
void ExternalServicesComponent::shutdown |
( |
bool | _requestedAsCommand | ) |
|
Will shutdown the service.
- Parameters
-
_receivedAsCommand | If true, the shutdown request was send from the session service |
◆ startup()
int ExternalServicesComponent::startup |
( |
ApplicationBase * | _application, |
|
|
const std::string & | _localDirectoryServiceURL, |
|
|
const std::string & | _ownURL ) |
◆ updateSettingsFromDataBase()
void ExternalServicesComponent::updateSettingsFromDataBase |
( |
PropertyGridCfg & | _config | ) |
|
◆ ~ExternalServicesComponent()
ExternalServicesComponent::~ExternalServicesComponent |
( |
| ) |
|
|
privatevirtual |
The documentation for this class was generated from the following files: