/** * batch getExclusiveCaptureThumbJob action allows to get a BatchJob of type CAPTURE_THUMB * * @action getExclusiveCaptureThumbJobs * @param KalturaExclusiveLockKey $lockKey The unique lock key from the batch-process. Is used for the locking mechanism * @param int $maxExecutionTime The maximum time in seconds the job reguarly take. Is used for the locking mechanism when determining an unexpected termination of a batch-process. * @param int $numberOfJobs The maximum number of jobs to return. * @param KalturaBatchJobFilter $filter Set of rules to fetch only rartial list of jobs * @return KalturaBatchJobArray */ function getExclusiveCaptureThumbJobsAction(KalturaExclusiveLockKey $lockKey, $maxExecutionTime, $numberOfJobs, KalturaBatchJobFilter $filter = null) { $jobs = $this->getExclusiveJobs($lockKey, $maxExecutionTime, $numberOfJobs, $filter, BatchJobType::CAPTURE_THUMB); if ($jobs) { foreach ($jobs as &$job) { $data = $job->getData(); $thumbParamsOutput = thumbParamsOutputPeer::retrieveByPK($data->getThumbParamsOutputId()); $data->setThumbParamsOutput($thumbParamsOutput); $job->setData($data); } } return KalturaBatchJobArray::fromBatchJobArray($jobs); }
/** * @return the ready behavior */ public function getReadyBehavior() { $thumbParamsOutput = thumbParamsOutputPeer::retrieveByPK($this->thumbParamsOutputId); if ($thumbParamsOutput) { return $thumbParamsOutput->getReadyBehavior(); } return null; }