#include <SalomeHPContainer.hxx>
Public Member Functions | |
SalomeHPContainer () | |
SalomeHPContainer (const SalomeHPContainer &other) | |
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) |
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) throw (Exception) |
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 throw (YACS::Exception) |
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 |
YACS::BASES::Mutex & | getLocker () |
Public Member Functions inherited from YACS::ENGINE::HomogeneousPoolContainer | |
void | attachOnCloning () const |
void | dettachOnCloning () const |
bool | isAttachedOnCloning () const |
void | setAttachOnCloningStatus (bool val) const |
Public Member Functions inherited from YACS::ENGINE::Container | |
virtual bool | isSupportingRTODefNbOfComp () const |
virtual void | setProperties (const std::map< std::string, std::string > &properties) |
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 () |
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 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 () |
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 | |
int | _shutdownLevel |
SalomeContainerTools | _sct |
YACS::BASES::Mutex | _mutex |
std::vector< std::string > | _componentNames |
SalomeHPContainerVectOfHelper | _launchModeType |
std::string | _initScript |
Definition at line 43 of file SalomeHPContainer.hxx.
SalomeHPContainer::SalomeHPContainer | ( | ) |
Definition at line 31 of file SalomeHPContainer.cxx.
Referenced by cloneAlways().
SalomeHPContainer::SalomeHPContainer | ( | const SalomeHPContainer & | other | ) |
Definition at line 35 of file SalomeHPContainer.cxx.
|
protected |
Definition at line 64 of file SalomeHPContainer.cxx.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 191 of file SalomeHPContainer.cxx.
References _componentNames.
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 54 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::allocateFor().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 211 of file SalomeHPContainer.cxx.
References YACS::ENGINE::SalomeHPComponent::KIND.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 185 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 136 of file SalomeHPContainer.cxx.
References YACS::ENGINE::RefCounter::incrRef().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 142 of file SalomeHPContainer.cxx.
References SalomeHPContainer().
|
inline |
Definition at line 79 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
inline |
Definition at line 78 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
virtual |
Reimplemented from YACS::ENGINE::Container.
Definition at line 83 of file SalomeHPContainer.cxx.
References YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom(), and YACS::ENGINE::SalomeContainerTmpForHP::getDiscreminantStrOfThis().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 123 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeContainerTools::GetFullPlacementId(), and YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTask().
|
inline |
Definition at line 81 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
inline |
Definition at line 82 of file SalomeHPContainer.hxx.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 78 of file SalomeHPContainer.cxx.
References KIND.
|
inline |
Definition at line 84 of file SalomeHPContainer.hxx.
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 49 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::getNumberOfFreePlace().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 113 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTask(), and YACS::ENGINE::SalomeContainerTools::GetPlacementId().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 196 of file SalomeHPContainer.cxx.
References _initScript, _sct, YACS::ENGINE::SalomeContainerTools::getProperties(), getSizeOfPool(), YACS::ENGINE::HomogeneousPoolContainer::INITIALIZE_SCRIPT_KEY, PMMLBasicsTestLauncher::ret, and YACS::ENGINE::HomogeneousPoolContainer::SIZE_OF_POOL_KEY.
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 166 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 206 of file SalomeHPContainer.cxx.
References _sct, and YACS::ENGINE::SalomeContainerTools::getResourceProperties().
|
inline |
Definition at line 80 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 44 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::size().
Referenced by getProperties(), and getProperty().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 89 of file SalomeHPContainer.cxx.
References _launchModeType, YACS::ENGINE::SalomeHPContainerVectOfHelper::getHelperOfTaskThreadSafe(), and YACS::ENGINE::SalomeContainerMonoHelper::isAlreadyStarted().
|
inline |
Definition at line 77 of file SalomeHPContainer.hxx.
Referenced by YACS::ENGINE::SalomeContainerTmpForHP::BuildFrom().
|
virtual |
For thread safety for concurrent load operation on same Container.
Implements YACS::ENGINE::Container.
Definition at line 68 of file SalomeHPContainer.cxx.
References _mutex.
|
virtual |
Implements YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 59 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::release().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 147 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 39 of file SalomeHPContainer.cxx.
References _launchModeType, and YACS::ENGINE::SalomeHPContainerVectOfHelper::resize().
Referenced by setProperty().
|
virtual |
Implements YACS::ENGINE::Container.
Definition at line 101 of file SalomeHPContainer.cxx.
References _launchModeType, _shutdownLevel, YACS::ENGINE::SalomeHPContainerVectOfHelper::at(), CORBAEngineTest::i, YACS::ENGINE::SalomeContainerMonoHelper::shutdown(), and YACS::ENGINE::SalomeHPContainerVectOfHelper::size().
Implements YACS::ENGINE::Container.
Definition at line 95 of file SalomeHPContainer.cxx.
References YACS::ENGINE::SalomeContainerTools::Start().
|
virtual |
For thread safety for concurrent load operation on same Container.
Implements YACS::ENGINE::Container.
Definition at line 73 of file SalomeHPContainer.cxx.
References _mutex.
|
protected |
Definition at line 96 of file SalomeHPContainer.hxx.
Referenced by addComponentName().
|
protected |
Definition at line 99 of file SalomeHPContainer.hxx.
Referenced by clearProperties(), getProperties(), getProperty(), and setProperty().
|
protected |
Definition at line 98 of file SalomeHPContainer.hxx.
Referenced by allocateFor(), getFullPlacementId(), getNumberOfFreePlace(), getPlacementId(), getSizeOfPool(), isAlreadyStarted(), release(), setSizeOfPool(), and shutdown().
|
protected |
Definition at line 95 of file SalomeHPContainer.hxx.
|
protected |
Definition at line 94 of file SalomeHPContainer.hxx.
Referenced by clearProperties(), getProperties(), getProperty(), getResourceProperties(), and setProperty().
|
protected |
Definition at line 93 of file SalomeHPContainer.hxx.
Referenced by shutdown().
|
static |
Definition at line 87 of file SalomeHPContainer.hxx.
Referenced by getKind().