*
* @return void
*/
- function addExtraHubFilters ();
+ function addExtraCruncherFilters ();
}
// [EOF]
*
* @return void
*/
- function addExtraHubFilters ();
+ function addExtraNodeFilters ();
/**
* Generic method to acquire a hub-id. On first run this generates a new one
* @param $responseInstance A Responseable class
* @return void
*/
- function activateHub (Requestable $requestInstance, Responseable $responseInstance);
+ function activateNode (Requestable $requestInstance, Responseable $responseInstance);
/**
* Generates a session id which will be sent to the other hubs and peers
*
* @return void
*/
- function addExtraHubFilters ();
+ function addExtraNodeFilters ();
/**
* Announces this hub to the upper (bootstrap or list) hubs. After this is
$applicationInstance->getControllerInstance()->executeBootstrapFilters($requestInstance, $responseInstance);
$this->debugOutput('BOOTSTRAP: Bootstrap finished.');
+ // Get cruncher instance
+ $cruncherInstance = Registry::getRegistry()->getInstance('cruncher');
+
+ // Add some cruncher-specific filters, e.g. announcement
+ $cruncherInstance->addExtraCruncherFilters();
+
// Get task handler instance
$handlerInstance = Registry::getRegistry()->getInstance('task');
$nodeInstance = Registry::getRegistry()->getInstance('node');
// Add some node-specific filters, e.g. announcement
- $nodeInstance->addExtraHubFilters();
+ $nodeInstance->addExtraNodeFilters();
// -------------------------- Hub activation --------------------------
// Activates the hub by doing some final preparation steps and setting
// the attribute $hubIsActive to true
- $nodeInstance->activateHub($requestInstance, $responseInstance);
+ $nodeInstance->activateNode($requestInstance, $responseInstance);
// Get task handler instance
$handlerInstance = Registry::getRegistry()->getInstance('task');
<?php
/**
- * A hub-cruncher class for the 'Cruncher' mode
+ * A hub-mcrypt cruncher class
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
* Creates an instance of this hub-cruncher class
*
* @param $requestInstance An instance of a Requestable class
- * @return $cruncherInstance An instance of this hub-cruncher class
+ * @return $cruncherInstance An instance of this hub-cruncher class
*/
public final static function createHubMcryptCruncher (Requestable $requestInstance) {
// Get a new instance
*
* @return void
*/
- public function addExtraHubFilters () {
+ public function addExtraCruncherFilters () {
// Add some filters here
}
}
*
* @return void
*/
- public function addExtraHubFilters () {
+ public function addExtraNodeFilters () {
// Get the application instance from registry
$applicationInstance = Registry::getRegistry()->getInstance('app');
* @param $responseInstance A Responseable class
* @return void
*/
- public function activateHub (Requestable $requestInstance, Responseable $responseInstance) {
+ public function activateNode (Requestable $requestInstance, Responseable $responseInstance) {
// Checks wether a listener is still active and shuts it down if one
// is still listening.
if (($this->determineIfListenerIsActive()) && ($this->getIsActive())) {
*
* @return void
*/
- public function addExtraHubFilters () {
+ public function addExtraNodeFilters () {
// Get the application instance from registry
$applicationInstance = Registry::getRegistry()->getInstance('app');
*
* @return void
*/
- public function addExtraHubFilters () {
+ public function addExtraNodeFilters () {
// Get the application instance from registry
$applicationInstance = Registry::getRegistry()->getInstance('app');
*
* @return void
*/
- public function addExtraHubFilters () {
+ public function addExtraNodeFilters () {
// Get the application instance from registry
$applicationInstance = Registry::getRegistry()->getInstance('app');