function addBatchJob(KalturaBatchJob $batchJob)
 {
     $kparams = array();
     $this->client->addParam($kparams, "batchJob", $batchJob->toParams());
     $this->client->queueServiceActionCall("jobs", "addBatchJob", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaBatchJob");
     return $resultObject;
 }
 function updateExclusiveJob($id, KalturaExclusiveLockKey $lockKey, KalturaBatchJob $job)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "lockKey", $lockKey->toParams());
     $this->client->addParam($kparams, "job", $job->toParams());
     $this->client->queueServiceActionCall("metadata_metadatabatch", "updateExclusiveJob", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaBatchJob");
     return $resultObject;
 }
Exemplo n.º 3
0
 function updateExclusivePreConvertJob($id, $processorLocation, $pocessorName, KalturaBatchJob $preConvertJob, $entryStatus = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "processorLocation", $processorLocation);
     $this->client->addParam($kparams, "pocessorName", $pocessorName);
     $this->client->addParam($kparams, "preConvertJob", $preConvertJob->toParams());
     $this->client->addParam($kparams, "entryStatus", $entryStatus);
     $this->client->queueServiceActionCall("batch", "updateExclusivePreConvertJob", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaBatchJob");
     return $resultObject;
 }