General KERNEL Documentation     End User KERNEL Services  


TestMPIComponentEngine Class Reference

#include <TestMPIComponentEngine.hxx>

Inheritance diagram for TestMPIComponentEngine:

Inheritance graph
Collaboration diagram for TestMPIComponentEngine:

Collaboration graph

Public Member Functions

 TestMPIComponentEngine ()
 TestMPIComponentEngine (int nbproc, int numproc, 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 ()
char * interfaceName ()
void ping ()
void destroy ()
CORBA::Long getStudyId ()
Engines::Container_ptr GetContainerRef ()
void setProperties (const Engines::FieldsDict &dico)
Engines::FieldsDictgetProperties ()
void Names (const char *graphName, const char *nodeName)
bool Kill_impl ()
bool Stop_impl ()
bool Suspend_impl ()
bool Resume_impl ()
CORBA::Long CpuUsed_impl ()
virtual Engines::TMPFileDumpPython (CORBA::Object_ptr theStudy, CORBA::Boolean isPublished, CORBA::Boolean &isValidScript)
PortableServer::ObjectId * getId ()
Engines_Container_iGetContainerPtr ()
bool setStudyId (CORBA::Long studyId)
void beginService (const char *serviceName)
void endService (const char *serviceName)
void sendMessage (const char *event_type, const char *message)
char * graphName ()
char * nodeName ()
bool Killer (pthread_t ThreadId, int signum)
void SetCurCpu ()
long CpuUsed ()
Engines::IORTabtior ()
void tior (const Engines::IORTab &ior)

Static Public Member Functions

static bool isMultiStudy ()
static bool isMultiInstance ()
static std::string GetDynLibraryName (const char *componentName)

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
CORBA::ORB_ptr _orb
PortableServer::POA_ptr _poa
PortableServer::ObjectId * _id
PortableServer::ObjectId * _contId
Engines_Component_i_thisObj
RegistryConnexion_myConnexionToRegistry
NOTIFICATION_Supplier_notifSupplier
std::map< std::string, CORBA::Any > _fieldsDict
std::string _serviceName
std::string _graphName
std::string _nodeName
int _numproc
int _nbproc
Engines::IORTab_tior

Static Protected Attributes

static bool _isMultiStudy = true
static bool _isMultiInstance = false

Constructor & Destructor Documentation

TestMPIComponentEngine::TestMPIComponentEngine  ) 
 

TestMPIComponentEngine::TestMPIComponentEngine int  nbproc,
int  numproc,
CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName,
bool  regist
 

TestMPIComponentEngine::~TestMPIComponentEngine  )  [virtual]
 


Member Function Documentation

void TestMPIComponentEngine::Coucou CORBA::Long  L  ) 
 

void TestMPIComponentEngine::SPCoucou CORBA::Long  L  ) 
 

char * Engines_Component_i::instanceName  )  [inherited]
 

CORBA method: return name of the instance, unique in this Container

char * Engines_Component_i::interfaceName  )  [inherited]
 

CORBA method: return name of the component class

void Engines_Component_i::ping  )  [inherited]
 

CORBA method: Test if instance is alive and responds

void Engines_Component_i::destroy  )  [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) --

CORBA::Long Engines_Component_i::getStudyId  )  [inherited]
 

CORBA method: Get study Id

Returns:
-1: not initialised (Internal Error) 0: multistudy component instance >0: study id associated to this instance

Engines::Container_ptr Engines_Component_i::GetContainerRef  )  [inherited]
 

CORBA method: return CORBA reference of the Container

void Engines_Component_i::setProperties const Engines::FieldsDict dico  )  [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.

Parameters:
dico sequence of (key=string,value=any)

Engines::FieldsDict * Engines_Component_i::getProperties  )  [inherited]
 

CORBA method: returns a previously stored map (key=string,value=any) as a sequence. (see setProperties)

void Engines_Component_i::Names const char *  graphName,
const char *  nodeName
[inherited]
 

CORBA method: used by Supervision to give names to this instance

bool Engines_Component_i::Kill_impl  )  [inherited]
 

CORBA method: used in Supervision

bool Engines_Component_i::Stop_impl  )  [inherited]
 

CORBA method: used in Supervision

bool Engines_Component_i::Suspend_impl  )  [inherited]
 

