1 | <?php |
||
25 | class tx_crawler_domain_process extends tx_crawler_domain_lib_abstract_dbobject |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @var string table name |
||
30 | */ |
||
31 | protected static $tableName = 'tx_crawler_process'; |
||
32 | |||
33 | /** |
||
34 | * Returns the activity state for this process |
||
35 | * |
||
36 | * @param void |
||
37 | * @return boolean |
||
38 | */ |
||
39 | public function getActive() |
||
43 | |||
44 | /** |
||
45 | * Returns the identifier for the process |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 1 | public function getProcess_id() |
|
53 | |||
54 | /** |
||
55 | * Returns the timestamp of the exectime for the first relevant queue item. |
||
56 | * This can be used to determine the runtime |
||
57 | * |
||
58 | * @return int |
||
59 | */ |
||
60 | public function getTimeForFirstItem() |
||
67 | |||
68 | /** |
||
69 | * Returns the timestamp of the exectime for the last relevant queue item. |
||
70 | * This can be used to determine the runtime |
||
71 | * |
||
72 | * @return int |
||
73 | */ |
||
74 | public function getTimeForLastItem() |
||
81 | |||
82 | /** |
||
83 | * Returns the difference between first and last processed item |
||
84 | * |
||
85 | * @return int |
||
86 | */ |
||
87 | public function getRuntime() |
||
91 | |||
92 | /** |
||
93 | * Returns the ttl of the process |
||
94 | * |
||
95 | * @return int |
||
96 | */ |
||
97 | public function getTTL() |
||
101 | |||
102 | /** |
||
103 | * Counts the number of items which need to be processed |
||
104 | * |
||
105 | * @param void |
||
106 | * @return int |
||
107 | */ |
||
108 | public function countItemsProcessed() |
||
113 | |||
114 | /** |
||
115 | * Counts the number of items which still need to be processed |
||
116 | * |
||
117 | * @param void |
||
118 | * @return int |
||
119 | */ |
||
120 | public function countItemsToProcess() |
||
125 | |||
126 | /** |
||
127 | * Returns the Progress of a crawling process as a percentage value |
||
128 | * |
||
129 | * @param void |
||
130 | * @return float |
||
131 | */ |
||
132 | public function getProgress() |
||
142 | |||
143 | /** |
||
144 | * Returns the number of assigned Entrys |
||
145 | * |
||
146 | * @return int |
||
147 | */ |
||
148 | public function countItemsAssigned() |
||
152 | |||
153 | /** |
||
154 | * Return the processes current state |
||
155 | * |
||
156 | * @param void |
||
157 | * @return string 'running'|'cancelled'|'completed' |
||
158 | */ |
||
159 | public function getState() |
||
171 | } |
||
172 |