UniSet @VERSION@
Классы | Открытые члены | Открытые статические члены | Полный список членов класса
Класс uniset::ConfigLoader

#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>

Методы

◆ load() [1/2]

ConfigLoader::LauncherConfig uniset::ConfigLoader::load ( const std::shared_ptr< UniXML > &  xml,
const std::string &  launcherName = "" 
)

Load launcher configuration from UniXML.

Аргументы
xmlUniXML object
launcherNameName of Launcher section
Возвращает
Loaded configuration

◆ load() [2/2]

ConfigLoader::LauncherConfig uniset::ConfigLoader::load ( const std::string &  xmlFile,
const std::string &  launcherName = "" 
)

Load launcher configuration from XML file.

Аргументы
xmlFilePath to XML configuration file
launcherNameName of Launcher section (default: first found)
Возвращает
Loaded configuration

◆ needsNamingService()

bool uniset::ConfigLoader::needsNamingService ( const std::shared_ptr< Configuration > &  conf)
static

Check if Naming Service is required. Based on localIOR parameter: if localIOR=1, Naming Service is NOT needed.

Аргументы
confUniSet Configuration object
Возвращает
true if Naming Service is required