#include <TestMPIComponentEngine.hxx>
Public Member Functions | |
TestMPIComponentEngine () | |
TestMPIComponentEngine (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName, bool regist) | |
virtual | ~TestMPIComponentEngine () |
void | Coucou (CORBA::Long L) |
void | SPCoucou (CORBA::Long L) |
char * | instanceName () |
CORBA method: return name of the instance, unique in this Container. More... | |
char * | interfaceName () |
CORBA method: return name of the component class. More... | |
void | ping () |
CORBA method: Test if instance is alive and responds. More... | |
void | destroy () |
CORBA method: Deactivate this instance. More... | |
CORBA::Long | getStudyId () |
CORBA method: Get study Id. More... | |
Engines::Container_ptr | GetContainerRef () |
CORBA method: return CORBA reference of the Container. More... | |
void | setProperties (const Engines::FieldsDict &dico) |
CORBA method: Gives a sequence of (key=string,value=any) to the component. More... | |
Engines::FieldsDict * | getProperties () |
CORBA method: returns a previously stored map (key=string,value=any) as a sequence. More... | |
virtual void | SetOption (const char *, const char *) |
CORBA method: This method is to set an option specific to a certain EngineComponent. More... | |
virtual char * | GetOption (const char *) |
CORBA method: This method is to get value of an option specific to a certain EngineComponent. More... | |
void | Names (const char *graphName, const char *nodeName) |
CORBA method: used by Supervision to give names to this instance. More... | |
bool | Kill_impl () |
CORBA method: used in Supervision. More... | |
bool | Stop_impl () |
CORBA method: used in Supervision. More... | |
bool | Suspend_impl () |
CORBA method: used in Supervision. More... | |
bool | Resume_impl () |
CORBA method: used in Supervision. More... | |
CORBA::Long | CpuUsed_impl () |
CORBA method: More... | |
virtual Engines::TMPFile * | DumpPython (CORBA::Object_ptr theStudy, CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript) |
C++ method: DumpPython default implementation. More... | |
virtual Engines::Salome_file_ptr | getInputFileToService (const char *service_name, const char *Salome_file_name) |
virtual Engines::Salome_file_ptr | getOutputFileToService (const char *service_name, const char *Salome_file_name) |
virtual void | checkInputFilesToService (const char *service_name) |
virtual Engines::Salome_file_ptr | setInputFileToService (const char *service_name, const char *Salome_file_name) |
virtual void | checkOutputFilesToService (const char *service_name) |
virtual Engines::Salome_file_ptr | setOutputFileToService (const char *service_name, const char *Salome_file_name) |
virtual bool | hasObjectInfo () |
virtual char * | getObjectInfo (CORBA::Long studyId, const char *entry) |
virtual char * | getVersion () |
Get version of the component. More... | |
PortableServer::ObjectId * | getId () |
C++ method: return CORBA instance id, the id is set in derived class constructor, when instance is activated. More... | |
Engines_Container_i * | GetContainerPtr () |
C++ method: return Container Servant. More... | |
std::string | getContainerName () |
C++ method: return the name of the container associated with this component This name does not contains the "/Containers" string and all "/" are replaced by "_". More... | |
void | setContainerName () |
C++ method: set the name of the container associated with this component (attribute containerName) This name does not contains the "/Containers" string and all "/" are replaced by "</em>". More... | |
virtual bool | setStudyId (CORBA::Long studyId) |
C++ method: set study Id. More... | |
void | beginService (const char *serviceName) |
C++ method: used by derived classes for supervision. More... | |
void | endService (const char *serviceName) |
C++ method: used by derived classes for supervision. More... | |
void | sendMessage (const char *event_type, const char *message) |
C++ method: Send message to event channel. More... | |
char * | graphName () |
C++ method: – CHECK IF USED –. More... | |
char * | nodeName () |
C++ method: – CHECK IF USED –. More... | |
bool | Killer (pthread_t ThreadId, int signum) |
C++ method: used in Supervision (see kill_impl) More... | |
void | SetCurCpu () |
C++ method: More... | |
long | CpuUsed () |
C++ method: More... | |
void | CancelThread () |
C++ method: More... | |
virtual void | configureSalome_file (std::string service_name, std::string file_port_name, Salome_file_i *file) |
C++ method: used to configure the Salome_file into the runtime. More... | |
Engines::IORTab * | tior () |
void | tior (const Engines::IORTab &ior) |
Static Public Member Functions | |
static bool | isMultiStudy () |
static bool | isMultiInstance () |
static std::string | GetDynLibraryName (const char *componentName) |
C++ method: return standard library name built on component name. More... | |
Protected Types | |
typedef std::map< std::string, Salome_file_i * > | _t_Salome_file_map |
typedef std::map< std::string, Engines_Component_i::_t_Salome_file_map * > | _t_Service_file_map |
Protected Member Functions | |
void | BCastIOR (CORBA::ORB_ptr orb, Engines::MPIObject_ptr pobj, bool amiCont) |
Protected Attributes | |
int | _studyId |
std::string | _instanceName |
std::string | _interfaceName |
std::string | _containerName |
CORBA::ORB_var | _orb |
PortableServer::POA_var | _poa |
PortableServer::ObjectId * | _id |
PortableServer::ObjectId * | _contId |
Engines::Container_var | _container |
Engines_Component_i * | _thisObj |
RegistryConnexion * | _myConnexionToRegistry |
NOTIFICATION_Supplier * | _notifSupplier |
std::map< std::string, CORBA::Any > | _fieldsDict |
_t_Service_file_map | _Input_Service_file_map |
_t_Service_file_map | _Output_Service_file_map |
_t_Service_file_map::iterator | _Service_file_map_it |
_t_Salome_file_map::iterator | _Salome_file_map_it |
std::string | _serviceName |
std::string | _graphName |
std::string | _nodeName |
int | _numproc |
int | _nbproc |
Engines::IORTab * | _tior |
std::map< std::string, MPI_Comm > | _gcom |
Static Protected Attributes | |
static bool | _isMultiStudy = true |
static bool | _isMultiInstance = false |
|
protectedinherited |
|
protectedinherited |
TestMPIComponentEngine::TestMPIComponentEngine | ( | ) |
TestMPIComponentEngine::TestMPIComponentEngine | ( | CORBA::ORB_ptr | orb, |
PortableServer::POA_ptr | poa, | ||
PortableServer::ObjectId * | contId, | ||
const char * | instanceName, | ||
const char * | interfaceName, | ||
bool | regist | ||
) |
References Engines_Component_i::_id, Engines_Component_i::_poa, Engines_Component_i::_thisObj, and MESSAGE.
|
virtual |
|
protectedinherited |
|
inherited |
C++ method: used by derived classes for supervision.
References Engines_Component_i::_Executed, Engines_Component_i::_fieldsDict, Engines_Component_i::_instanceName, Engines_Component_i::_serviceName, Engines_Component_i::_StartUsed, Engines_Component_i::_ThreadCpuUsed, Engines_Component_i::_ThreadId, Engines_Component_i::CpuUsed_impl(), and MESSAGE.
Referenced by Superv_Component_i::beginService().
|
inherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
C++ method: used to configure the Salome_file into the runtime.
service_name | name of the service that use this Salome_file |
file_port_name | name of the Salome_file |
file | Salome_file C++ object |
Referenced by Engines_Component_i::checkInputFilesToService(), and Engines_Component_i::checkOutputFilesToService().
void TestMPIComponentEngine::Coucou | ( | CORBA::Long | L | ) |
References MPIObject_i::_nbproc, MPIObject_i::_numproc, MPIObject_i::_tior, and SPCoucou().
|
inherited |
C++ method:
References Engines_Component_i::_Executed, Engines_Component_i::_StartUsed, and Engines_Component_i::_ThreadId.
Referenced by Engines_Component_i::CpuUsed_impl(), and Engines_Component_i::SetCurCpu().
|
inherited |
CORBA method:
References Engines_Component_i::_Executed, _Sleeping, Engines_Component_i::_ThreadCpuUsed, Engines_Component_i::_ThreadId, Engines_Component_i::CpuUsed(), and Engines_Component_i::Killer().
Referenced by Engines_Component_i::beginService(), and Engines_Component_i::endService().
|
inherited |
CORBA method: Deactivate this instance.
CORBA object is deactivated (do not respond any more to CORBA calls), the connection to Regsitry is removed (Registry informed of deactivation), internal server reference counter on the derived servant class is decremented, to allow destruction of the class (delete) by POA, when there are no more references. – TO BE USED BY CONTAINER ONLY (Container housekeeping) –
References Engines_Component_i::_id, Engines_Component_i::_poa, and MESSAGE.
|
virtualinherited |
C++ method: DumpPython default implementation.
|
inherited |
C++ method: used by derived classes for supervision.
References Engines_Component_i::_CanceledThread, Engines_Component_i::_instanceName, Engines_Component_i::_StartUsed, Engines_Component_i::_ThreadCpuUsed, Engines_Component_i::_ThreadId, Engines_Component_i::CpuUsed_impl(), and MESSAGE.
|
inherited |
C++ method: return the name of the container associated with this component This name does not contains the "/Containers" string and all "/" are replaced by "_".
References Engines_Component_i::_containerName.
Referenced by create_calcium_port(), CalciumInterface::ecp_cd(), CalciumInterface::ecp_ecriture(), CalciumInterface::ecp_effi(), CalciumInterface::ecp_efft(), CalciumInterface::ecp_fin(), CalciumInterface::ecp_fini(), CalciumInterface::ecp_fint(), and CalciumInterface::ecp_lecture().
|
inherited |
C++ method: return Container Servant.
References Engines_Component_i::_container, and Engines_Component_i::_poa.
|
inherited |
CORBA method: return CORBA reference of the Container.
References Engines_Component_i::_container.
Referenced by Engines_Component_i::setInputFileToService(), and Engines_Component_i::setOutputFileToService().
|
staticinherited |
C++ method: return standard library name built on component name.
Referenced by Engines_Container_i::decInstanceCnt(), and Engines_Parallel_Container_i::decInstanceCnt().
|
inherited |
C++ method: return CORBA instance id, the id is set in derived class constructor, when instance is activated.
References Engines_Component_i::_id.
Referenced by SalomeTestComponentEngine_factory(), and TestMPIComponentEngine_factory().
|
virtualinherited |
CORBA method: This method is to get value of an option specific to a certain EngineComponent.
|
inherited |
CORBA method: returns a previously stored map (key=string,value=any) as a sequence.
(see setProperties)
References Engines_Component_i::_fieldsDict.
|
inherited |
CORBA method: Get study Id.
References Engines_Component_i::_studyId.
Referenced by Engines_Container_i::find_or_create_instance(), and Engines_Parallel_Container_i::find_or_create_instance().
|
virtualinherited |
Get version of the component.
This method is supposed to be implemented in all derived classes; default implementation returns empty string that means that no version information about the component is available.
|
inherited |
C++ method: – CHECK IF USED –.
References Engines_Component_i::_graphName.
Referenced by Engines_Component_i::Names().
|
virtualinherited |
|
inherited |
CORBA method: return name of the instance, unique in this Container.
References Engines_Component_i::_instanceName.
Referenced by create_calcium_port(), CalciumInterface::ecp_cd(), CalciumInterface::ecp_ecriture(), CalciumInterface::ecp_effi(), CalciumInterface::ecp_efft(), CalciumInterface::ecp_fin(), CalciumInterface::ecp_fini(), CalciumInterface::ecp_fint(), and CalciumInterface::ecp_lecture().
|
inherited |
CORBA method: return name of the component class.
References Engines_Component_i::_interfaceName.
|
staticinherited |
|
staticinherited |
|
inherited |
CORBA method: used in Supervision.
References Engines_Component_i::_ThreadId, and Engines_Component_i::Killer().
|
inherited |
C++ method: used in Supervision (see kill_impl)
References MESSAGE.
Referenced by Engines_Component_i::CpuUsed_impl(), Engines_Component_i::Kill_impl(), Engines_Component_i::Stop_impl(), and Engines_Component_i::Suspend_impl().
CORBA method: used by Supervision to give names to this instance.
References Engines_Component_i::_graphName, Engines_Component_i::_nodeName, Engines_Component_i::graphName(), and Engines_Component_i::nodeName().
|
inherited |
C++ method: – CHECK IF USED –.
References Engines_Component_i::_nodeName.
Referenced by Engines_Component_i::Names().
|
inherited |
CORBA method: Test if instance is alive and responds.
References MESSAGE.
|
inherited |
CORBA method: used in Supervision.
References Engines_Component_i::_id, Engines_Component_i::_instanceName, Engines_Component_i::_interfaceName, _Sleeping, Engines_Component_i::_ThreadId, Kernel_Utils::GetHostname(), and MESSAGE.
C++ method: Send message to event channel.
References Engines_Component_i::_graphName, Engines_Component_i::_nodeName, Engines_Component_i::_notifSupplier, and NOTIFICATION_Supplier::Send().
|
inherited |
C++ method: set the name of the container associated with this component (attribute containerName) This name does not contains the "/Containers" string and all "/" are replaced by "</em>".
References Engines_Component_i::_container, and Engines_Component_i::_containerName.
Referenced by Engines_Component_i::Engines_Component_i().
|
inherited |
C++ method:
References Engines_Component_i::_ThreadCpuUsed, and Engines_Component_i::CpuUsed().
Referenced by SetCpuUsed().
CORBA method: This method is to set an option specific to a certain EngineComponent.
|
inherited |
CORBA method: Gives a sequence of (key=string,value=any) to the component.
Base class component stores the sequence in a map. The map is cleared before. This map is for use by derived classes.
dico | sequence of (key=string,value=any) |
References Engines_Component_i::_fieldsDict.
|
virtualinherited |
C++ method: set study Id.
studyId | 0 if instance is not associated to a study, >0 otherwise (== study id) |
References Engines_Component_i::_studyId, and ASSERT.
Referenced by Engines_Parallel_Container_i::createCPPInstance(), Engines_Container_i::createInstance(), and Engines_MPIContainer_i::createMPIInstance().
void TestMPIComponentEngine::SPCoucou | ( | CORBA::Long | L | ) |
References MPIObject_i::_numproc, BEGIN_OF, END_OF, and MESSAGE.
Referenced by Coucou().
|
inherited |
CORBA method: used in Supervision.
References Engines_Component_i::_id, Engines_Component_i::_instanceName, Engines_Component_i::_interfaceName, Engines_Component_i::_ThreadId, Kernel_Utils::GetHostname(), Engines_Component_i::Killer(), and MESSAGE.
|
inherited |
CORBA method: used in Supervision.
References Engines_Component_i::_id, Engines_Component_i::_instanceName, Engines_Component_i::_interfaceName, _Sleeping, Engines_Component_i::_ThreadId, Kernel_Utils::GetHostname(), Engines_Component_i::Killer(), and MESSAGE.
|
inherited |
References MPIObject_i::_tior.
Referenced by MPIObject_i::BCastIOR().
|
inherited |
References MPIObject_i::_tior.
|
protectedinherited |
|
protectedinherited |
Referenced by Engines_Component_i::getContainerName(), and Engines_Component_i::setContainerName().
|
protectedinherited |
Referenced by Engines_Component_i::Engines_Component_i().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Engines_Component_i::destroy(), Engines_TestComponent_i::Engines_TestComponent_i(), Engines_Component_i::getId(), Engines_Component_i::Resume_impl(), Engines_Component_i::Stop_impl(), Engines_Component_i::Suspend_impl(), TestMPIComponentEngine(), and Engines_Component_i::~Engines_Component_i().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by MPIObject_i::BCastIOR(), Coucou(), Engines_MPIContainer_i::create_component_instance_env(), Engines_MPIContainer_i::finalize_removal(), Engines_MPIContainer_i::load_component_Library(), Engines_MPIContainer_i::load_impl(), MPIObject_i::MPIObject_i(), Engines_MPIContainer_i::remove_impl(), and Engines_MPIContainer_i::Shutdown().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by MPIObject_i::BCastIOR(), Coucou(), Engines_MPIContainer_i::create_component_instance_env(), Engines_MPIContainer_i::createMPIInstance(), Engines_MPIContainer_i::Engines_MPIContainer_i(), Engines_MPIContainer_i::finalize_removal(), Engines_MPIContainer_i::Lcreate_component_instance(), Engines_MPIContainer_i::Lload_component_Library(), Engines_MPIContainer_i::Lload_impl(), Engines_MPIContainer_i::load_component_Library(), Engines_MPIContainer_i::load_impl(), MPIObject_i::MPIObject_i(), Engines_MPIContainer_i::remove_impl(), Engines_MPIContainer_i::Shutdown(), SPCoucou(), and Engines_MPIContainer_i::~Engines_MPIContainer_i().
|
protectedinherited |
Referenced by Engines_Component_i::Engines_Component_i().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Engines_Component_i::checkInputFilesToService(), Engines_Component_i::checkOutputFilesToService(), Engines_Component_i::getInputFileToService(), Engines_Component_i::getOutputFileToService(), Engines_Component_i::setInputFileToService(), and Engines_Component_i::setOutputFileToService().
|
protectedinherited |
Referenced by Engines_Component_i::beginService().
|
protectedinherited |
Referenced by Engines_Component_i::getStudyId(), and Engines_Component_i::setStudyId().
|
protectedinherited |
Referenced by Engines_TestComponent_i::Engines_TestComponent_i(), and TestMPIComponentEngine().
|
protectedinherited |
Referenced by Coucou(), Engines_MPIContainer_i::create_component_instance_env(), Engines_MPIContainer_i::finalize_removal(), Engines_MPIContainer_i::load_component_Library(), Engines_MPIContainer_i::load_impl(), MPIObject_i::MPIObject_i(), Engines_MPIContainer_i::remove_impl(), Engines_MPIContainer_i::Shutdown(), MPIObject_i::tior(), and MPIObject_i::~MPIObject_i().