CORBA method: used in Supervision

bool Engines_Component_i::Resume_impl  )  [inherited]
 

CORBA method: used in Supervision

CORBA::Long Engines_Component_i::CpuUsed_impl  )  [inherited]
 

CORBA method:

Engines::TMPFile * Engines_Component_i::DumpPython CORBA::Object_ptr  theStudy,
CORBA::Boolean  isPublished,
CORBA::Boolean &  isValidScript
[virtual, inherited]
 

C++ method: DumpPython default implementation

PortableServer::ObjectId * Engines_Component_i::getId  )  [inherited]
 

C++ method: return CORBA instance id, the id is set in derived class constructor, when instance is activated.

Engines_Container_i * Engines_Component_i::GetContainerPtr  )  [inherited]
 

C++ method: return Container Servant

CORBA::Boolean Engines_Component_i::setStudyId CORBA::Long  studyId  )  [inherited]
 

C++ method: set study Id

Parameters:
studyId 0 if instance is not associated to a study, >0 otherwise (== study id)
Returns:
true if the set of study Id is OK must be set once by Container, at instance creation, and cannot be changed after.

static bool Engines_Component_i::isMultiStudy  )  [static, inherited]
 

static bool Engines_Component_i::isMultiInstance  )  [static, inherited]
 

string Engines_Component_i::GetDynLibraryName const char *  componentName  )  [static, inherited]
 

C++ method: return standard library name built on component name

void Engines_Component_i::beginService const char *  serviceName  )  [inherited]
 

C++ method: used by derived classes for supervision

void Engines_Component_i::endService const char *  serviceName  )  [inherited]
 

C++ method: used by derived classes for supervision

void Engines_Component_i::sendMessage const char *  event_type,
const char *  message
[inherited]
 

C++ method: Send message to event channel

char * Engines_Component_i::graphName  )  [inherited]
 

C++ method: -- CHECK IF USED --

char * Engines_Component_i::nodeName  )  [inherited]
 

C++ method: -- CHECK IF USED --

bool Engines_Component_i::Killer pthread_t  ThreadId,
int  signum
[inherited]
 

C++ method: used in Supervision (see kill_impl)

void Engines_Component_i::SetCurCpu  )  [inherited]
 

C++ method:

long Engines_Component_i::CpuUsed  )  [inherited]
 

C++ method:

Engines::IORTab * MPIObject_i::tior  )  [inherited]
 

void MPIObject_i::tior const Engines::IORTab ior  )  [inherited]
 

void MPIObject_i::BCastIOR CORBA::ORB_ptr  orb,
Engines::MPIObject_ptr  pobj,
bool  amiCont
[protected, inherited]
 


Field Documentation

int Engines_Component_i::_studyId [protected, inherited]
 

bool Engines_Component_i::_isMultiStudy = true [static, protected, inherited]
 

bool Engines_Component_i::_isMultiInstance = false [static, protected, inherited]
 

std::string Engines_Component_i::_instanceName [protected, inherited]
 

std::string Engines_Component_i::_interfaceName [protected, inherited]
 

CORBA::ORB_ptr Engines_Component_i::_orb [protected, inherited]
 

PortableServer::POA_ptr Engines_Component_i::_poa [protected, inherited]
 

PortableServer::ObjectId* Engines_Component_i::_id [protected, inherited]
 

PortableServer::ObjectId* Engines_Component_i::_contId [protected, inherited]
 

Engines_Component_i* Engines_Component_i::_thisObj [protected, inherited]
 

RegistryConnexion* Engines_Component_i::_myConnexionToRegistry [protected, inherited]
 

NOTIFICATION_Supplier* Engines_Component_i::_notifSupplier [protected, inherited]
 

std::map<std::string,CORBA::Any> Engines_Component_i::_fieldsDict [protected, inherited]
 

std::string Engines_Component_i::_serviceName [protected, inherited]
 

std::string Engines_Component_i::_graphName [protected, inherited]
 

std::string Engines_Component_i::_nodeName [protected, inherited]
 

int MPIObject_i::_numproc [protected, inherited]
 

int MPIObject_i::_nbproc [protected, inherited]
 

Engines::IORTab* MPIObject_i::_tior [protected, inherited]