Version: 9.12.0
NamingService_WaitForServerReadiness.cxx File Reference
#include "NamingService_WaitForServerReadiness.hxx"
#include "SALOME_NamingService.hxx"
#include "utilities.h"
#include <iostream>
#include <ctime>
Include dependency graph for NamingService_WaitForServerReadiness.cxx:

Functions

void NamingService_WaitForServerReadiness (SALOME_NamingService *NS, std::string serverName)
 Wait until a server is registered in naming service. More...
 
void NamingService_WaitForServerReadiness (SALOME_Fake_NamingService *NS, std::string serverName)
 Fake NS : no need to wait ;) More...
 

Function Documentation

◆ NamingService_WaitForServerReadiness() [1/2]

void NamingService_WaitForServerReadiness ( SALOME_Fake_NamingService NS,
std::string  serverName 
)

Fake NS : no need to wait ;)

◆ NamingService_WaitForServerReadiness() [2/2]

void NamingService_WaitForServerReadiness ( SALOME_NamingService NS,
std::string  serverName 
)

Wait until a server is registered in naming service.

Parameters
serverNamename of the server to find.
NSSALOME_NamingService object Wait until the given server is ready i.e. is name is found in namingService. Try 40 times, with 500 ms sleep between each try. If Logger is used for traces, it must be ready before this call, because SALOME_NamingService client uses SALOME traces. So, Logger readiness must be checked in Launch script before execution of WaitForServerReadiness.

References ASSERT, SALOME_NamingService::getIORaddr(), INFOS, MESSAGE, KERNEL_PY.batchmode_salome::obj, and SALOME_NamingService::Resolve().

Referenced by main().