32 #ifndef CGLOBALCONFIGURATION_HPP
33 #define CGLOBALCONFIGURATION_HPP
38 #include <boost/date_time/posix_time/posix_time.hpp>
39 #include <boost/asio/io_service.hpp>
std::string m_hostname
Definition: CGlobalConfiguration.hpp:115
std::string m_adapterConfigPath
Socket endpoint address for devices.
Definition: CGlobalConfiguration.hpp:123
void SetListenAddress(std::string a)
Set the address to on.
Definition: CGlobalConfiguration.hpp:61
void SetInvariantCheck(bool flag)
Set the invariant check flag.
Definition: CGlobalConfiguration.hpp:80
static CGlobalConfiguration & Instance()
Returns the singleton instance of the global configuration.
Definition: CGlobalConfiguration.hpp:49
void SetDeviceConfigPath(std::string p)
Set the path to the device class XML specification file.
Definition: CGlobalConfiguration.hpp:72
void SetMaliciousFlag(bool flag)
Set the malicious load balance flag.
Definition: CGlobalConfiguration.hpp:78
std::string GetECNPort() const
Get the port used to listen for ECN messages.
Definition: CGlobalConfiguration.hpp:111
A singleton class which tracks commonly used configuration options.
Definition: CGlobalConfiguration.hpp:45
std::string GetDevicesEndpoint() const
Get the socket endpoint address.
Definition: CGlobalConfiguration.hpp:95
std::string GetUUID() const
Get the UUID.
Definition: CGlobalConfiguration.hpp:86
void SetDevicesEndpoint(std::string e)
Set the socket endpoint address.
Definition: CGlobalConfiguration.hpp:68
float GetMigrationStep() const
Get the size of a load balance migration.
Definition: CGlobalConfiguration.hpp:105
void SetFactoryPort(unsigned short port)
Set the plug-and-play port number.
Definition: CGlobalConfiguration.hpp:66
unsigned short GetFactoryPort() const
Get the plug-and-play port number.
Definition: CGlobalConfiguration.hpp:93
std::string m_address
The node uuid.
Definition: CGlobalConfiguration.hpp:119
bool m_invariant
Definition: CGlobalConfiguration.hpp:128
std::string m_topologyConfigPath
Path to the device class config.
Definition: CGlobalConfiguration.hpp:125
std::string GetListenPort() const
Get the port.
Definition: CGlobalConfiguration.hpp:84
void SetTopologyConfigPath(std::string p)
Set the path to the topology config file.
Definition: CGlobalConfiguration.hpp:74
std::string m_deviceConfigPath
Path to the adapter configuration.
Definition: CGlobalConfiguration.hpp:124
void SetECNPort(std::string ecn_port)
Set the port used to listen for ECN messages.
Definition: CGlobalConfiguration.hpp:113
boost::posix_time::time_duration m_clockskew
The listening address.
Definition: CGlobalConfiguration.hpp:120
void SetAdapterConfigPath(std::string ac)
Set the path to the adapter configuration file.
Definition: CGlobalConfiguration.hpp:70
void SetListenPort(std::string p)
Set the port.
Definition: CGlobalConfiguration.hpp:57
std::string m_uuid
ECN port.
Definition: CGlobalConfiguration.hpp:118
boost::posix_time::time_duration GetClockSkew() const
Get the Skew of the local clock.
Definition: CGlobalConfiguration.hpp:90
std::string GetAdapterConfigPath() const
Get the path to the adapter configuration file.
Definition: CGlobalConfiguration.hpp:97
void SetUUID(std::string u)
Set the uuid.
Definition: CGlobalConfiguration.hpp:59
bool GetMaliciousFlag() const
Get the malicious load balance flag.
Definition: CGlobalConfiguration.hpp:107
std::string GetHostname() const
Get the hostname.
Definition: CGlobalConfiguration.hpp:82
static const short MAX_PACKET_SIZE
Intentionally signed. UINT16_MAX is too big for a UDP datagram, anyway.
Definition: CGlobalConfiguration.hpp:101
std::string GetListenAddress() const
Get the address.
Definition: CGlobalConfiguration.hpp:88
bool m_malicious
Size of a load balance migration.
Definition: CGlobalConfiguration.hpp:127
void SetHostname(std::string h)
Set the hostname.
Definition: CGlobalConfiguration.hpp:55
unsigned short m_factory_port
The skew of the clock.
Definition: CGlobalConfiguration.hpp:121
std::string m_devicesEndpoint
Port number for adapter factory.
Definition: CGlobalConfiguration.hpp:122
float m_migrationStep
Path to the topology config.
Definition: CGlobalConfiguration.hpp:126
std::string m_port
Node hostname.
Definition: CGlobalConfiguration.hpp:116
void SetClockSkew(boost::posix_time::time_duration t)
Set the clock skew.
Definition: CGlobalConfiguration.hpp:63
std::string GetDeviceConfigPath() const
Get the path to the device class XML specification file.
Definition: CGlobalConfiguration.hpp:99
std::string m_ecn_port
Port number.
Definition: CGlobalConfiguration.hpp:117
void SetMigrationStep(float v)
Set the size of a load balance migration.
Definition: CGlobalConfiguration.hpp:76
bool GetInvariantCheck() const
Get the invariant check flag.
Definition: CGlobalConfiguration.hpp:109
std::string GetTopologyConfigPath() const
Path to the topology specification file.
Definition: CGlobalConfiguration.hpp:103