#include <SalomeContainerTools.hxx>
Public Member Functions | |
SalomeContainerTools () | |
SalomeContainerTools (const SalomeContainerTools &other) | |
std::string | getProperty (const std::string &name) const |
void | setProperty (const std::string &name, const std::string &value) |
const std::map< std::string, std::string > & | getProperties () const |
void | clearProperties () |
std::map< std::string, std::string > | getResourceProperties (const std::string &name) const |
void | addToComponentList (const std::string &name) |
void | addToResourceList (const std::string &name) |
std::string | getContainerName () const |
void | setContainerName (const std::string &name) |
std::string | getNotNullContainerName (const Container *contPtr, const Task *askingNode, bool &isEmpty) const |
std::string | getHostName () const |
Engines::ContainerParameters | getParameters () const |
Static Public Member Functions | |
static void | SetContainerNameOf (Engines::ContainerParameters ¶ms, const std::string &name) |
static void | Start (const std::vector< std::string > &compoNames, SalomeContainerHelper *schelp, SalomeContainerTools &sct, int &shutdownLevel, const Container *cont, const Task *askingNode) |
static CORBA::Object_ptr | LoadComponent (SalomeContainerHelper *launchModeType, Container *cont, Task *askingNode) |
static CORBA::Object_ptr | CreateComponentInstance (Container *cont, Engines::Container_ptr contPtr, const ComponentInstance *inst) |
static std::string | GetPlacementId (const SalomeContainerHelper *launchModeType, const Container *cont, const Task *askingNode) |
static std::string | GetFullPlacementId (const SalomeContainerHelper *launchModeType, const Container *cont, const Task *askingNode) |
Protected Attributes | |
std::map< std::string, std::string > | _propertyMap |
Engines::ContainerParameters | _params |
Definition at line 40 of file SalomeContainerTools.hxx.
SalomeContainerTools::SalomeContainerTools | ( | ) |
Definition at line 45 of file SalomeContainerTools.cxx.
References _params.
SalomeContainerTools::SalomeContainerTools | ( | const SalomeContainerTools & | other | ) |
Definition at line 51 of file SalomeContainerTools.cxx.
void SalomeContainerTools::addToComponentList | ( | const std::string & | name | ) |
Definition at line 198 of file SalomeContainerTools.cxx.
References _params, and CORBAEngineTest::i.
Referenced by setProperty(), and Start().
void SalomeContainerTools::addToResourceList | ( | const std::string & | name | ) |
Definition at line 213 of file SalomeContainerTools.cxx.
References _params, and CORBAEngineTest::i.
Referenced by YACS::ENGINE::SalomeContainer::addToResourceList(), and setProperty().
void SalomeContainerTools::clearProperties | ( | ) |
Definition at line 55 of file SalomeContainerTools.cxx.
References _params, and _propertyMap.
Referenced by YACS::ENGINE::SalomeContainer::clearProperties(), and YACS::ENGINE::SalomeHPContainer::clearProperties().
|
static |
Definition at line 450 of file SalomeContainerTools.cxx.
References DEBTRACE, YACS::ENGINE::ComponentInstance::getCompoName(), YACS::ENGINE::Container::getProc(), YACS::ENGINE::PropertyInterface::getProperties(), YACS::ENGINE::Node::getProperties(), YACS::ENGINE::Node::getProperty(), and p.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::loadComponent(), and LoadComponent().
std::string SalomeContainerTools::getContainerName | ( | ) | const |
Definition at line 228 of file SalomeContainerTools.cxx.
References _params.
|
static |
Definition at line 517 of file SalomeContainerTools.cxx.
References YACS::ENGINE::SalomeContainerHelper::getContainer(), YACS::ENGINE::Container::isAlreadyStarted(), and PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::SalomeContainer::getFullPlacementId(), and YACS::ENGINE::SalomeHPContainer::getFullPlacementId().
std::string SalomeContainerTools::getHostName | ( | ) | const |
Definition at line 260 of file SalomeContainerTools.cxx.
References _params.
std::string SalomeContainerTools::getNotNullContainerName | ( | const Container * | contPtr, |
const Task * | askingNode, | ||
bool & | isEmpty | ||
) | const |
Definition at line 238 of file SalomeContainerTools.cxx.
References _params, YACS::ENGINE::Container::getDiscreminantStrOfThis(), and YACS::ENGINE::Container::getName().
Referenced by Start().
|
inline |
|
static |
Definition at line 497 of file SalomeContainerTools.cxx.
References YACS::ENGINE::SalomeContainerHelper::getContainer(), CORBAEngineTest::i, YACS::ENGINE::Container::isAlreadyStarted(), and PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::SalomeContainer::getPlacementId(), and YACS::ENGINE::SalomeHPContainer::getPlacementId().
|
inline |
Definition at line 47 of file SalomeContainerTools.hxx.
Referenced by YACS::ENGINE::SalomeContainer::getProperties(), and YACS::ENGINE::SalomeHPContainer::getProperties().
std::string SalomeContainerTools::getProperty | ( | const std::string & | name | ) | const |
Definition at line 61 of file SalomeContainerTools.cxx.
References _propertyMap.
Referenced by YACS::ENGINE::SalomeContainer::getProperty(), and YACS::ENGINE::SalomeHPContainer::getProperty().
std::map< std::string, std::string > SalomeContainerTools::getResourceProperties | ( | const std::string & | name | ) | const |
Definition at line 270 of file SalomeContainerTools.cxx.
References YACS::ENGINE::RuntimeSALOME::getOrb(), YACS::ENGINE::getSALOMERuntime(), and orb.
Referenced by YACS::ENGINE::SalomeContainer::getResourceProperties(), and YACS::ENGINE::SalomeHPContainer::getResourceProperties().
|
static |
Definition at line 425 of file SalomeContainerTools.cxx.
References CreateComponentInstance(), DEBTRACE, YACS::ENGINE::Task::getComponent(), YACS::ENGINE::SalomeContainerHelper::getContainer(), YACS::ENGINE::Container::isAlreadyStarted(), and YACS::ENGINE::Container::start().
Referenced by YACS::ENGINE::SalomeContainer::loadComponent().
void SalomeContainerTools::setContainerName | ( | const std::string & | name | ) |
Definition at line 233 of file SalomeContainerTools.cxx.
References _params, and SetContainerNameOf().
|
static |
Definition at line 265 of file SalomeContainerTools.cxx.
Referenced by setContainerName(), and Start().
void SalomeContainerTools::setProperty | ( | const std::string & | name, |
const std::string & | value | ||
) |
Definition at line 70 of file SalomeContainerTools.cxx.
References _params, _propertyMap, addToComponentList(), and addToResourceList().
Referenced by YACS::ENGINE::SalomeContainer::setProperty(), and YACS::ENGINE::SalomeHPContainer::setProperty().
|
static |
[in] | compoNames | |
[in,out] | shutdownLevel |
Definition at line 314 of file SalomeContainerTools.cxx.
References addToComponentList(), DEBTRACE, YACS::ENGINE::SalomeContainerHelper::getDftLaunchMode(), getNotNullContainerName(), getParameters(), YACS::ENGINE::getSALOMERuntime(), orb, YACS::ENGINE::SalomeContainerHelper::setContainer(), and SetContainerNameOf().
Referenced by YACS::ENGINE::SalomeContainer::start(), and YACS::ENGINE::SalomeHPContainer::start().
|
protected |
Definition at line 67 of file SalomeContainerTools.hxx.
Referenced by addToComponentList(), addToResourceList(), clearProperties(), getContainerName(), getHostName(), getNotNullContainerName(), SalomeContainerTools(), setContainerName(), and setProperty().
|
protected |
Definition at line 66 of file SalomeContainerTools.hxx.
Referenced by clearProperties(), getProperty(), and setProperty().