during initialization phase.
Signed-off-by: Roland Haeder <roland@mxchange.org>
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
+ // Put the task handler in registry
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+
/*
* Register all tasks:
*
*/
$taskInstance = ObjectFactory::createObjectByConfiguredName('apt_proxy_listener_task_class');
$handlerInstance->registerTask('apt_proxy_listener', $taskInstance);
-
- // Put the task handler in registry
- Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}
}
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
+ // Put the task handler in registry
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+
/*
* Register all tasks:
*
*/
$taskInstance = ObjectFactory::createObjectByConfiguredName('chat_telnet_listener_task_class');
$handlerInstance->registerTask('chat_telnet_listener', $taskInstance);
-
- // Put the task handler in registry
- Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}
}
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
+ // Put the task handler in registry
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+
/*
* Register all tasks:
*
// 11) Uploaded list scanner (checks for wanted files)
$taskInstance = ObjectFactory::createObjectByConfiguredName('crawler_uploaded_list_scanner_task_class');
$handlerInstance->registerTask('crawler_uploaded_list_scanner', $taskInstance);
-
- // Put the task handler in registry
- Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}
}
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
+ // Put the task handler in registry
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+
// Register all tasks:
//
// 1) A task for fetching WUs (work units) or test units
*/
$taskInstance = ObjectFactory::createObjectByConfiguredName('cruncher_key_producer_task_class');
$handlerInstance->registerTask('cruncher_key_producer', $taskInstance);
-
- // Put the task handler in registry
- Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}
}
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
+ // Put the task handler in registry
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+
// Register all tasks:
//
// 1) A task for fetching blocks from the network
*/
$taskInstance = ObjectFactory::createObjectByConfiguredName('miner_node_communicator_task_class');
$handlerInstance->registerTask('miner_node_communicator', $taskInstance);
-
- // Put the task handler in registry
- Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}
}
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
+ // Put the task handler in registry
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+
// Prepare a package-tags initialization task for the listeners
$taskInstance = ObjectFactory::createObjectByConfiguredName('node_package_tags_init_task_class');
// Register it
$handlerInstance->registerTask('ping', $taskInstance);
- // Put the task handler in registry
- Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
-
/*
* Allow extra node-depending tasks, e.g. the bootstrapper node needs
* booting its DHT. DHTs are decentralized and are working on