當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BatchJob::getJobType方法代碼示例

本文整理匯總了PHP中BatchJob::getJobType方法的典型用法代碼示例。如果您正苦於以下問題:PHP BatchJob::getJobType方法的具體用法?PHP BatchJob::getJobType怎麽用?PHP BatchJob::getJobType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BatchJob的用法示例。


在下文中一共展示了BatchJob::getJobType方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: doConsume

 /**
  * @param kBatchJobStatusEventConsumer $consumer
  * @return bool true if should continue to the next consumer
  */
 protected function doConsume(KalturaEventConsumer $consumer)
 {
     if (!$consumer->shouldConsumeJobStatusEvent($this->dbBatchJob)) {
         return true;
     }
     KalturaLog::debug(get_class($this) . " event consumed by " . get_class($consumer) . " job id [" . $this->dbBatchJob->getId() . "] type [" . $this->dbBatchJob->getJobType() . "] sub type [" . $this->dbBatchJob->getJobSubType() . "] status [" . $this->dbBatchJob->getStatus() . "]");
     return $consumer->updatedJob($this->dbBatchJob, $this->twinJob);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:12,代碼來源:kBatchJobStatusEvent.php

示例2: doConsume

 /**
  * @param kBatchJobStatusEventConsumer $consumer
  * @return bool true if should continue to the next consumer
  */
 protected function doConsume(KalturaEventConsumer $consumer)
 {
     if (!$consumer->shouldConsumeJobStatusEvent($this->dbBatchJob)) {
         return true;
     }
     KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . '] job id [' . $this->dbBatchJob->getId() . '] type [' . $this->dbBatchJob->getJobType() . '] sub type [' . $this->dbBatchJob->getJobSubType() . '] status [' . $this->dbBatchJob->getStatus() . ']');
     $result = $consumer->updatedJob($this->dbBatchJob);
     KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . '] job id [' . $this->dbBatchJob->getId() . '] type [' . $this->dbBatchJob->getJobType() . '] sub type [' . $this->dbBatchJob->getJobSubType() . '] status [' . $this->dbBatchJob->getStatus() . ']');
     return $result;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:14,代碼來源:kBatchJobStatusEvent.php

示例3: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() == ContentDistributionPlugin::getBatchJobTypeCoreValue(ContentDistributionBatchJobType::DISTRIBUTION_FETCH_REPORT)) {
         return true;
     }
     return false;
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:kIdeticDistributionReportHandler.php

示例4: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() == BatchJobType::FILESYNC_IMPORT) {
         return true;
     }
     return false;
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:kMultiCentersFlowManager.php

示例5: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() == BatchJobType::METADATA_TRANSFORM) {
         return true;
     }
     return false;
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:kMetadataFlowManager.php

示例6: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() == IntegrationPlugin::getBatchJobTypeCoreValue(IntegrationBatchJobType::INTEGRATION) && $dbBatchJob->getStatus() == BatchJob::BATCHJOB_STATUS_DONT_PROCESS && $dbBatchJob->getData()->getTriggerType() == BpmEventNotificationIntegrationPlugin::getIntegrationTriggerCoreValue(BpmEventNotificationIntegrationTrigger::BPM_EVENT_NOTIFICATION)) {
         return true;
     }
     return false;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:kBpmEventNotificationIntegrationFlowManager.php

示例7: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() != IntegrationPlugin::getBatchJobTypeCoreValue(IntegrationBatchJobType::INTEGRATION)) {
         return false;
     }
     $closedStatusList = array(BatchJob::BATCHJOB_STATUS_FINISHED, BatchJob::BATCHJOB_STATUS_FAILED, BatchJob::BATCHJOB_STATUS_ABORTED, BatchJob::BATCHJOB_STATUS_FATAL, BatchJob::BATCHJOB_STATUS_FINISHED_PARTIALLY);
     return in_array($dbBatchJob->getStatus(), $closedStatusList);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:8,代碼來源:kIntegrationFlowManager.php

示例8: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     // consume import jobs with data of type kDropFolderImportJobData
     if ($dbBatchJob->getJobType() == BatchJobType::IMPORT && get_class($dbBatchJob->getData()) == 'kDropFolderImportJobData') {
         return true;
     }
     return false;
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:8,代碼來源:kDropFolderEventsConsumer.php

