const int __DEFAULT__ATTEMPTS__ = 300; // number of checks attemtps
// can be overrided by CSF_RepeatServerRequest
// environment variable
-const int __DEFAULT__DELAY__ = 100000; // delay between attempts (microseconds)
+const int __DEFAULT__DELAY__ = 50000; // delay between attempts (microseconds)
// can be overrided by CSF_DelayServerRequest
// environment variable
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for naming service..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
CORBA::Object_var obj = orb->resolve_initial_references( "NameService" );
return;
}
QtxSplash::setStatus( info.arg( "Waiting for naming service...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
// 2. Check registry server
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for registry server..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for registry server...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
// 3. Check data server
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for study server..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for study server...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
// 4. Check module catalogue server
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for module catalogue server..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for module catalogue server...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
// 5. Check data server
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for session server..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for session server...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
// 6. Check C++ container
if ( myCheckCppContainer ) {
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for C++ container..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for C++ container...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
}
// 7. Check Python container
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for Python container..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for Python container...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
}
// 8. Check supervision container
bOk = false;
for ( i = 0; i < myAttempts ; i++ ) {
QtxSplash::setStatus( info.arg( "Waiting for Supervision container..." ), current * myAttempts + i );
- QThread::usleep( i == 0 ? 500000 : myDelay );
+ QThread::usleep( i == 0 ? 50000 : myDelay );
try {
CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance();
return;
}
QtxSplash::setStatus( info.arg( "Waiting for Supervision container...OK" ), ++current * myAttempts );
- QThread::usleep( 300000 );
+ QThread::usleep( 30000 );
}
// clear splash status
splash->setProgress( 0, 0 );