*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Cruncher Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Cruncher Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class CruncherTaskHandlerInitializerFilter extends BaseFilter implements Filterable {
+class CruncherTaskHandlerInitializerFilter extends BaseCruncherFilter implements Filterable {
/**
* Protected constructor
*
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
// Register all tasks:
+ //
// 1) A task for fetching WUs (work units) or test units
$taskInstance = ObjectFactory::createObjectByConfiguredName('cruncher_work_unit_fetcher_task_class');
$handlerInstance->registerTask('cruncher_work_unit_fetcher', $taskInstance);
$taskInstance = ObjectFactory::createObjectByConfiguredName('cruncher_test_unit_producer_task_class');
$handlerInstance->registerTask('cruncher_test_unit_producer', $taskInstance);
+ /*
+ * 3) A task for generating keys based on the generated test unit. This
+ * task will only be executed if the state of the cruncher is one of
+ * these: 'virgin'.
+ */
+ $taskInstance = ObjectFactory::createObjectByConfiguredName('cruncher_key_producer_task_class');
+ $handlerInstance->registerTask('cruncher_key_producer', $taskInstance);
+
// Put the task handler in registry
Registry::getRegistry()->addInstance('task', $handlerInstance);
}