|
UniSet @VERSION@
|
#include <ConfigLoader.h>
Классы | |
| struct | LauncherConfig |
Открытые члены | |
| LauncherConfig | load (const std::string &xmlFile, const std::string &launcherName="") |
| LauncherConfig | load (const std::shared_ptr< UniXML > &xml, const std::string &launcherName="") |
Открытые статические члены | |
| static bool | needsNamingService (const std::shared_ptr< Configuration > &conf) |
Configuration loader for Launcher. Loads process and group definitions from XML configuration.
Expected XML structure: <Launcher name="Launcher1" healthCheckInterval="5000" restartDelay="3000"> <ProcessGroups> <group name="naming" order="0"> <process name="omniNames" command="omniNames" args="-start" readyCheck="tcp:2809" critical="true"> </group> <group name="sm" order="1" depends="naming"> <process name="SharedMemory" command="uniset2-smemory" args="--confile ${CONFFILE}" readyCheck="corba:SharedMemory"> </group> </ProcessGroups> <Environment> </Environment> </Launcher>
| ConfigLoader::LauncherConfig uniset::ConfigLoader::load | ( | const std::shared_ptr< UniXML > & | xml, |
| const std::string & | launcherName = "" |
||
| ) |
| ConfigLoader::LauncherConfig uniset::ConfigLoader::load | ( | const std::string & | xmlFile, |
| const std::string & | launcherName = "" |
||
| ) |
Load launcher configuration from XML file.
| xmlFile | Path to XML configuration file |
| launcherName | Name of Launcher section (default: first found) |
|
static |
Check if Naming Service is required. Based on localIOR parameter: if localIOR=1, Naming Service is NOT needed.
| conf | UniSet Configuration object |