Subversion Repositories DevTools

Rev

Rev 818 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 818 Rev 820
Line 156... Line 156...
156
      {
156
      {
157
        mLogger.fatal("run GBE_MACHTYPE or GBE_DPKG or GBE_DPLY not set");
157
        mLogger.fatal("run GBE_MACHTYPE or GBE_DPKG or GBE_DPLY not set");
158
        throw new Exception();
158
        throw new Exception();
159
      }
159
      }
160
      
160
      
-
 
161
      boolean firstTime = true;
-
 
162
      
161
      while (run)
163
      while (run)
162
      {
164
      {
163
        try
165
        try
164
        {
166
        {
-
 
167
          if ( !firstTime )
-
 
168
          {
-
 
169
            mLogger.warn("BuildDaemon sleep for 10 mins");
-
 
170
            Thread.sleep(600000);
-
 
171
            mLogger.info("BuildDaemon sleep returned");
-
 
172
          }
-
 
173
          else
-
 
174
          {
-
 
175
            firstTime = false;    
-
 
176
          }
-
 
177
 
165
          releaseManager.queryReleaseConfig(hostname);
178
          releaseManager.queryReleaseConfig(hostname);
166
  
179
  
167
          rtag_id.value = 0;
180
          rtag_id.value = 0;
168
          rcon_id.value = 0;
181
          rcon_id.value = 0;
169
          daemon_mode.value = 'X';
182
          daemon_mode.value = 'X';
Line 209... Line 222...
209
          }
222
          }
210
          while (moreReleasesConfigured);
223
          while (moreReleasesConfigured);
211
  
224
  
212
          if ( connectionString.compareTo("unit test spawn thread") == 0)
225
          if ( connectionString.compareTo("unit test spawn thread") == 0)
213
          {
226
          {
214
            throw new Exception();
227
            run = false;
215
          }
228
          }
216
          
229
          
217
          mLogger.warn("BuildDaemon sleep for 10 mins");
-
 
218
          Thread.sleep(600000);
-
 
219
          mLogger.info("BuildDaemon sleep returned");
-
 
220
        }
230
        }
221
        catch (SQLException e)
231
        catch (SQLException e)
222
        {
232
        {
223
          mLogger.warn("BuildDaemon caught SQLException");
233
          mLogger.warn("BuildDaemon caught SQLException");
224
        }
234
        }
Line 226... Line 236...
226
        {
236
        {
227
          mLogger.warn("BuildDaemon caught InterruptedException");
237
          mLogger.warn("BuildDaemon caught InterruptedException");
228
        }
238
        }
229
        catch (Exception e)
239
        catch (Exception e)
230
        {
240
        {
231
          // fatal
-
 
232
          mLogger.fatal("BuildDaemon caught Exception");
241
          mLogger.warn("BuildDaemon caught Exception");
233
          run = false;
-
 
234
        }
242
        }
235
      }
243
      }
236
    }
244
    }
237
    catch( UnknownHostException e )
245
    catch( UnknownHostException e )
238
    {
246
    {