OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
LocalDirectoryService Class Reference

#include "LocalDirectoryService.h"

Inheritance diagram for LocalDirectoryService:
ot::ServiceBase

Public Member Functions

 LocalDirectoryService (const std::string &_url)
 
virtual ~LocalDirectoryService ()
 
const LoadInformationloadInformation (void) const
 
LoadInformation::load_t load (void) const
 
bool updateSystemUsageValues (ot::JsonDocument &_jsonDocument)
 
void setSupportedServices (const std::list< std::string > &_serviesNames)
 
bool supportsService (const std::string &_serviceName)
 
bool requestToRunService (const ServiceStartupInformation &_serviceInfo)
 
bool requestToRunRelayService (const ServiceStartupInformation &_serviceInfo, std::string &_websocketURL, std::string &_relayServiceURL)
 
void sessionClosed (const SessionInformation &_session)
 
void serviceClosed (const SessionInformation &_session, const ServiceInformation &_service, const std::string &_serviceURL)
 
- Public Member Functions inherited from ot::ServiceBase
 ServiceBase ()
 Constructor.
 
 ServiceBase (const std::string &_name, const std::string &_type)
 Constructor.
 
 ServiceBase (const std::string &_name, const std::string &_type, const std::string &_url, serviceID_t _id, const std::string &_siteId=std::string())
 Constructor.
 
 ServiceBase (const ServiceBase &_other)
 Copy constructor.
 
ServiceBaseoperator= (const ServiceBase &_other)
 
bool operator== (const ServiceBase &_other) const
 
bool operator!= (const ServiceBase &_other) const
 
virtual ~ServiceBase ()
 Deconstructor.
 
void setServiceID (serviceID_t _id)
 Set the service ID.
 
void setServiceURL (const std::string &_url)
 Set the service URL.
 
void setServiceName (const std::string &_name)
 Set the service name.
 
void setServiceType (const std::string &_type)
 Set the service type.
 
void setSiteId (const std::string &_id)
 Set the site ID.
 
void setSessionCount (int _count)
 Set the session count.
 
serviceID_t getServiceID (void) const
 Return the service ID.
 
int getServiceIDAsInt (void) const
 Return the service ID as an Integer (The service ID is an Integer stored as a String)
 
int getSessionCount (void) const
 Return the session count.
 
const std::string & getServiceURL (void) const
 Return the service URL.
 
std::string getServiceName (void) const
 Return the service name.
 
std::string getServiceType (void) const
 Return the service type.
 
std::string getSiteId (void) const
 Return the site ID.
 
BasicServiceInformation getBasicServiceInformation (void) const
 

Additional Inherited Members

- Protected Attributes inherited from ot::ServiceBase
serviceID_t m_serviceID
 
std::string m_serviceURL
 Service ID.
 
std::string m_serviceName
 Service URL.
 
std::string m_serviceType
 Service name.
 
std::string m_siteId
 Service type.
 
int m_sessionCount
 Site ID.
 

Constructor & Destructor Documentation

◆ LocalDirectoryService()

LocalDirectoryService::LocalDirectoryService ( const std::string & _url)

◆ ~LocalDirectoryService()

LocalDirectoryService::~LocalDirectoryService ( )
virtual

Member Function Documentation

◆ load()

LoadInformation::load_t LocalDirectoryService::load ( void ) const

◆ loadInformation()

const LoadInformation & LocalDirectoryService::loadInformation ( void ) const
inline

◆ requestToRunRelayService()

bool LocalDirectoryService::requestToRunRelayService ( const ServiceStartupInformation & _serviceInfo,
std::string & _websocketURL,
std::string & _relayServiceURL )

◆ requestToRunService()

bool LocalDirectoryService::requestToRunService ( const ServiceStartupInformation & _serviceInfo)

◆ serviceClosed()

void LocalDirectoryService::serviceClosed ( const SessionInformation & _session,
const ServiceInformation & _service,
const std::string & _serviceURL )

◆ sessionClosed()

void LocalDirectoryService::sessionClosed ( const SessionInformation & _session)

◆ setSupportedServices()

void LocalDirectoryService::setSupportedServices ( const std::list< std::string > & _serviesNames)
inline

◆ supportsService()

bool LocalDirectoryService::supportsService ( const std::string & _serviceName)

◆ updateSystemUsageValues()

bool LocalDirectoryService::updateSystemUsageValues ( ot::JsonDocument & _jsonDocument)

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