示例9: shouldConsumeJobStatusEvent

 /**
  * @param BatchJob $dbBatchJob
  * @return bool true if the consumer should handle the event
  */
 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     $jobType = ScheduledTaskPlugin::getBatchJobTypeCoreValue(ScheduledTaskBatchType::SCHEDULED_TASK);
     if ($dbBatchJob->getJobType() == $jobType) {
         return true;
     }
     return false;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:12,代碼來源:kScheduledTaskBatchJobFlowManager.php

示例10: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     $jobTypes = array(ContentDistributionPlugin::getBatchJobTypeCoreValue(ContentDistributionBatchJobType::DISTRIBUTION_SUBMIT), ContentDistributionPlugin::getBatchJobTypeCoreValue(ContentDistributionBatchJobType::DISTRIBUTION_UPDATE));
     if (in_array($dbBatchJob->getJobType(), $jobTypes)) {
         return true;
     }
     return false;
 }
開發者ID:kubrickfr,項目名稱:server,代碼行數:8,代碼來源:kUverseDistributionEventConsumer.php

示例11: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getJobType() == BatchJobType::STORAGE_EXPORT && $dbBatchJob->getJobSubType() == KontikiPlugin::getStorageProfileProtocolCoreValue(KontikiStorageProfileProtocol::KONTIKI)) {
         if (KontikiPlugin::isAllowedPartner($dbBatchJob->getPartnerId())) {
             return true;
         }
     }
     return false;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:9,代碼來源:kKontikiManager.php

示例12: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if ($dbBatchJob->getStatus() == BatchJob::BATCHJOB_STATUS_FAILED) {
         $parseMultiBatchJobType = CaptionPlugin::getBatchJobTypeCoreValue(ParseMultiLanguageCaptionAssetBatchType::PARSE_MULTI_LANGUAGE_CAPTION_ASSET);
         if ($dbBatchJob->getJobType() == $parseMultiBatchJobType) {
             return true;
         }
     }
     return false;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:10,代碼來源:kMultiCaptionFlowManager.php

示例13: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     if (in_array($dbBatchJob->getStatus(), array(BatchJob::BATCHJOB_STATUS_FAILED, BatchJob::BATCHJOB_STATUS_DONT_PROCESS, BatchJob::BATCHJOB_STATUS_FINISHED)) && $dbBatchJob->getJobType() == IntegrationPlugin::getBatchJobTypeCoreValue(IntegrationBatchJobType::INTEGRATION)) {
         $providerType = $dbBatchJob->getJobSubType();
         if ($providerType == VoicebasePlugin::getProviderTypeCoreValue(VoicebaseIntegrationProviderType::VOICEBASE)) {
             return true;
         }
     }
     return false;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:10,代碼來源:kVoicebaseFlowManager.php

示例14: updatedJob

 /**
  * @param BatchJob $dbBatchJob
  * @param BatchJob $twinJob
  * @return bool true if should continue to the next consumer
  */
 public function updatedJob(BatchJob $dbBatchJob, BatchJob $twinJob = null)
 {
     switch ($dbBatchJob->getJobType()) {
         case BatchJobType::FILESYNC_IMPORT:
             $dbBatchJob = $this->updatedFileSyncImport($dbBatchJob, $dbBatchJob->getData(), $twinJob);
             break;
         default:
             break;
     }
     return true;
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:16,代碼來源:kMultiCentersFlowManager.php

示例15: shouldConsumeJobStatusEvent

 public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob)
 {
     try {
         $jobObjectType = DropFolderXmlBulkUploadPlugin::getBatchJobObjectTypeCoreValue(DropFolderBatchJobObjectType::DROP_FOLDER_FILE);
         $jobStatuses = array(BatchJob::BATCHJOB_STATUS_FINISHED, BatchJob::BATCHJOB_STATUS_FINISHED_PARTIALLY, BatchJob::BATCHJOB_STATUS_FAILED, BatchJob::BATCHJOB_STATUS_FATAL, BatchJob::BATCHJOB_STATUS_QUEUED);
         $isMatch = $dbBatchJob->getJobType() == BatchJobType::BULKUPLOAD && $dbBatchJob->getObjectType() == $jobObjectType && in_array($dbBatchJob->getStatus(), $jobStatuses);
         return $isMatch;
     } catch (Exception $e) {
         KalturaLog::err('Failed to process shouldConsumeJobStatusEvent - ' . $e->getMessage());
     }
     return false;
 }
開發者ID:kubrickfr,項目名稱:server,代碼行數:12,代碼來源:kDropFolderXmlEventsConsumer.php


注:本文中的BatchJob::getJobType方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。