1 | <?php |
||
38 | class Process extends AbstractEntity |
||
39 | { |
||
40 | const STATE_RUNNING = 'running'; |
||
41 | const STATE_CANCELLED = 'cancelled'; |
||
42 | const STATE_COMPLETED = 'completed'; |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $row; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $processId = ''; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | protected $active = false; |
||
58 | |||
59 | /** |
||
60 | * @var int |
||
61 | */ |
||
62 | protected $ttl = 0; |
||
63 | |||
64 | /** |
||
65 | * @var int |
||
66 | */ |
||
67 | protected $assignedItemsCount = 0; |
||
68 | |||
69 | /** |
||
70 | * @var bool |
||
71 | */ |
||
72 | protected $deleted = false; |
||
73 | |||
74 | /** |
||
75 | * @var string |
||
76 | */ |
||
77 | protected $systemProcessId = ''; |
||
78 | |||
79 | /** |
||
80 | * @var QueueRepository |
||
81 | */ |
||
82 | protected $queueRepository; |
||
83 | |||
84 | 16 | public function __construct() |
|
89 | |||
90 | /** |
||
91 | * @return array |
||
92 | * |
||
93 | * @deprecated since crawler v6.2.2, will be removed in crawler v7.0.0. |
||
94 | */ |
||
95 | public function getRow() |
||
99 | |||
100 | /** |
||
101 | * @param array $row |
||
102 | * |
||
103 | * @deprecated since crawler v6.2.2, will be removed in crawler v7.0.0. |
||
104 | */ |
||
105 | public function setRow($row) |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | 16 | public function getProcessId() |
|
117 | |||
118 | /** |
||
119 | * @param string $processId |
||
120 | */ |
||
121 | 30 | public function setProcessId($processId) |
|
125 | |||
126 | /** |
||
127 | * @return bool |
||
128 | */ |
||
129 | 1 | public function isActive() |
|
133 | |||
134 | /** |
||
135 | * @param bool $active |
||
136 | */ |
||
137 | 15 | public function setActive($active) |
|
141 | |||
142 | /** |
||
143 | * @return int |
||
144 | */ |
||
145 | 1 | public function getTtl() |
|
149 | |||
150 | /** |
||
151 | * @param int $ttl |
||
152 | */ |
||
153 | 15 | public function setTtl($ttl) |
|
157 | |||
158 | /** |
||
159 | * @return int |
||
160 | */ |
||
161 | 1 | public function getAssignedItemsCount() |
|
165 | |||
166 | /** |
||
167 | * @param int $assignedItemsCount |
||
168 | */ |
||
169 | 15 | public function setAssignedItemsCount($assignedItemsCount) |
|
173 | |||
174 | /** |
||
175 | * @return bool |
||
176 | */ |
||
177 | 1 | public function isDeleted() |
|
181 | |||
182 | /** |
||
183 | * @param bool $deleted |
||
184 | */ |
||
185 | 1 | public function setDeleted($deleted) |
|
189 | |||
190 | /** |
||
191 | * @return string |
||
192 | */ |
||
193 | 1 | public function getSystemProcessId() |
|
197 | |||
198 | /** |
||
199 | * @param string $systemProcessId |
||
200 | */ |
||
201 | 1 | public function setSystemProcessId($systemProcessId) |
|
205 | |||
206 | /** |
||
207 | * Returns the timestamp of the exectime for the first relevant queue item. |
||
208 | * This can be used to determine the runtime |
||
209 | * |
||
210 | * @return int |
||
211 | * |
||
212 | * @codeCoverageIgnore |
||
213 | * @deprecated since crawler v6.2.2, will be removed in crawler v7.0.0. |
||
214 | */ |
||
215 | public function getTimeForFirstItem() |
||
220 | |||
221 | /** |
||
222 | * Returns the timestamp of the exectime for the last relevant queue item. |
||
223 | * This can be used to determine the runtime |
||
224 | * |
||
225 | * @return int |
||
226 | * @codeCoverageIgnore |
||
227 | * @deprecated since crawler v6.2.2, will be removed in crawler v7.0.0. |
||
228 | */ |
||
229 | public function getTimeForLastItem() |
||
234 | |||
235 | /** |
||
236 | * Returns the difference between first and last processed item |
||
237 | * |
||
238 | * @return int |
||
239 | */ |
||
240 | 5 | public function getRuntime() |
|
244 | |||
245 | /** |
||
246 | * Counts the number of items which need to be processed |
||
247 | * |
||
248 | * @return int |
||
249 | * @codeCoverageIgnore |
||
250 | */ |
||
251 | public function countItemsProcessed() |
||
255 | |||
256 | /** |
||
257 | * Counts the number of items which still need to be processed |
||
258 | * |
||
259 | * @return int |
||
260 | * @codeCoverageIgnore |
||
261 | */ |
||
262 | public function countItemsToProcess() |
||
266 | |||
267 | /** |
||
268 | * Returns the Progress of a crawling process as a percentage value |
||
269 | * |
||
270 | * @return float |
||
271 | */ |
||
272 | 5 | public function getProgress() |
|
286 | |||
287 | /** |
||
288 | * Return the processes current state |
||
289 | * |
||
290 | * @return string |
||
291 | */ |
||
292 | 4 | public function getState() |
|
303 | } |
||
304 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.