Beispiel #1
0
 /**
  * batch getExclusiveConvertJob action allows to get a BatchJob of type CONVERT 
  * 
  * @action getExclusiveConvertJobs
  * @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 getExclusiveConvertJobsAction(KalturaExclusiveLockKey $lockKey, $maxExecutionTime, $numberOfJobs, KalturaBatchJobFilter $filter = null)
 {
     $jobs = $this->getExclusiveJobs($lockKey, $maxExecutionTime, $numberOfJobs, $filter, BatchJobType::CONVERT);
     if ($jobs) {
         foreach ($jobs as &$job) {
             $data = $job->getData();
             assetParamsOutputPeer::resetInstanceCriteriaFilter();
             $flavorParamsOutput = assetParamsOutputPeer::retrieveByPK($data->getFlavorParamsOutputId());
             $data->setFlavorParamsOutput($flavorParamsOutput);
             $job->setData($data);
         }
     }
     return KalturaBatchJobArray::fromBatchJobArray($jobs);
 }
 /**
  * @return flavorParamsOutput the $flavorParamsOutput
  */
 public function getFlavorParamsOutput()
 {
     if ($this->flavorParamsOutput) {
         return $this->flavorParamsOutput;
     }
     if (is_null($this->flavorParamsOutputId)) {
         return null;
     }
     assetParamsOutputPeer::resetInstanceCriteriaFilter();
     return assetParamsOutputPeer::retrieveByPK($this->flavorParamsOutputId);
 }