#include <SalomeContainer.hxx>


Public Member Functions | |
| SalomeContainer () | |
| SalomeContainer (const SalomeContainer &other) | |
| SalomeContainer (const Container &other, const SalomeContainerTools &sct, const SalomeContainerHelper *lmt, const std::vector< std::string > &componentNames, int shutdownLev) | |
| void | lock () |
| For thread safety for concurrent load operation on same Container. More... | |
| void | unLock () |
| For thread safety for concurrent load operation on same Container. More... | |
| std::string | getKind () const |
| bool | isAlreadyStarted (const Task *askingNode) const |
| Check if the component instance container is already started. More... | |
| Engines::Container_ptr | getContainerPtr (const Task *askingNode) const |
| void | start (const Task *askingNode) override |
| Start a salome container (true salome container not yacs one) with given ContainerParameters (_params) More... | |
| void | start (const Task *askingNode, const std::string &resource_name, const std::string &container_name) override |
| bool | canAcceptImposedResource () override |
| Container * | clone () const |
| WARNING ! clone behaviour MUST be in coherence with what is returned by isAttachedOnCloning() method More... | |
| Container * | cloneAlways () const |
| std::string | getPlacementId (const Task *askingNode) const |
| Get the container placement id for a component instance. More... | |
| std::string | getFullPlacementId (const Task *askingNode) const |
| Get the container full path for a component instance. More... | |
| void | checkCapabilityToDealWith (const ComponentInstance *inst) const |
| void | setProperty (const std::string &name, const std::string &value) |
| std::string | getProperty (const std::string &name) const |
| void | clearProperties () |
| void | addComponentName (const std::string &name) |
| void | addToResourceList (const std::string &name) |
| virtual CORBA::Object_ptr | loadComponent (Task *inst) |
| Load a component instance in this container. More... | |
| void | shutdown (int level) |
| std::map< std::string, std::string > | getResourceProperties (const std::string &name) const |
| std::map< std::string, std::string > | getProperties () const |
Public Member Functions inherited from YACS::ENGINE::Container | |
| virtual std::string | getDiscreminantStrOfThis (const Task *askingNode) const |
| virtual bool | isUsingPythonCache () |
| virtual void | usePythonCache (bool v) |
| virtual void | setAttachOnCloningStatus (bool val) const |
| virtual void | attachOnCloning () const |
| virtual void | dettachOnCloning () const |
| virtual bool | isAttachedOnCloning () const |
| virtual bool | isSupportingRTODefNbOfComp () const |
| virtual void | setProperties (const std::map< std::string, std::string > &properties) |
| virtual std::string | getName () const |
| void | setName (std::string name) |
| WARNING ! name is used in edition to identify different containers, it is not the runtime name of the container More... | |
| void | setProc (Proc *proc) |
| Proc * | getProc () |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
| unsigned int | getRefCnt () const |
| void | incrRef () const |
| bool | decrRef () const |
Static Public Attributes | |
| static const char | KIND [] ="Salome" |
| static const char | TYPE_PROPERTY_STR [] ="type" |
Static Public Attributes inherited from YACS::ENGINE::Container | |
| static const char | KIND_ENTRY [] ="container_kind" |
| static const char | AOC_ENTRY [] ="attached_on_cloning" |
| static const char | USE_PYCACHE_PROPERTY [] ="use_py_cache" |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 |
Protected Member Functions | |
| virtual | ~SalomeContainer () |
Protected Member Functions inherited from YACS::ENGINE::Container | |
| Container () | |
| virtual | ~Container () |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
| RefCounter () | |
| RefCounter (const RefCounter &other) | |
| virtual | ~RefCounter () |
Protected Attributes | |
| YACS::BASES::Mutex | _mutex |
| thread safety in Salome ??? More... | |
| std::vector< std::string > | _componentNames |
| SalomeContainerHelper * | _launchModeType |
| int | _shutdownLevel |
| SalomeContainerTools | _sct |
Protected Attributes inherited from YACS::ENGINE::Container | |
| std::string | _name |
| bool | _isAttachedOnCloning |
| Proc * | _proc |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt |
Friends | |
| class | SalomeComponent |
Definition at line 38 of file SalomeContainer.hxx.
| SalomeContainer::SalomeContainer | ( | ) |
Definition at line 58 of file SalomeContainer.cxx.
Referenced by clone(), and cloneAlways().
| SalomeContainer::SalomeContainer | ( | const SalomeContainer & | other | ) |
Definition at line 62 of file SalomeContainer.cxx.
| SalomeContainer::SalomeContainer | ( | const Container & | other, |
| const SalomeContainerTools & | sct, | ||
| const SalomeContainerHelper * | lmt, | ||
| const std::vector< std::string > & | componentNames, | ||
| int | shutdownLev | ||
| ) |
|
protectedvirtual |
Definition at line 78 of file SalomeContainer.cxx.
References _launchModeType, and YACS::ENGINE::RefCounter::decrRef().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 165 of file SalomeContainer.cxx.
References _componentNames.
| void SalomeContainer::addToResourceList | ( | const std::string & | name | ) |
Definition at line 170 of file SalomeContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::addToResourceList().
|
overridevirtual |
Reimplemented from YACS::ENGINE::Container.
Definition at line 247 of file SalomeContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeContainerHelper::getType(), and YACS::ENGINE::SalomeContainerMultiHelper::TYPE_NAME.
Referenced by start().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 114 of file SalomeContainer.cxx.
References YACS::ENGINE::ComponentInstance::getKind(), and YACS::ENGINE::SalomeComponent::KIND.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 160 of file SalomeContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::clearProperties().
|
virtual |
WARNING ! clone behaviour MUST be in coherence with what is returned by isAttachedOnCloning() method
Implements YACS::ENGINE::Container.
Definition at line 98 of file SalomeContainer.cxx.
References YACS::ENGINE::Container::_isAttachedOnCloning, YACS::ENGINE::RefCounter::incrRef(), and SalomeContainer().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 109 of file SalomeContainer.cxx.
References SalomeContainer().
| Engines::Container_ptr SalomeContainer::getContainerPtr | ( | const Task * | askingNode | ) | const |
Definition at line 214 of file SalomeContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeContainerHelper::getContainer().
Referenced by YACS::ENGINE::PythonEntry::GetContainerLog(), GetContainerObj(), and YACS::ENGINE::DistributedPythonNode::load().
|
virtual |
Get the container full path for a component instance.
| inst | the component instance |
Implements YACS::ENGINE::Container.
Definition at line 199 of file SalomeContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeContainerToolsBase::GetFullPlacementId().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 93 of file SalomeContainer.cxx.
References KIND.
|
virtual |
Get the container placement id for a component instance.
| inst | the component instance |
Implements YACS::ENGINE::Container.
Definition at line 189 of file SalomeContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeContainerToolsBase::GetPlacementId().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 268 of file SalomeContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::getProperties().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 147 of file SalomeContainer.cxx.
References YACS::ENGINE::Container::_isAttachedOnCloning, _launchModeType, _sct, YACS::ENGINE::Container::AOC_ENTRY, YACS::ENGINE::SalomeContainerTools::getProperty(), YACS::ENGINE::SalomeContainerHelper::getType(), and TYPE_PROPERTY_STR.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 263 of file SalomeContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::getResourceProperties().
|
virtual |
Check if the component instance container is already started.
| inst | the component instance |
Implements YACS::ENGINE::Container.
Definition at line 209 of file SalomeContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeContainerHelper::isAlreadyStarted().
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::loadComponent().
|
virtual |
Load a component instance in this container.
| inst | the component instance to load |
Reimplemented in YACS::ENGINE::SalomeContainerTmpForHP.
Definition at line 179 of file SalomeContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeContainerToolsBase::LoadComponent().
Referenced by YACS::ENGINE::SalomeComponent::load().
|
virtual |
For thread safety for concurrent load operation on same Container.
Implements YACS::ENGINE::Container.
Definition at line 83 of file SalomeContainer.cxx.
References _mutex.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 120 of file SalomeContainer.cxx.
References _launchModeType, _sct, YACS::ENGINE::Container::AOC_ENTRY, YACS::ENGINE::RefCounter::decrRef(), YACS::ENGINE::Container::setAttachOnCloningStatus(), YACS::ENGINE::SalomeContainerTools::setProperty(), YACS::ENGINE::SalomeContainerMonoHelper::TYPE_NAME, YACS::ENGINE::SalomeContainerMultiHelper::TYPE_NAME, and TYPE_PROPERTY_STR.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 252 of file SalomeContainer.cxx.
References _launchModeType, YACS::ENGINE::Container::_name, _shutdownLevel, DEBTRACE, and YACS::ENGINE::SalomeContainerHelper::shutdown().
|
overridevirtual |
Start a salome container (true salome container not yacs one) with given ContainerParameters (_params)
| inst | the component instance |
Implements YACS::ENGINE::Container.
Definition at line 223 of file SalomeContainer.cxx.
References _componentNames, _launchModeType, _sct, _shutdownLevel, and YACS::ENGINE::SalomeContainerToolsBase::Start().
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::loadComponent(), and start().
|
overridevirtual |
Reimplemented from YACS::ENGINE::Container.
Definition at line 228 of file SalomeContainer.cxx.
References _launchModeType, _sct, _shutdownLevel, canAcceptImposedResource(), YACS::ENGINE::Task::hasImposedResource(), YACS::ENGINE::SalomeContainerTools::setProperty(), YACS::ENGINE::SalomeContainerToolsBase::Start(), and start().
|
virtual |
For thread safety for concurrent load operation on same Container.
Implements YACS::ENGINE::Container.
Definition at line 88 of file SalomeContainer.cxx.
References _mutex.
|
friend |
Definition at line 40 of file SalomeContainer.hxx.
|
protected |
Definition at line 83 of file SalomeContainer.hxx.
Referenced by addComponentName(), and start().
|
protected |
Definition at line 84 of file SalomeContainer.hxx.
Referenced by canAcceptImposedResource(), getContainerPtr(), getFullPlacementId(), getPlacementId(), getProperty(), isAlreadyStarted(), loadComponent(), YACS::ENGINE::SalomeContainerTmpForHP::loadComponent(), setProperty(), shutdown(), start(), and ~SalomeContainer().
|
protected |
thread safety in Salome ???
Definition at line 82 of file SalomeContainer.hxx.
|
protected |
Definition at line 86 of file SalomeContainer.hxx.
Referenced by addToResourceList(), clearProperties(), getProperties(), getProperty(), getResourceProperties(), setProperty(), and start().
|
protected |
Definition at line 85 of file SalomeContainer.hxx.
Referenced by shutdown(), and start().
|
static |
Definition at line 74 of file SalomeContainer.hxx.
Referenced by getKind().
|
static |
Definition at line 75 of file SalomeContainer.hxx.
Referenced by getProperty(), and setProperty().