omegalib
13.1
|
SystemManager is the kernel of the omegalib runtime. More...
#include <SystemManager.h>
Public Member Functions | |
void | setupConfig (Config *cfg) |
sets up the system configuration More... | |
void | setup (Config *cfg) |
Initializes the system manager. More... | |
void | setupRemote (Config *cfg, const String &masterHostname) |
void | initialize () |
void | run () |
Starts running the current application. More... | |
void | postExitRequest (const String &reason="Undefined reason") |
Sends an exit request to the system manager. More... | |
void | cleanup () |
Cleans up runtime resources, performs final debug checks etc. More... | |
Config * | getAppConfig () |
Gets the application configuration. More... | |
void | setAppConfig (Config *cfg) |
Sets the application configuration. More... | |
void | loadAppConfig (const String &filename) |
Loads an application configuration file. More... | |
Config * | getSystemConfig () |
Gets the system configuration. More... | |
DataManager * | getDataManager () |
StatsManager * | getStatsManager () |
Gets the stats manager instance. (on master node only) More... | |
ServiceManager * | getServiceManager () |
Gets the ServiceManager object. More... | |
DisplaySystem * | getDisplaySystem () |
Gets the DisplaySystem object. More... | |
void | setDisplaySystem (DisplaySystem *value) |
Sets the DisplaySystem object. More... | |
ApplicationBase * | getApplication () |
Gets the ApplicationBase object. More... | |
void | setApplication (ApplicationBase *value) |
Sets the ApplicationBase object. More... | |
bool | isExitRequested () |
const String & | getExitReason () |
bool | isInitialized () |
bool | isMaster () |
String | getHostname () |
const String & | getHostnameAndPort () |
PythonInterpreter * | getScriptInterpreter () |
MultiInstanceConfig & | getMultiInstanceConfig () |
void | setupServiceManager () |
void | setupDisplaySystem () |
MissionControlServer * | getMissionControlServer () |
Mission Control. More... | |
MissionControlClient * | getMissionControlClient () |
Returns a mission control client instance. More... | |
void | setupMissionControl (const String &mode) |
Static Public Member Functions | |
static bool | settingExists (const String &name) |
Utility method: searches for setting in application and system configuration file, returns true if it exists. More... | |
static Setting & | settingLookup (const String &name) |
Utility method: searches for setting in application and system configuration file, returns a reference to it if it exists. More... | |
static SystemManager * | instance () |
SystemManager is the kernel of the omegalib runtime.
It takes care of setting up the system, starting up and shutting down services and displays, and it manages the application execution.
void omega::SystemManager::cleanup | ( | ) |
Cleans up runtime resources, performs final debug checks etc.
|
inline |
Gets the application configuration.
|
inline |
Gets the ApplicationBase object.
|
inline |
|
inline |
Gets the DisplaySystem object.
|
inline |
String omega::SystemManager::getHostname | ( | ) |
const String& omega::SystemManager::getHostnameAndPort | ( | ) |
|
inline |
Returns a mission control client instance.
Returns NULL if no mission control client is runnning.
|
inline |
Mission Control.
Returns a mission control server instance. Returns NULL if no mission control server is runnning.
|
inline |
|
inline |
|
inline |
Gets the ServiceManager object.
|
inline |
Gets the stats manager instance. (on master node only)
|
inline |
Gets the system configuration.
void omega::SystemManager::initialize | ( | ) |
|
static |
|
inline |
|
inline |
|
inline |
void omega::SystemManager::loadAppConfig | ( | const String & | filename | ) |
Loads an application configuration file.
void omega::SystemManager::postExitRequest | ( | const String & | reason = "Undefined reason" | ) |
Sends an exit request to the system manager.
void omega::SystemManager::run | ( | ) |
Starts running the current application.
This method does not return until the application is done running.
|
inline |
Sets the application configuration.
|
inline |
Sets the ApplicationBase object.
|
inline |
Sets the DisplaySystem object.
|
static |
Utility method: searches for setting in application and system configuration file, returns true if it exists.
Utility method: searches for setting in application and system configuration file, returns a reference to it if it exists.
void omega::SystemManager::setup | ( | Config * | cfg | ) |
Initializes the system manager.
void omega::SystemManager::setupConfig | ( | Config * | cfg | ) |
sets up the system configuration
void omega::SystemManager::setupDisplaySystem | ( | ) |
void omega::SystemManager::setupMissionControl | ( | const String & | mode | ) |
void omega::SystemManager::setupServiceManager | ( | ) |