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

#include "GlobalSessionService.h"

Inheritance diagram for GlobalSessionService:
ot::ActionHandler ot::ServiceBase ot::ServiceBase

Public Types

enum  ConnectionStatus { Connected , ConnectionFailed }
 

Public Member Functions

bool addSessionService (LocalSessionService &_service)
 
void setUrl (const std::string &_url)
 
const std::string & url (void) const
 
void setDatabaseUrl (const std::string &_url)
 
const std::string databaseUrl (void) const
 
void setAuthorizationUrl (const std::string &_url)
 
const std::string & authorizationUrl (void) const
 
void setGlobalDirectoryUrl (const std::string &_url)
 
const std::string & globalDirectoryUrl (void) const
 
 GlobalSessionService (const std::string &_url, SessionService *_owner)
 
virtual ~GlobalSessionService ()
 
void startHealthCheck (void)
 
void stopHealthCheck (bool _joinThread)
 
- Public Member Functions inherited from ot::ActionHandler
 ActionHandler ()
 
 ActionHandler (const ActionHandler &_other)=default
 
 ActionHandler (ActionHandler &&_other)=default
 
virtual ~ActionHandler ()
 
ActionHandleroperator= (const ActionHandler &_other)=default
 
ActionHandleroperator= (ActionHandler &&_other)=default
 
- 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
 

Static Public Member Functions

static GlobalSessionServiceinstance (void)
 
static bool hasInstance (void)
 
static void deleteInstance (void)
 

Private Member Functions

virtual ~GlobalSessionService ()
 

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.
 

Member Enumeration Documentation

◆ ConnectionStatus

Enumerator
Connected 
ConnectionFailed 

Constructor & Destructor Documentation

◆ GlobalSessionService()

GlobalSessionService::GlobalSessionService ( const std::string & _url,
SessionService * _owner )

◆ ~GlobalSessionService()

virtual GlobalSessionService::~GlobalSessionService ( )
virtual

Member Function Documentation

◆ addSessionService()

bool GlobalSessionService::addSessionService ( LocalSessionService & _service)

◆ authorizationUrl()

const std::string & GlobalSessionService::authorizationUrl ( void ) const
inline

◆ databaseUrl()

const std::string GlobalSessionService::databaseUrl ( void ) const
inline

◆ deleteInstance()

void GlobalSessionService::deleteInstance ( void )
static

◆ globalDirectoryUrl()

const std::string & GlobalSessionService::globalDirectoryUrl ( void ) const
inline

◆ hasInstance()

bool GlobalSessionService::hasInstance ( void )
static

◆ instance()

GlobalSessionService * GlobalSessionService::instance ( void )
static

◆ setAuthorizationUrl()

void GlobalSessionService::setAuthorizationUrl ( const std::string & _url)
inline

◆ setDatabaseUrl()

void GlobalSessionService::setDatabaseUrl ( const std::string & _url)

◆ setGlobalDirectoryUrl()

void GlobalSessionService::setGlobalDirectoryUrl ( const std::string & _url)
inline

◆ setUrl()

void GlobalSessionService::setUrl ( const std::string & _url)
inline

◆ startHealthCheck()

void GlobalSessionService::startHealthCheck ( void )

◆ stopHealthCheck()

void GlobalSessionService::stopHealthCheck ( bool _joinThread)

◆ url()

const std::string & GlobalSessionService::url ( void ) const
inline

◆ ~GlobalSessionService()

GlobalSessionService::~GlobalSessionService ( )
privatevirtual

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