]> git.mxchange.org Git - hub.git/blob - application/hub/templates/xml/cruncher/producer/work_unit.xml
ee9460fd3f6c1ff1c873144d5cf14cff13373697
[hub.git] / application / hub / templates / xml / cruncher / producer / work_unit.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 A XML template for the producer to produce work units
4
5 @author         Roland Haeder <webmaster@ship-simu.org>
6 @version        0.0.0
7 @copyright      Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
8 @license        GNU GPL 3.0 or any newer version
9 @link           http://www.ship-simu.org
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>
23 //-->
24 <work-unit>
25         <!--
26         This node stores meta-data which is needed to manage this work unit (WU).
27         //-->
28         <meta-data>
29                 <!--
30                 The global project identifier, or short GPI, identifies every crunching
31                 project in the cloud (aka "hub" project). Therefore it has to be unique
32                 (globally unique). This is ensured by hashing the node's hub-id and some
33                 more data (will be specified later on).
34                 //-->
35                 <global-project-identifier>{?global_project_idendifier?}</global-project-identifier>
36                 <!--
37                 The used cipher to crunch the given keys. Currently only 'mcrypt' is
38                 supported as "cipher function".
39                 //-->
40                 <cipher>
41                         <cipher-function>{?cipher_function?}</cipher-function>
42                         <cipher-name>{?cipher_name?}</cipher-name>
43                 </cipher>
44                 <!--
45                 Timestamp in the format YYYY-mm-dd HH:ii:ss when this work unit has been
46                 created.
47                 //-->
48                 <work-unit-created>{?work_unit_created</work-unit-created>
49                 <!--
50                 The node's hub-id. This is required to verify the GPI.
51                 //-->
52                 <hub-id>{?hub_id?}</hub-id>
53                 <!--
54                 The node's current session-id. This is required to verify the hub-id.
55                 //-->
56                 <session-id>{?session_id?}</session-id>
57         </meta-data>
58         <!--
59         The data the cruncher shall process for this work unit.
60         //-->
61         <unprocessed-data>
62                 <!--
63                 Because this is a WU for crunchers, there is always a key list.
64                 //-->
65                 <cruncher-key-list key-count="{?key_count?}">
66                         <!-- A single key to crunch. //-->
67                         <cruncher-key>
68                                 <key-id>{?key_id?}</key-id>
69                                 <key-value><![CDATA[{?key_value?}]]></key-value>
70                         </cruncher-key>
71                 </cruncher-key-list>
72         </unprocessed-data>
73 </work-unit>