/** * @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); }
/** * @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; }
protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeIntegrationCloseEvent($this->object, $this->modifiedColumns)) { return true; } KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . '] batch-job id [' . $this->batchJob->getId() . '] status [' . $this->batchJob->getStatus() . ']'); $result = $consumer->integrationJobClosed($this->batchJob); KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . '] batch-job id [' . $this->batchJob->getId() . '] status [' . $this->batchJob->getStatus() . ']'); return $result; }
/** * @param kObjectDataChangedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeDataChangedEvent($this->object, $this->previousVersion)) { return true; } $additionalLog = ''; if (method_exists($this->object, 'getId')) { $additionalLog .= 'id [' . $this->object->getId() . ']'; } KalturaLog::debug(get_class($this) . ' event consumed by ' . get_class($consumer) . ' object type [' . get_class($this->object) . '] ' . $additionalLog); return $consumer->objectDataChanged($this->object, $this->previousVersion, $this->raisedJob); }
/** * @param kObjectReadyForReplacmentEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeReadyForReplacmentEvent($this->object)) { return true; } $additionalLog = ''; if (method_exists($this->object, 'getId')) { $additionalLog .= 'id [' . $this->object->getId() . ']'; } KalturaLog::debug(get_class($this) . ' event consumed by ' . get_class($consumer) . ' object type [' . get_class($this->object) . '] ' . $additionalLog); return $consumer->objectReadyForReplacment($this->object, $this->raisedJob); }
/** * @param kObjectChangedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeChangedEvent($this->object, $this->modifiedColumns)) { return true; } $additionalLog = ''; if (method_exists($this->object, 'getId')) { $additionalLog .= 'id [' . $this->object->getId() . ']'; } KalturaLog::debug(get_class($this) . ' event consumed by ' . get_class($consumer) . ' object type [' . get_class($this->object) . '] ' . $additionalLog); return $consumer->objectChanged($this->object, $this->modifiedColumns); }
/** * @param kObjectReadyForReplacmentEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeReadyForReplacmentEvent($this->object)) { return true; } $additionalLog = ''; if (method_exists($this->object, 'getId')) { $additionalLog .= 'id [' . $this->object->getId() . ']'; } KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . '] object type [' . get_class($this->object) . '] ' . $additionalLog); $result = $consumer->objectReadyForReplacment($this->object, $this->raisedJob); KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . '] object type [' . get_class($this->object) . '] ' . $additionalLog); return $result; }
/** * @param kObjectChangedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeChangedEvent($this->object, $this->modifiedColumns)) { return true; } $additionalLog = ''; if (method_exists($this->object, 'getId')) { $additionalLog .= 'id [' . $this->object->getId() . ']'; } KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . '] object type [' . get_class($this->object) . '] ' . $additionalLog); $result = $consumer->objectChanged($this->object, $this->modifiedColumns); KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . '] object type [' . get_class($this->object) . '] ' . $additionalLog); return $result; }
/** * @param kObjectCopiedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeCopiedEvent($this->fromObject, $this->toObject)) { return true; } $additionalLog1 = ''; $additionalLog2 = ''; if (method_exists($this->fromObject, 'getId')) { $additionalLog1 .= 'id [' . $this->fromObject->getId() . ']'; } if (method_exists($this->toObject, 'getId')) { $additionalLog2 .= 'id [' . $this->toObject->getId() . ']'; } KalturaLog::debug(get_class($this) . " event consumed by " . get_class($consumer) . " from object type [" . get_class($this->fromObject) . "] {$additionalLog1} to object type [" . get_class($this->toObject) . "] {$additionalLog2}"); return $consumer->objectCopied($this->fromObject, $this->toObject); }
/** * @param kObjectCopiedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { if (!$consumer->shouldConsumeCopiedEvent($this->fromObject, $this->toObject)) { return true; } $additionalLog1 = ''; $additionalLog2 = ''; if (method_exists($this->fromObject, 'getId')) { $additionalLog1 .= 'id [' . $this->fromObject->getId() . ']'; } if (method_exists($this->toObject, 'getId')) { $additionalLog2 .= 'id [' . $this->toObject->getId() . ']'; } KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . '] from object type [' . get_class($this->fromObject) . "] {$additionalLog1} to object type [" . get_class($this->toObject) . "] {$additionalLog2}"); $result = $consumer->objectCopied($this->fromObject, $this->toObject); KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . '] from object type [' . get_class($this->fromObject) . "] {$additionalLog1} to object type [" . get_class($this->toObject) . "] {$additionalLog2}"); return $result; }
/** * @param kObjectCreatedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { return $consumer->objectCreated($this->object); }
/** * @param kObjectChangedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { return $consumer->objectChanged($this->object, $this->modifiedColumns); }
/** * @param kBatchJobStatusEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { return $consumer->updatedJob($this->dbBatchJob, $this->twinJob); }
/** * @param kObjectDataChangedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { return $consumer->objectDataChanged($this->object, $this->previousVersion); }
/** * @param kObjectCopiedEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function doConsume(KalturaEventConsumer $consumer) { return $consumer->objectCopied($this->fromObject, $this->toObject); }