omegalib  13.1
omega::SystemManager Class Reference

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...
 
ConfiggetAppConfig ()
 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...
 
ConfiggetSystemConfig ()
 Gets the system configuration. More...
 
DataManagergetDataManager ()
 
StatsManagergetStatsManager ()
 Gets the stats manager instance. (on master node only) More...
 
ServiceManagergetServiceManager ()
 Gets the ServiceManager object. More...
 
DisplaySystemgetDisplaySystem ()
 Gets the DisplaySystem object. More...
 
void setDisplaySystem (DisplaySystem *value)
 Sets the DisplaySystem object. More...
 
ApplicationBasegetApplication ()
 Gets the ApplicationBase object. More...
 
void setApplication (ApplicationBase *value)
 Sets the ApplicationBase object. More...
 
bool isExitRequested ()
 
const StringgetExitReason ()
 
bool isInitialized ()
 
bool isMaster ()
 
String getHostname ()
 
const StringgetHostnameAndPort ()
 
PythonInterpretergetScriptInterpreter ()
 
MultiInstanceConfiggetMultiInstanceConfig ()
 
void setupServiceManager ()
 
void setupDisplaySystem ()
 
MissionControlServergetMissionControlServer ()
 Mission Control. More...
 
MissionControlClientgetMissionControlClient ()
 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 SettingsettingLookup (const String &name)
 Utility method: searches for setting in application and system configuration file, returns a reference to it if it exists. More...
 
static SystemManagerinstance ()
 

Detailed Description

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.

Member Function Documentation

void omega::SystemManager::cleanup ( )

Cleans up runtime resources, performs final debug checks etc.

Config * omega::SystemManager::getAppConfig ( )
inline

Gets the application configuration.

ApplicationBase * omega::SystemManager::getApplication ( )
inline

Gets the ApplicationBase object.

DataManager * omega::SystemManager::getDataManager ( )
inline
DisplaySystem * omega::SystemManager::getDisplaySystem ( )
inline

Gets the DisplaySystem object.

const String & omega::SystemManager::getExitReason ( )
inline
String omega::SystemManager::getHostname ( )
const String& omega::SystemManager::getHostnameAndPort ( )
MissionControlClient * omega::SystemManager::getMissionControlClient ( )
inline

Returns a mission control client instance.

Returns NULL if no mission control client is runnning.

MissionControlServer * omega::SystemManager::getMissionControlServer ( )
inline

Mission Control.

Returns a mission control server instance. Returns NULL if no mission control server is runnning.

MultiInstanceConfig & omega::SystemManager::getMultiInstanceConfig ( )
inline
PythonInterpreter * omega::SystemManager::getScriptInterpreter ( )
inline
ServiceManager * omega::SystemManager::getServiceManager ( )
inline

Gets the ServiceManager object.

StatsManager * omega::SystemManager::getStatsManager ( )
inline

Gets the stats manager instance. (on master node only)

Config * omega::SystemManager::getSystemConfig ( )
inline

Gets the system configuration.

void omega::SystemManager::initialize ( )
static SystemManager* omega::SystemManager::instance ( )
static
bool omega::SystemManager::isExitRequested ( )
inline
bool omega::SystemManager::isInitialized ( )
inline
bool omega::SystemManager::isMaster ( )
inline
void omega::SystemManager::loadAppConfig ( const String filename)

Loads an application configuration file.

Remarks
Changing the application configuration will not influence already loaded modules and services.
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.

void omega::SystemManager::setAppConfig ( Config cfg)
inline

Sets the application configuration.

Remarks
Changing the application configuration will not influence already loaded modules and services.
void omega::SystemManager::setApplication ( ApplicationBase value)
inline

Sets the ApplicationBase object.

void omega::SystemManager::setDisplaySystem ( DisplaySystem value)
inline

Sets the DisplaySystem object.

static bool omega::SystemManager::settingExists ( const String name)
static

Utility method: searches for setting in application and system configuration file, returns true if it exists.

static Setting& omega::SystemManager::settingLookup ( const String name)
static

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::setupRemote ( Config cfg,
const String masterHostname 
)
void omega::SystemManager::setupServiceManager ( )

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