Esempio n. 1
0
void MasterAdapter::removePending(Notifier& notifier)
{
   /*
    * removing all jobs from the queue and returning an error.
    * error handling is don in the servicebroker thread
    */
   Job* job = mQueue.pop();
   while( job )
   {
      job->status = EIO;
      notifier.jobFinished(*job);
      job = mQueue.pop();
   }
}
Esempio n. 2
0
bool MasterAdapter::execute(Job& job, Notifier& notifier)
{
   bool rc = mConnector->execute(job);
   notifier.jobFinished(job);
   return rc;
}