Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Core::VideoJob::Manager::JobDone ( VideoJob job,
JobStateType  state,
int  exitCode 
) [inline, private]

Definition at line 290 of file Manager.h.

References CreateMoreStageJobs(), EvaluateStage(), ILOG_DEBUG, Impala::Core::VideoJob::ProcessDefinition::IsLastStepOfStage(), mCurrentStage, mData, Impala::Core::VideoJob::Data::mJobsScheduled, Impala::Core::VideoJob::Data::mProcessDef, Impala::Core::VideoJob::Data::mVideos, Impala::Job::State::TERMINATED_ABNRM, and Impala::Core::VideoJob::Data::VideoSetSize().

Referenced by MonitorJobs().

00291     {
00292         ILOG_DEBUG("Job " << job->id << " is done (state=" << state <<
00293                    ", exitCode=" << exitCode << ")");
00294 
00295         job->state = state;
00296         job->exitCode = exitCode;
00297         mData.mJobsScheduled.erase(mData.mJobsScheduled.find(job->id));
00298 
00299         if (state == Job::State::TERMINATED_ABNRM || exitCode != 0)
00300         {
00301             if (job->isIndiv)
00302             {
00303                 mData.mVideos[job->videoNr].discarded = true;
00304             }
00305             else
00306             {
00307                 for (int v = 0; v < mData.VideoSetSize(); v++)
00308                     mData.mVideos[v].discarded = true;
00309             }
00310         }
00311         else
00312         {
00313             bool atEndOfStage =
00314                 mData.mProcessDef->IsLastStepOfStage(job->stepNr, mCurrentStage);
00315             if (! atEndOfStage)
00316             {
00317                 CreateMoreStageJobs(job);
00318                 return;
00319             }
00320         }
00321 
00322         EvaluateStage();
00323     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:27:44 2010 for ImpalaSrc by  doxygen 1.5.1