application/hub/main/filter/.htaccess -text svneol=unset#text/plain
application/hub/main/filter/activation/.htaccess -text svneol=unset#text/plain
application/hub/main/filter/activation/node/.htaccess svneol=native#text/plain
+application/hub/main/filter/activation/node/class_NodeActivationAnnouncementFilter.php svneol=native#text/plain
application/hub/main/filter/activation/node/class_NodeActivationSelfAnnouncementFilter.php svneol=native#text/plain
application/hub/main/filter/apt-proxy/.htaccess svneol=native#text/plain
application/hub/main/filter/apt-proxy/class_AptProxyInitializationFilter.php svneol=native#text/plain
// CFG: NODE-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER
$cfg->setConfigEntry('node_activation_task_handler_initializer_filter', 'NodeTaskHandlerInitializerFilter');
-// CFG: NODE-ACTIVATION-SELF-ANNOUNCEMENT-TASK-FILTER
-$cfg->setConfigEntry('node_activation_self_announcement_task_filter', 'NodeActivationSelfAnnouncementFilter');
+// CFG: NODE-ACTIVATION-ANNOUNCEMENT-TASK-FILTER
+$cfg->setConfigEntry('node_activation_announcement_task_filter', 'NodeActivationAnnouncementFilter');
// CFG: NODE-WELCOME-TEASER-FILTER
$cfg->setConfigEntry('node_welcome_teaser_filter', 'NodeWelcomeTeaserFilter');
// CFG: TASK-SELF-CONNECT-MAX-RUNS
$cfg->setConfigEntry('task_self_connect_max_runs', 0);
-// CFG: TASK-SELF-ANNOUNCEMENT-STARTUP-DELAY
-$cfg->setConfigEntry('task_self_announcement_startup_delay', 10000);
+// CFG: TASK-ANNOUNCEMENT-STARTUP-DELAY
+$cfg->setConfigEntry('task_announcement_startup_delay', 10000);
-// CFG: TASK-SELF-ANNOUNCEMENT-INTERVAL-DELAY
-$cfg->setConfigEntry('task_self_announcement_interval_delay', 1000);
+// CFG: TASK-ANNOUNCEMENT-INTERVAL-DELAY
+$cfg->setConfigEntry('task_announcement_interval_delay', 1000);
-// CFG: TASK-SELF-ANNOUNCEMENT-MAX-RUNS
-$cfg->setConfigEntry('task_self_announcement_max_runs', 1);
+// CFG: TASK-ANNOUNCEMENT-MAX-RUNS
+$cfg->setConfigEntry('task_announcement_max_runs', 1);
// CFG: TASK-UPDATE-CHECK-STARTUP-DELAY
$cfg->setConfigEntry('task_update_check_startup_delay', 1000*60*60*6);
/**
* Returns a singleton (registry-based) DHT object instance
*
- * @param $nodeInstance An instance of a NodeHelper class
+ * @param $nodeInstance An instance of a NodeHelper class
* @return $dhtInstance An instance of a DHT object class
*/
public static final function createDhtObjectInstance (NodeHelper $nodeInstance) {
--- /dev/null
+<?php
+/**
+ * An Announcement filter for hub activation
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 NodeActivationAnnouncementFilter extends BaseNodeFilter implements Filterable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ protected function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+ }
+
+ /**
+ * Creates an instance of this filter class
+ *
+ * @return $filterInstance An instance of this filter class
+ */
+ public static final function createNodeActivationAnnouncementFilter () {
+ // Get a new instance
+ $filterInstance = new NodeActivationAnnouncementFilter();
+
+ // Return the instance
+ return $filterInstance;
+ }
+
+ /**
+ * Executes the filter with given request and response objects
+ *
+ * @param $requestInstance An instance of a class with an Requestable interface
+ * @param $responseInstance An instance of a class with an Responseable interface
+ * @return void
+ */
+ public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ // Get task handler instance
+ $handlerInstance = Registry::getRegistry()->getInstance('task');
+
+ // Prepare a self-test task for the listeners
+ $taskInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_task_class');
+
+ // Register it
+ $handlerInstance->registerTask('announcement', $taskInstance);
+ }
+}
+
+// [EOF]
+?>
<?php
-/**
- * A SelfAnnouncement filter for hub activation
- *
- * @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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 NodeActivationSelfAnnouncementFilter extends BaseNodeFilter implements Filterable {
- /**
- * Protected constructor
- *
- * @return void
- */
- protected function __construct () {
- // Call parent constructor
- parent::__construct(__CLASS__);
- }
-
- /**
- * Creates an instance of this filter class
- *
- * @return $filterInstance An instance of this filter class
- */
- public static final function createNodeActivationSelfAnnouncementFilter () {
- // Get a new instance
- $filterInstance = new NodeActivationSelfAnnouncementFilter();
-
- // Return the instance
- return $filterInstance;
- }
-
- /**
- * Executes the filter with given request and response objects
- *
- * @param $requestInstance An instance of a class with an Requestable interface
- * @param $responseInstance An instance of a class with an Responseable interface
- * @return void
- */
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- // Get task handler instance
- $handlerInstance = Registry::getRegistry()->getInstance('task');
-
- // Prepare a self-test task for the listeners
- $taskInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_task_class');
-
- // Register it
- $handlerInstance->registerTask('self_announcement', $taskInstance);
- }
-}
-
-// [EOF]
+// @DEPRECATED
?>
$controllerInstance = $applicationInstance->getControllerInstance();
// Self-announcement task
- $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_self_announcement_task_filter'));
+ $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_announcement_task_filter'));
// @TODO Add some filters here
$this->partialStub('Add some filters here.');
$controllerInstance = $applicationInstance->getControllerInstance();
// Self-announcement task
- $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_self_announcement_task_filter'));
+ $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_announcement_task_filter'));
// @TODO Add some filters here
$this->partialStub('Add some filters here.');
$controllerInstance = $applicationInstance->getControllerInstance();
// Self-announcement task
- $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_self_announcement_task_filter'));
+ $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_announcement_task_filter'));
// @TODO Add some filters here
$this->partialStub('Add some filters here.');
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
- * @todo Maybe visit some sub-objects
*/
public function accept (Visitor $visitorInstance) {
// Visit this task
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
}
/**
- * Accepts the visitor to process the visit "request"
+ * Accepts the visitor to process the visitor
*
* @param $visitorInstance An instance of a Visitor class
* @return void
### WARNING: THIS FILE IS AUTO-GENERATED BY ./todo-builder.sh ###
### DO NOT EDIT THIS FILE. ###
-./application/hub/config.php:655:// @TODO This and the next value is very static again
-./application/hub/config.php:719:// @TODO This is very static, rewrite it to more flexible
+./application/hub/config.php:661:// @TODO This and the next value is very static again
+./application/hub/config.php:725:// @TODO This is very static, rewrite it to more flexible
./application/hub/interfaces/apt-proxy/class_AptProxy.php:10: * @todo We need to find a better name for this interface
./application/hub/interfaces/chat/class_Chatter.php:10: * @todo We need to find a better name for this interface
./application/hub/interfaces/cruncher/class_CruncherHelper.php:10: * @todo We need to find a better name for this interface
./application/hub/main/filter/node/class_NodeInitializationFilter.php:87: // @TODO Can we rewrite this to app_exit() ?
./application/hub/main/filter/node/class_NodePhpRequirementsFilter.php:55: * @todo Add more test and try to add an extra message to the thrown exception
./application/hub/main/filter/node/class_NodeWelcomeTeaserFilter.php:55: * @todo Handle over the $responseInstance to outputConsoleTeaser()
-./application/hub/main/filter/shutdown/node/class_NodeShutdownDeinitQueuesFilter.php:55: * @todo 0% done
./application/hub/main/filter/shutdown/node/class_NodeShutdownFlushNodeListFilter.php:55: * @todo 0% done
./application/hub/main/filter/shutdown/node/class_NodeShutdownTaskHandlerFilter.php:55: * @todo 0% done
./application/hub/main/filter/task/apt-proxy/class_AptProxyTaskHandlerInitializerFilter.php:55: * @todo 5% done
./application/hub/main/lists/class_BaseList.php:276: // @TODO Extend this somehow?
./application/hub/main/lists/groups/class_ListGroupList.php:61: * @todo 0% done
./application/hub/main/lists/query/local/class_LocalQueryList.php:68: * @todo 0% done
-./application/hub/main/nodes/boot/class_HubBootNode.php:102: * @todo Unfinished method
-./application/hub/main/nodes/boot/class_HubBootNode.php:122: // @TODO Add some filters here
+./application/hub/main/nodes/boot/class_HubBootNode.php:110: // @TODO Add some filters here
./application/hub/main/nodes/boot/class_HubBootNode.php:58: * @todo add some more special bootstrap things for this boot node
./application/hub/main/nodes/class_BaseHubNode.php:109: * @todo Make this code more generic and move it to CryptoHelper or
-./application/hub/main/nodes/class_BaseHubNode.php:458: * @todo Try to make this method more generic so we can move it in BaseFrameworkSystem
-./application/hub/main/nodes/class_BaseHubNode.php:498: * @todo Change the first if() block to check for a specific state
-./application/hub/main/nodes/class_BaseHubNode.php:691: * @todo Add checking if this node has been announced to the sender node
-./application/hub/main/nodes/class_BaseHubNode.php:711: * @todo Add checking if this node has been announced to the sender node
-./application/hub/main/nodes/class_BaseHubNode.php:775: * @todo Find more to do here
-./application/hub/main/nodes/class_BaseHubNode.php:788: * @todo Handle thrown exception
+./application/hub/main/nodes/class_BaseHubNode.php:433: * @todo Try to make this method more generic so we can move it in BaseFrameworkSystem
+./application/hub/main/nodes/class_BaseHubNode.php:473: * @todo Change the first if() block to check for a specific state
+./application/hub/main/nodes/class_BaseHubNode.php:666: * @todo Add checking if this node has been announced to the sender node
+./application/hub/main/nodes/class_BaseHubNode.php:686: * @todo Add checking if this node has been announced to the sender node
+./application/hub/main/nodes/class_BaseHubNode.php:750: * @todo Find more to do here
+./application/hub/main/nodes/class_BaseHubNode.php:763: * @todo Handle thrown exception
./application/hub/main/nodes/list/class_HubListNode.php:58: * @todo Implement more bootstrap steps
-./application/hub/main/nodes/list/class_HubListNode.php:68: * @todo Unfinished method
-./application/hub/main/nodes/list/class_HubListNode.php:91: // @TODO Add some filters here
+./application/hub/main/nodes/list/class_HubListNode.php:79: // @TODO Add some filters here
./application/hub/main/nodes/master/class_HubMasterNode.php:58: * @todo Implement this method
-./application/hub/main/nodes/master/class_HubMasterNode.php:72: * @todo Unfinished method
-./application/hub/main/nodes/master/class_HubMasterNode.php:95: // @TODO Add some filters here
+./application/hub/main/nodes/master/class_HubMasterNode.php:83: // @TODO Add some filters here
./application/hub/main/nodes/regular/class_HubRegularNode.php:58: * @todo Implement this method
-./application/hub/main/nodes/regular/class_HubRegularNode.php:68: * @todo Unfinished method
-./application/hub/main/nodes/regular/class_HubRegularNode.php:91: // @TODO Add some filters here
+./application/hub/main/nodes/regular/class_HubRegularNode.php:79: // @TODO Add some filters here
./application/hub/main/package/class_NetworkPackage.php:1087: * @todo Implement verification of all sent tags here?
./application/hub/main/package/class_NetworkPackage.php:23: * @todo Needs to add functionality for handling the object's type
./application/hub/main/package/class_NetworkPackage.php:308: // @TODO crc32() is very weak, but it needs to be fast
./application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php:54: * @todo Maybe visit some sub-objects
./application/hub/main/tasks/network/class_NetworkPackageReaderTask.php:63: * @todo Also visit some sub-objects?
./application/hub/main/tasks/network/class_NetworkPackageWriterTask.php:59: * @todo Also visit some sub-objects?
-./application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php:53: * @todo 0%
./application/hub/main/tasks/node/chunks/class_NodeChunkAssemblerTask.php:59: * @todo Also visit some sub-objects?
./application/hub/main/tasks/node/decoder/class_NodePackageDecoderTask.php:65: * @todo Maybe visit some sub-objects
+./application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php:53: * @todo Maybe visit some sub-objects
+./application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php:64: * @todo 0% done
./application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php:53: * @todo Maybe visit some sub-objects
-./application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php:64: * @todo 0%
+./application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php:64: * @todo 0% done
./application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php:63: // @TODO Do we need to visit this task? $visitorInstance->visitTask($this);
./application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php:70: * @todo 0% done
./application/hub/main/tasks/node/ping/class_NodePingTask.php:63: * @todo Also visit some sub-objects?
./application/hub/main/tasks/node/ping/class_NodePingTask.php:74: * @todo 0% done
-./application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php:53: * @todo 0%
./application/hub/main/tasks/node/update/class_NodeUpdateCheckTask.php:53: * @todo 0%
./application/hub/main/template/announcement/class_XmlAnnouncementTemplateEngine.php:10: * @todo This template engine does not make use of setTemplateType()
./application/hub/main/template/answer/announcement/class_XmlAnnouncementAnswerTemplateEngine.php:10: * @todo This template engine does not make use of setTemplateType()
./inc/database.php:11: * @todo Minimize these includes
./inc/database.php:51:// @TODO Rewrite this
./inc/includes.php:11: * @todo Minimize these includes
-./inc/includes.php:35:// @TODO This makes the core depending on the SPL. But it should be installed anyway.
-./inc/includes.php:39:// @TODO Find a nicer OOP-ed way for this
+./inc/includes.php:37:// @TODO This makes the core depending on the SPL. But it should be installed anyway.
+./inc/includes.php:41:// @TODO Find a nicer OOP-ed way for this
./inc/loader/class_ClassLoader.php:273: /* @todo: Do not die here. */
./inc/output.php:11: * @todo Minimize these includes
./inc/selector.php:11: * @todo Minimize these includes
-./index.php:57: * @todo This method is old code and needs heavy rewrite and should be moved to ApplicationHelper
+./index.php:43: * @todo This method is old code and needs heavy rewrite and should be moved to ApplicationHelper
### ### DEPRECATION FOLLOWS: ### ###
./application/hub/exceptions/hub/class_HubAlreadyAnnouncedException.php:2:// @DEPRECATED
./application/hub/interfaces/dht/class_Dht.php:2:// @DEPRECATED
./application/hub/interfaces/nodes/class_NodeHelper.php:2:// @DEPRECATED
./application/hub/main/database/wrapper/node/class_NodeListDatabaseWrapper.php:2:// @DEPRECATED
+./application/hub/main/filter/bootstrap/node/class_NodeBootstrapInitQueuesFilter.php:2:// @DEPRECATED
./application/hub/main/filter/bootstrap/node/class_NodeBootstrapRestoreNodeListFilter.php:2:// @DEPRECATED
+./application/hub/main/filter/shutdown/node/class_NodeShutdownDeinitQueuesFilter.php:2:// @DEPRECATED
./application/hub/main/handler/message-types/class_NodeMessageAnnouncementHandler.php:2:// @DEPRECATED
./application/hub/main/helper/hub/announcement/class_HubDescriptorHelper.php:2:// @DEPRECATED
./application/hub/main/nodes/class_BaseHubNode.php:56: * @deprecated