Engines::Container_ptr Engines_Component_i::GetContainerRef()
{
- MESSAGE("Engines_Component_i::GetContainerRef");
+ // MESSAGE("Engines_Component_i::GetContainerRef");
CORBA::Object_ptr o = _poa->id_to_reference(*_contId) ;
return Engines::Container::_narrow(o);
}
char* Engines_Container_i::getHostName()
{
string s = GetHostname();
- MESSAGE("Engines_Container_i::getHostName " << s);
+ // MESSAGE("Engines_Container_i::getHostName " << s);
return CORBA::string_dup(s.c_str()) ;
}
//return ret;
}
- MESSAGE("Machine list length "<<vec.size());
+ // MESSAGE("Machine list length "<<vec.size());
ret->length(vec.size());
for(unsigned int i=0;i<vec.size();i++)
{
}
params->isMPI = false;
SCRUTE(params->container_name);
- SCRUTE(params->hostname);
- SCRUTE(params->OS);
- SCRUTE(params->mem_mb);
- SCRUTE(params->cpu_clock);
- SCRUTE(params->nb_proc_per_node);
- SCRUTE(params->nb_node);
- SCRUTE(params->isMPI);
+// SCRUTE(params->hostname);
+// SCRUTE(params->OS);
+// SCRUTE(params->mem_mb);
+// SCRUTE(params->cpu_clock);
+// SCRUTE(params->nb_proc_per_node);
+// SCRUTE(params->nb_node);
+// SCRUTE(params->isMPI);
free(stContainer);
return FindOrLoad_Component(params,componentName);
const char *containerName = params.container_name;
int nbproc = NbProc(params);
- MESSAGE("_FindComponent, required " << containerName <<
- " " << componentName << " " << nbproc);
+// MESSAGE("_FindComponent, required " << containerName <<
+// " " << componentName << " " << nbproc);
Engines::MachineList_var machinesOK = new Engines::MachineList;
for(unsigned int i=0; i<listOfMachines.length(); i++)
{
const char *currentMachine=listOfMachines[i];
- MESSAGE("_FindComponent, look at " << currentMachine);
+// MESSAGE("_FindComponent, look at " << currentMachine);
CORBA::Object_var obj = _NS->ResolveComponent(currentMachine,
containerName,
componentName,
%typemap(python,out) Engines::Container_ptr, Engines::Component_ptr
{
- MESSAGE("typemap out on CORBA object ptr");
- SCRUTE($1);
+ //MESSAGE("typemap out on CORBA object ptr");
+ //SCRUTE($1);
// --- Get the Python orb
char **argv = &xargv;
CORBA::ORB_var ORB = CORBA::ORB_init(argc, argv);
string s = ORB->object_to_string($1);
- SCRUTE(s);
+ //SCRUTE(s);
PyObject * tmp = PyString_FromString(s.c_str());
- SCRUTE(tmp);
+ //SCRUTE(tmp);
$result = PyObject_CallMethod(orb, "string_to_object", "O", tmp);
- SCRUTE($result);
+ //SCRUTE($result);
}
{
if (name.compare(_general_module_list[ind].name) == 0)
{
- if(MYDEBUG) MESSAGE("Component named " << name
- << " found in the general catalog");
+ // if(MYDEBUG) MESSAGE("Component named " << name
+ // << " found in the general catalog");
C_parser = &(_general_module_list[ind]);
break;
}
// duplicate service list
unsigned int _length = I_parser.services.size();
- if(MYDEBUG) SCRUTE(_length);
+ // if(MYDEBUG) SCRUTE(_length);
// I_corba.interfaceservicelist
// = new SALOME_ModuleCatalog::ListOfInterfaceService;
I_corba.interfaceservicelist.length(_length);
// duplicate out DataStreamParameters
_length = S_parser.outDataStreamParameters.size();
- if(MYDEBUG) SCRUTE(_length);
+ // if(MYDEBUG) SCRUTE(_length);
S_corba.ServiceoutDataStreamParameter.length(_length);
#ifndef WNT
CORBA::Object_ptr SALOME_NamingService::Resolve(const char* Path)
throw(ServiceUnreachable)
{
- MESSAGE("BEGIN OF Resolve: " << Path);
+// MESSAGE("BEGIN OF Resolve: " << Path);
Utils_Locker lock (&_myMutex);
CORBA::Object_ptr SALOME_NamingService::ResolveFirst(const char* Path)
throw(ServiceUnreachable)
{
- MESSAGE("ResolveFirst");
+// MESSAGE("ResolveFirst");
Utils_Locker lock (&_myMutex);
- SCRUTE(Path);
+// SCRUTE(Path);
string thePath = Path;
string basePath = "";
{
basePath = thePath.substr(0, idx);
name = thePath.substr(idx + 1);
- SCRUTE(basePath);
+// SCRUTE(basePath);
}
- SCRUTE(name);
+// SCRUTE(name);
CORBA::Object_ptr obj = CORBA::Object::_nil();
bool isOk = false;
const int nbproc)
throw(ServiceUnreachable)
{
- MESSAGE("ResolveComponent");
+// MESSAGE("ResolveComponent");
Utils_Locker lock (&_myMutex);
bool SALOME_NamingService::Change_Directory(const char* Path)
throw(ServiceUnreachable)
{
- MESSAGE("BEGIN OF Change_Directory " << Path);
+// MESSAGE("BEGIN OF Change_Directory " << Path);
Utils_Locker lock (&_myMutex);
string path(Path);
if (path == "/")
{
- MESSAGE("Change_Directory is called to go to the root_context");
+// MESSAGE("Change_Directory is called to go to the root_context");
_current_context = _root_context;
return true;
}
ASSERT(!CORBA::is_nil(current_context));
if (path[path.length()-1] != '/') path += '/';
- SCRUTE(path);
+// SCRUTE(path);
CosNaming::Name context_name;
vector<string> splitPath;
int dimension_resultat = _createContextNameDir(path.c_str(),
vector<string> SALOME_NamingService::list_directory()
throw(ServiceUnreachable)
{
- MESSAGE("list_directory");
+// MESSAGE("list_directory");
vector<string> dirList ;
dirList.resize(0);
}
}
- for (unsigned int ind = 0; ind < dirList.size(); ind++)
- MESSAGE("list_directory : Object : " << dirList[ind]);
+// for (unsigned int ind = 0; ind < dirList.size(); ind++)
+// MESSAGE("list_directory : Object : " << dirList[ind]);
binding_iterator->destroy();
context_name.length(dim);
for (int i=0; i<dim; i++)
{
- SCRUTE(splitPath[i]);
+// SCRUTE(splitPath[i]);
context_name[i].id = CORBA::string_dup(splitPath[i].c_str());
if (!endWithDelim && (i == dim-1)) // here, the last string is an object
{
context_name[i].kind = CORBA::string_dup("object");
- MESSAGE("--- " <<splitPath[i] <<".object");
+// MESSAGE("--- " <<splitPath[i] <<".object");
}
else
{
context_name[i].kind = CORBA::string_dup("dir");
- MESSAGE("--- " <<splitPath[i] <<".dir");
+// MESSAGE("--- " <<splitPath[i] <<".dir");
}
}
return dim;
SALOME_ResourcesCatalog_Handler::~SALOME_ResourcesCatalog_Handler()
{
- MESSAGE("SALOME_ResourcesCatalog_Handler destruction");
+ // MESSAGE("SALOME_ResourcesCatalog_Handler destruction");
}
//=============================================================================
bool SALOME_ResourcesCatalog_Handler::startDocument()
{
- MESSAGE("Begin parse document");
+ // MESSAGE("Begin parse document");
// --- Empty private elements
bool SALOME_ResourcesCatalog_Handler::endDocument()
{
- for (map<string, ParserResourcesType>::const_iterator iter =
- _resources_list.begin();
- iter != _resources_list.end();
- iter++)
- {
- SCRUTE((*iter).second.Alias);
- SCRUTE((*iter).second.UserName);
- SCRUTE((*iter).second.AppliPath);
- SCRUTE((*iter).second.PreReqFilePath);
- SCRUTE((*iter).second.OS);
- SCRUTE((*iter).second.Protocol);
- SCRUTE((*iter).second.Mode);
- }
+// for (map<string, ParserResourcesType>::const_iterator iter =
+// _resources_list.begin();
+// iter != _resources_list.end();
+// iter++)
+// {
+// SCRUTE((*iter).second.Alias);
+// SCRUTE((*iter).second.UserName);
+// SCRUTE((*iter).second.AppliPath);
+// SCRUTE((*iter).second.PreReqFilePath);
+// SCRUTE((*iter).second.OS);
+// SCRUTE((*iter).second.Protocol);
+// SCRUTE((*iter).second.Mode);
+// }
- MESSAGE("This is the end of document");
+// MESSAGE("This is the end of document");
return true;
}
const char *moduleName)
throw(SALOME_Exception)
{
- MESSAGE("ResourcesManager::GetFittingResources");
+// MESSAGE("ResourcesManager::GetFittingResources");
vector <std::string> ret;
// --- To be sure that we search in a correct list.
if (hostname[0] != '\0')
{
- MESSAGE("ResourcesManager::GetFittingResources : hostname specified" );
+// MESSAGE("ResourcesManager::GetFittingResources : hostname specified" );
if ( strcmp(hostname, "localhost") == 0 ||
strcmp(hostname, GetHostname().c_str()) == 0 )
{
- MESSAGE("ResourcesManager::GetFittingResources : localhost" );
+// MESSAGE("ResourcesManager::GetFittingResources : localhost" );
ret.push_back(GetHostname().c_str());
- MESSAGE("ResourcesManager::GetFittingResources : " << ret.size());
+// MESSAGE("ResourcesManager::GetFittingResources : " << ret.size());
}
else if (_resourcesList.find(hostname) != _resourcesList.end())
ret[i++] = (*iter2)._hostName;
}
- MESSAGE("ResourcesManager::GetFittingResources : return" << ret.size());
+ // MESSAGE("ResourcesManager::GetFittingResources : return" << ret.size());
return ret;
}