#include <SalomeHPContainer.hxx>


Public Member Functions | |
| SalomeHPContainer () | |
| SalomeHPContainer (const SalomeHPContainer &other) | |
| void | assignPG (const PlayGround *pg) override |
| void | setSizeOfPool (int sz) |
| int | getSizeOfPool () const |
| std::size_t | getNumberOfFreePlace () const |
| void | allocateFor (const std::vector< const Task * > &nodes) |
| void | release (const Task *node) override |
| 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 |
| std::string | getDiscreminantStrOfThis (const Task *askingNode) const |
| bool | isAlreadyStarted (const Task *askingNode) const |
| void | start (const Task *askingNode) |
| void | shutdown (int level) |
| std::string | getPlacementId (const Task *askingNode) const |
| std::string | getFullPlacementId (const Task *askingNode) const |
| Container * | clone () const |
| Container * | cloneAlways () 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) |
| std::map< std::string, std::string > | getProperties () const |
| std::map< std::string, std::string > | getResourceProperties (const std::string &name) const |
| void | checkCapabilityToDealWith (const ComponentInstance *inst) const |
| std::vector< std::string > | getKernelContainerNames () const |
| int | getNumberOfCoresPerWorker () const |
| std::size_t | locateTask (const Task *askingNode) const |
| const SalomeContainerTools & | getContainerInfo () const |
| std::vector< std::string > | getComponentNames () const |
| int | getShutdownLev () const |
| SalomeContainerMonoHelper * | getHelperOfTask (const Task *node) |
| const SalomeContainerMonoHelper * | getHelperOfTask (const Task *node) const |
Public Member Functions inherited from YACS::ENGINE::HomogeneousPoolContainer | |
| void | attachOnCloning () const |
| void | dettachOnCloning () const |
| bool | isAttachedOnCloning () const |
| void | setAttachOnCloningStatus (bool val) const |
| std::mutex & | getLocker () const |
Public Member Functions inherited from YACS::ENGINE::Container | |
| virtual void | start (const Task *askingNode, const std::string &resource_name, const std::string &container_name) |
| virtual bool | canAcceptImposedResource () |
| virtual bool | isUsingPythonCache () |
| virtual void | usePythonCache (bool v) |
| 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 [] ="HPSalome" |
Static Public Attributes inherited from YACS::ENGINE::HomogeneousPoolContainer | |
| static const char | SIZE_OF_POOL_KEY [] ="SizeOfPool" |
| static const char | INITIALIZE_SCRIPT_KEY [] ="InitializeScriptKey" |
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 | |
| ~SalomeHPContainer () | |
Protected Member Functions inherited from YACS::ENGINE::HomogeneousPoolContainer | |
| HomogeneousPoolContainer () | |
| virtual | ~HomogeneousPoolContainer () |
| const PlayGround * | getPG () const |
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 | |
| std::mutex | _lock |
| int | _shutdownLevel |
| SalomeContainerTools | _sct |
| std::vector< std::string > | _componentNames |
| SalomeHPContainerVectOfHelper | _launchModeType |
| std::string | _initScript |
Protected Attributes inherited from YACS::ENGINE::Container | |
| std::string | _name |
| bool | _isAttachedOnCloning |
| Proc * | _proc |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt |
Definition at line 44 of file SalomeHPContainer.hxx.
| SalomeHPContainer::SalomeHPContainer | ( | ) |
Definition at line 32 of file SalomeHPContainer.cxx.
Referenced by cloneAlways().
| SalomeHPContainer::SalomeHPContainer | ( | const SalomeHPContainer & | other | ) |
Definition at line 36 of file SalomeHPContainer.cxx.
|
protected |
Definition at line 93 of file SalomeHPContainer.cxx.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 211 of file SalomeHPContainer.cxx.
References _componentNames.
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 80 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeHPContainerVectOfHelper::allocateForCrude(), and YACS::ENGINE::HomogeneousPoolContainer::getPG().
|
overridevirtual |
Reimplemented from YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 40 of file SalomeHPContainer.cxx.
References YACS::ENGINE::HomogeneousPoolContainer::assignPG(), getNumberOfCoresPerWorker(), YACS::ENGINE::HomogeneousPoolContainer::getPG(), and setSizeOfPool().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 231 of file SalomeHPContainer.cxx.
References YACS::ENGINE::ComponentInstance::getKind(), and YACS::ENGINE::SalomeHPComponent::KIND.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 205 of file SalomeHPContainer.cxx.
References _initScript, _sct, and YACS::ENGINE::SalomeContainerTools::clearProperties().
|
virtual |
It is not a bug here ! clone for homogeneous container is not supposed to be copied !
Implements YACS::ENGINE::Container.
Definition at line 156 of file SalomeHPContainer.cxx.
References YACS::ENGINE::RefCounter::incrRef().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 162 of file SalomeHPContainer.cxx.
References SalomeHPContainer().
|
inline |
Definition at line 83 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
inline |
Definition at line 82 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
virtual |
Reimplemented from YACS::ENGINE::Container.
Definition at line 102 of file SalomeHPContainer.cxx.
References YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 143 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeContainerToolsBase::GetFullPlacementId(), YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTask(), YACS::ENGINE::HomogeneousPoolContainer::getLocker(), and YACS::ENGINE::HomogeneousPoolContainer::getPG().
|
inline |
Definition at line 85 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
inline |
Definition at line 86 of file SalomeHPContainer.hxx.
| std::vector< std::string > SalomeHPContainer::getKernelContainerNames | ( | ) | const |
Definition at line 237 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::getKernelContainerNames().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 97 of file SalomeHPContainer.cxx.
References KIND.
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 242 of file SalomeHPContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::getNumberOfCoresPerWorker().
Referenced by assignPG(), getNumberOfFreePlace(), release(), and start().
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 57 of file SalomeHPContainer.cxx.
References getNumberOfCoresPerWorker(), YACS::ENGINE::PlayGround::getNumberOfFreePlace(), and YACS::ENGINE::HomogeneousPoolContainer::getPG().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 133 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTask(), YACS::ENGINE::HomogeneousPoolContainer::getLocker(), YACS::ENGINE::HomogeneousPoolContainer::getPG(), and YACS::ENGINE::SalomeContainerToolsBase::GetPlacementId().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 216 of file SalomeHPContainer.cxx.
References _initScript, _sct, YACS::ENGINE::SalomeContainerTools::getProperties(), getSizeOfPool(), YACS::ENGINE::HomogeneousPoolContainer::INITIALIZE_SCRIPT_KEY, and YACS::ENGINE::HomogeneousPoolContainer::SIZE_OF_POOL_KEY.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 186 of file SalomeHPContainer.cxx.
References _initScript, _sct, YACS::ENGINE::Container::AOC_ENTRY, YACS::ENGINE::SalomeContainerTools::getProperty(), getSizeOfPool(), YACS::ENGINE::HomogeneousPoolContainer::INITIALIZE_SCRIPT_KEY, and YACS::ENGINE::HomogeneousPoolContainer::SIZE_OF_POOL_KEY.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 226 of file SalomeHPContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::getResourceProperties().
|
inline |
Definition at line 84 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 52 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::size().
Referenced by getProperties(), and getProperty().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 108 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTaskThreadSafe(), and YACS::ENGINE::SalomeContainerMonoHelper::isAlreadyStarted().
|
inline |
Definition at line 81 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
inlinevirtual |
For thread safety for concurrent load operation on same Container.
Implements YACS::ENGINE::Container.
Definition at line 57 of file SalomeHPContainer.hxx.
|
overridevirtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 87 of file SalomeHPContainer.cxx.
References _launchModeType, getNumberOfCoresPerWorker(), YACS::ENGINE::HomogeneousPoolContainer::getPG(), YACS::ENGINE::SalomeHPContainerVectOfHelper::release(), and YACS::ENGINE::PlayGround::release().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 167 of file SalomeHPContainer.cxx.
References _initScript, _sct, YACS::ENGINE::Container::AOC_ENTRY, YACS::ENGINE::HomogeneousPoolContainer::INITIALIZE_SCRIPT_KEY, YACS::ENGINE::SalomeContainerTools::setProperty(), setSizeOfPool(), and YACS::ENGINE::HomogeneousPoolContainer::SIZE_OF_POOL_KEY.
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 47 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::resize().
Referenced by assignPG(), and setProperty().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 121 of file SalomeHPContainer.cxx.
References _launchModeType, _shutdownLevel, YACS::ENGINE::SalomeHPContainerVectOfHelper::at(), yacsorb.CORBAEngineTest::i, YACS::ENGINE::SalomeContainerMonoHelper::shutdown(), and YACS::ENGINE::SalomeHPContainerVectOfHelper::size().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 114 of file SalomeHPContainer.cxx.
References _componentNames, _launchModeType, _sct, _shutdownLevel, YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTaskThreadSafe(), getNumberOfCoresPerWorker(), YACS::ENGINE::HomogeneousPoolContainer::getPG(), and YACS::ENGINE::SalomeContainerToolsBase::Start().
|
inlinevirtual |
For thread safety for concurrent load operation on same Container.
Implements YACS::ENGINE::Container.
Definition at line 59 of file SalomeHPContainer.hxx.
|
protected |
Definition at line 98 of file SalomeHPContainer.hxx.
Referenced by addComponentName(), and start().
|
protected |
Definition at line 101 of file SalomeHPContainer.hxx.
Referenced by clearProperties(), getProperties(), getProperty(), and setProperty().
|
protected |
Definition at line 100 of file SalomeHPContainer.hxx.
Referenced by allocateFor(), getFullPlacementId(), getKernelContainerNames(), getPlacementId(), getSizeOfPool(), isAlreadyStarted(), release(), setSizeOfPool(), shutdown(), and start().
|
protected |
Definition at line 95 of file SalomeHPContainer.hxx.
|
protected |
Definition at line 97 of file SalomeHPContainer.hxx.
Referenced by clearProperties(), getNumberOfCoresPerWorker(), getProperties(), getProperty(), getResourceProperties(), setProperty(), and start().
|
protected |
Definition at line 96 of file SalomeHPContainer.hxx.
Referenced by shutdown(), and start().
|
static |
Definition at line 89 of file SalomeHPContainer.hxx.
Referenced by getKind().