Code Coverage  | 
      ||||||||||
Lines  | 
       Functions and Methods  | 
       Classes and Traits  | 
      ||||||||
| Total | n/a  | 
       0 / 0  | 
       n/a  | 
       0 / 0  | 
       CRAP | n/a  | 
       0 / 0  | 
      |||
| 1 | <?php | 
| 2 | |
| 3 | /** | 
| 4 | * This program is free software; you can redistribute it and/or | 
| 5 | * modify it under the terms of the GNU General Public License | 
| 6 | * as published by the Free Software Foundation; under version 2 | 
| 7 | * of the License (non-upgradable). | 
| 8 | * | 
| 9 | * This program is distributed in the hope that it will be useful, | 
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
| 12 | * GNU General Public License for more details. | 
| 13 | * | 
| 14 | * You should have received a copy of the GNU General Public License | 
| 15 | * along with this program; if not, write to the Free Software | 
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
| 17 | * | 
| 18 | * Copyright (c) 2014 (original work) Open Assessment Technologies SA; | 
| 19 | * | 
| 20 | * | 
| 21 | */ | 
| 22 | |
| 23 | namespace oat\oatbox\task; | 
| 24 | |
| 25 | /** | 
| 26 | * @deprecated since version 7.10.0, to be removed in 8.0. Use \oat\tao\model\taskQueue\QueueDispatcher instead. | 
| 27 | */ | 
| 28 | interface Queue extends \IteratorAggregate | 
| 29 | { | 
| 30 | /** | 
| 31 | * @deprecated since 3.15.2 | 
| 32 | */ | 
| 33 | public const CONFIG_ID = 'generis/taskqueue'; | 
| 34 | |
| 35 | /** | 
| 36 | * @deprecated since version 7.10.0, to be removed in 8.0. Use | 
| 37 | * \oat\tao\model\taskQueue\QueueDispatcherInterface::SERVICE_ID instead. | 
| 38 | */ | 
| 39 | public const SERVICE_ID = 'generis/taskqueue'; | 
| 40 | |
| 41 | /** | 
| 42 | * @deprecated since version 7.10.0, to be removed in 8.0. Use | 
| 43 | * \oat\tao\model\taskQueue\QueueDispatcherInterface::FILE_SYSTEM_ID instead. | 
| 44 | */ | 
| 45 | public const FILE_SYSTEM_ID = 'taskQueueStorage'; | 
| 46 | |
| 47 | /** | 
| 48 | * @param $actionId | 
| 49 | * @param $parameters | 
| 50 | * @param $label | 
| 51 | * @param $task | 
| 52 | * @param boolean $repeatedly Whether task created repeatedly (for example when execution of task was failed and | 
| 53 | * task puts to the queue again). | 
| 54 | * @return mixed | 
| 55 | * | 
| 56 | * @deprecated since version 7.10.0, to be removed in 8.0. | 
| 57 | */ | 
| 58 | public function createTask($actionId, $parameters, $repeatedly = false, $label = null, $task = null); | 
| 59 | |
| 60 | /** | 
| 61 | * @deprecated since version 7.10.0, to be removed in 8.0. | 
| 62 | */ | 
| 63 | public function getIterator(); | 
| 64 | |
| 65 | /** | 
| 66 | * @deprecated since version 7.10.0, to be removed in 8.0. | 
| 67 | */ | 
| 68 | public function updateTaskStatus($taskId, $status); | 
| 69 | |
| 70 | /** | 
| 71 | * @deprecated since version 7.10.0, to be removed in 8.0. | 
| 72 | */ | 
| 73 | public function updateTaskReport($taskId, $report); | 
| 74 | |
| 75 | /** | 
| 76 | * Get task instance by id | 
| 77 | * @param $taskId | 
| 78 | * @return Task | 
| 79 | * | 
| 80 | * @deprecated since version 7.10.0, to be removed in 8.0. | 
| 81 | */ | 
| 82 | public function getTask($taskId); | 
| 83 | } |