]> git.mxchange.org Git - hub.git/commitdiff
Some configuration entries prefixed with 'node_'
authorRoland Häder <roland@mxchange.org>
Tue, 15 Mar 2011 21:30:54 +0000 (21:30 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 15 Mar 2011 21:30:54 +0000 (21:30 +0000)
14 files changed:
application/hub/config.php
application/hub/exceptions.php
application/hub/main/filter/activation/node/class_NodeActivationSelfAnnouncementFilter.php
application/hub/main/filter/task/node/class_NodeTaskHandlerInitializerFilter.php
application/hub/main/helper/hub/announcement/class_HubDescriptorHelper.php
application/hub/main/helper/hub/connection/class_HubSelfConnectHelper.php
application/hub/main/nodes/class_BaseHubNode.php
application/hub/main/package/class_NetworkPackage.php
application/hub/main/registry/objects/class_ObjectTypeRegistry.php
application/hub/main/tags/package/class_PackageTags.php
application/hub/main/tasks/hub/ping/class_HubPingTask.php
application/hub/main/template/announcement/class_XmlAnnouncementTemplateEngine.php
application/hub/main/template/connect/class_XmlSelfConnectTemplateEngine.php
application/hub/main/template/objects/class_XmlObjectRegistryTemplateEngine.php

index 97c66392cb3265cdfb4c0b1325e7a35f80c9f521..64c34f7458bd01286ebd69bcc457b292b8439af6 100644 (file)
@@ -225,50 +225,50 @@ $cfg->setConfigEntry('cruncher_shutdown_cruncher_filter', 'CruncherShutdownCrunc
 // CFG: NEWS-READER-CLASS
 $cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
 
-// CFG: ANNOUNCEMENT-TEMPLATE-CLASS
-$cfg->setConfigEntry('announcement_template_class', 'XmlAnnouncementTemplateEngine');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_announcement_template_class', 'XmlAnnouncementTemplateEngine');
 
-// CFG: ANNOUNCEMENT-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('announcement_template_extension', '.xml');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_announcement_template_extension', '.xml');
 
-// CFG: ANNOUNCEMENT-TEMPLATE-TYPE
-$cfg->setConfigEntry('announcement_template_type', 'xml/announcement');
+// CFG: NODE-ANNOUNCEMENT-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_announcement_template_type', 'xml/announcement');
 
-// CFG: ANNOUNCEMENT-STACKER-CLASS
-$cfg->setConfigEntry('announcement_stacker_class', 'FiLoStacker');
+// CFG: NODE-ANNOUNCEMENT-STACKER-CLASS
+$cfg->setConfigEntry('node_announcement_stacker_class', 'FiLoStacker');
 
-// CFG: SELF-CONNECT-TEMPLATE-CLASS
-$cfg->setConfigEntry('self_connect_template_class', 'XmlSelfConnectTemplateEngine');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_self_connect_template_class', 'XmlSelfConnectTemplateEngine');
 
-// CFG: SELF-CONNECT-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('self_connect_template_extension', '.xml');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_self_connect_template_extension', '.xml');
 
-// CFG: SELF-CONNECT-TEMPLATE-TYPE
-$cfg->setConfigEntry('self_connect_template_type', 'xml/self_connect');
+// CFG: NODE-SELF-CONNECT-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
 
-// CFG: SELF-CONNECT-STACKER-CLASS
-$cfg->setConfigEntry('self_connect_stacker_class', 'FiLoStacker');
+// CFG: NODE-SELF-CONNECT-STACKER-CLASS
+$cfg->setConfigEntry('node_self_connect_stacker_class', 'FiLoStacker');
 
-// CFG: OBJECT-REGISTRY-TEMPLATE-CLASS
-$cfg->setConfigEntry('object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
+$cfg->setConfigEntry('node_object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
 
-// CFG: OBJECT-REGISTRY-TEMPLATE-EXTENSION
-$cfg->setConfigEntry('object_registry_template_extension', '.xml');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
+$cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
 
-// CFG: OBJECT-REGISTRY-TEMPLATE-TYPE
-$cfg->setConfigEntry('object_registry_template_type', 'xml/object_registry');
+// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-TYPE
+$cfg->setConfigEntry('node_object_registry_template_type', 'xml/object_registry');
 
-// CFG: OBJECT-REGISTRY-STACKER-CLASS
-$cfg->setConfigEntry('object_registry_stacker_class', 'FiLoStacker');
+// CFG: NODE-OBJECT-REGISTRY-STACKER-CLASS
+$cfg->setConfigEntry('node_object_registry_stacker_class', 'FiLoStacker');
 
-// CFG: OBJECT-TYPE-REGISTRY-CLASS
-$cfg->setConfigEntry('object_type_registry_class', 'ObjectTypeRegistry');
+// CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
+$cfg->setConfigEntry('node_object_type_registry_class', 'ObjectTypeRegistry');
 
 // CFG: CODE-TEMPLATE-TYPE
 $cfg->setConfigEntry('code_template_type', 'xml');
 
 // CFG: PACKAGE-STACKER-CLASS
-$cfg->setConfigEntry('package_stacker_class', 'FiFoStacker');
+$cfg->setConfigEntry('network_package_stacker_class', 'FiFoStacker');
 
 // CFG: CRUNCHER-BUFFER-STACKER-CLASS
 $cfg->setConfigEntry('cruncher_buffer_stacker_class', 'FiFoStacker');
index 05a27767b08b14c9c21f41df4cdf9b8782754790..ca9ebde5e25cf812f5f642fbd6fd0c921fbe8f08 100644 (file)
@@ -111,7 +111,9 @@ function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext)
 // Assertion handler
 function __assertHandler ($file, $line, $code) {
        // Empty code?
-       if ($code === '') $code = '<em>Unknown</em>';
+       if ($code === '') {
+               $code = '<em>Unknown</em>';
+       } // END - if
 
        // Create message
        $message = sprintf("File: %s, Line: %s, Code: %s",
index a5e664c233bd4ec371610bfe508d8b545db30f92..48ed5775f88b1e6f3dc4dabdffca8f39a1b53707 100644 (file)
@@ -51,7 +51,6 @@ class NodeActivationSelfAnnouncementFilter extends BaseFilter implements Filtera
         * @param       $requestInstance        An instance of a class with an Requestable interface
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
-        * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get task handler instance
index 1ae1a5af61df47b5d66172e6f64821dfc7412976..7e46b791d9ac4ec7de6f8ae78798bcc6ccfbdd3d 100644 (file)
@@ -52,7 +52,7 @@ class NodeTaskHandlerInitializerFilter extends BaseFilter implements Filterable
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         * @throws      FilterChainException    If we need to interrupt the filter chain
-        * @todo        0% done
+        * @todo        Maybe some more tasks needs to be added?
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
index a3a62ee9c62ef4c1a1cfa63bef8dc1ef8dd1ba45..6e912d0ef29511bf659a6a5f6ec0cef3bf3ba8db 100644 (file)
@@ -72,7 +72,7 @@ class HubDescriptorHelper extends BaseHubHelper implements HelpableHub {
                $applicationInstance = Registry::getRegistry()->getInstance('app');
 
                // Get a XML template instance
-               $templateInstance = ObjectFactory::createObjectByConfiguredName('announcement_template_class', array($applicationInstance));
+               $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($applicationInstance));
 
                // Disable language support
                $templateInstance->enableLanguageSupport(false);
index 9f11626adc9615f42e77ece1d7261cc4b43a974e..9711cb0022a7d5fc7122b47e3f2e2efacba5c7b4 100644 (file)
@@ -71,7 +71,7 @@ class HubSelfConnectHelper extends BaseHubHelper implements HelpableHub {
                $applicationInstance = Registry::getRegistry()->getInstance('app');
 
                // Get a XML template instance
-               $templateInstance = ObjectFactory::createObjectByConfiguredName('self_connect_template_class', array($applicationInstance));
+               $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($applicationInstance));
 
                // Disable language support
                $templateInstance->enableLanguageSupport(false);
index 58161f01adc4037cc6eb25794cb49c8e10d33e3e..f60f1fc79bf1fde9f4bce631319926f2a4148e05 100644 (file)
@@ -263,7 +263,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
                                break;
                        } elseif ($ipPortArray[0] == $this->getConfigInstance()->getConfigEntry('node_listen_addr')) {
                                // IP matches listen address. At this point we really don't care
-                               // if we can also listen on that address!
+                               // if we can really listen on that address
                                $isFound = true;
 
                                // Remember the port number
index f05cb921a5cdacd334d2db7725a8afa4c2109f37..c8479677ab683618c752d0fd7218a87219e81a1d 100644 (file)
@@ -115,7 +115,7 @@ class NetworkPackage extends BaseFrameworkSystem implements Deliverable, Registe
 
                // We need to initialize a stack here for our packages even those
                // which have no recipient address and stamp... ;-)
-               $stackerInstance = ObjectFactory::createObjectByConfiguredName('package_stacker_class');
+               $stackerInstance = ObjectFactory::createObjectByConfiguredName('network_package_stacker_class');
 
                // At last, set it in this class
                $this->setStackerInstance($stackerInstance);
index 4dd5b4df62b6686d25caffcf7f986a316d4c0fc5..8e75ea519c720afa90710623eefece347051dc09 100644 (file)
@@ -60,7 +60,7 @@ class ObjectTypeRegistry extends BaseRegistry implements Register {
         */
        public function getIterator () {
                // Prepare a default iterator
-               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('object_type_iterator_class', array($this));
+               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_iterator_class', array($this));
 
                // And return it
                return $iteratorInstance;
index f7aa8ff622a2bb57496da1f1eeebbba78ef343a0..be54b5765b90e94bcd30d805c2444ef3163fd5d4 100644 (file)
@@ -74,7 +74,7 @@ class PackageTags extends BaseTags implements Tagable {
                $applicationInstance = Registry::getRegistry()->getInstance('app');
 
                // Get a XML template instance
-               $templateInstance = ObjectFactory::createObjectByConfiguredName('object_registry_template_class', array($applicationInstance));
+               $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class', array($applicationInstance));
 
                // Disable language support
                $templateInstance->enableLanguageSupport(false);
@@ -126,7 +126,7 @@ class PackageTags extends BaseTags implements Tagable {
         */
        private function verifyAllTags () {
                // Get the registry
-               $objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('object_type_registry_class');
+               $objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_registry_class');
 
                // "Walk" over all tags
                foreach ($this->getTags() as $tag) {
index 1001d25b463e7c3a8aab4f3eb83d632bc610a7d5..cda20d1256bea0ab8ae64f7aa0c4b08759a18018 100644 (file)
@@ -60,7 +60,6 @@ class HubPingTask extends BaseTask implements Visitable, Taskable {
         *
         * @param       $visitorInstance        An instance of a Visitor class
         * @return      void
-        * @todo        0%
         */
        public function accept (Visitor $visitorInstance) {
                // Visit this task
@@ -71,6 +70,7 @@ class HubPingTask extends BaseTask implements Visitable, Taskable {
         * Executes the task
         *
         * @return      void
+        * @todo        0% done
         */
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
index d84ba681c82c566252c7033628a3b131be8be6e5..f4a066fd93ef007e4770009d82a0f175e9242f03 100644 (file)
@@ -105,13 +105,13 @@ class XmlAnnouncementTemplateEngine extends BaseTemplateEngine implements Compil
 
                // Set template extensions
                $templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
-               $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('announcement_template_extension'));
+               $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('node_announcement_template_extension'));
 
                // Absolute output path for compiled templates
                $templateInstance->setCompileOutputPath($templateInstance->getConfigInstance()->getConfigEntry('base_path') . $templateInstance->getConfigInstance()->getConfigEntry('compile_output_path'));
 
                // Init a variable stacker
-               $stackerInstance = ObjectFactory::createObjectByConfiguredName('announcement_stacker_class');
+               $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_stacker_class');
 
                // Set it
                $templateInstance->setStackerInstance($stackerInstance);
@@ -129,7 +129,7 @@ class XmlAnnouncementTemplateEngine extends BaseTemplateEngine implements Compil
         */
        public function loadAnnouncementTemplate ($template = 'self_announcement') {
                // Set template type
-               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('announcement_template_type'));
+               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_announcement_template_type'));
 
                // Load the special template
                $this->loadTemplate($template);
@@ -270,7 +270,7 @@ class XmlAnnouncementTemplateEngine extends BaseTemplateEngine implements Compil
                // Is the template dependency set?
                if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
                        // Get a temporay template instance
-                       $templateInstance = ObjectFactory::createObjectByConfiguredName('announcement_template_class', array($this->getApplicationInstance()));
+                       $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($this->getApplicationInstance()));
 
                        // Then load it
                        $templateInstance->loadAnnouncementTemplate($templateDependency);
index 7ec553fe2e23267cfb1ca649d20f0e1c3ffe1e53..df6cdd09b479b6a54887764be90ec3a47907e2fb 100644 (file)
@@ -98,13 +98,13 @@ class XmlSelfConnectTemplateEngine extends BaseTemplateEngine implements Compile
 
                // Set template extensions
                $templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
-               $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('self_connect_template_extension'));
+               $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('node_self_connect_template_extension'));
 
                // Absolute output path for compiled templates
                $templateInstance->setCompileOutputPath($templateInstance->getConfigInstance()->getConfigEntry('base_path') . $templateInstance->getConfigInstance()->getConfigEntry('compile_output_path'));
 
                // Init a variable stacker
-               $stackerInstance = ObjectFactory::createObjectByConfiguredName('self_connect_stacker_class');
+               $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_stacker_class');
 
                // Set it
                $templateInstance->setStackerInstance($stackerInstance);
@@ -122,7 +122,7 @@ class XmlSelfConnectTemplateEngine extends BaseTemplateEngine implements Compile
         */
        public function loadSelfConnectTemplate ($template = 'self_connect') {
                // Set template type
-               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('self_connect_template_type'));
+               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_self_connect_template_type'));
 
                // Load the special template
                $this->loadTemplate($template);
@@ -263,7 +263,7 @@ class XmlSelfConnectTemplateEngine extends BaseTemplateEngine implements Compile
                // Is the template dependency set?
                if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
                        // Get a temporay template instance
-                       $templateInstance = ObjectFactory::createObjectByConfiguredName('self_connect_template_class', array($this->getApplicationInstance()));
+                       $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($this->getApplicationInstance()));
 
                        // Then load it
                        $templateInstance->loadSelfConnectTemplate($templateDependency);
index a76a8827e66a26a64064406643b06d8407f470d2..438565cd481866c733aeac83dda70b84df11fe34 100644 (file)
@@ -68,7 +68,7 @@ class XmlObjectRegistryTemplateEngine extends BaseTemplateEngine implements Comp
                parent::__construct(__CLASS__);
 
                // Init object type registry instance
-               $this->objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('object_type_registry_class');
+               $this->objectRegistryInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_registry_class');
        }
 
        /**
@@ -110,13 +110,13 @@ class XmlObjectRegistryTemplateEngine extends BaseTemplateEngine implements Comp
 
                // Set template extensions
                $templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
-               $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('object_registry_template_extension'));
+               $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('node_object_registry_template_extension'));
 
                // Absolute output path for compiled templates
                $templateInstance->setCompileOutputPath($templateInstance->getConfigInstance()->getConfigEntry('base_path') . $templateInstance->getConfigInstance()->getConfigEntry('compile_output_path'));
 
                // Init a variable stacker
-               $stackerInstance = ObjectFactory::createObjectByConfiguredName('object_registry_stacker_class');
+               $stackerInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_stacker_class');
 
                // Set it
                $templateInstance->setStackerInstance($stackerInstance);
@@ -134,7 +134,7 @@ class XmlObjectRegistryTemplateEngine extends BaseTemplateEngine implements Comp
         */
        public function loadObjectRegistryTemplate ($template) {
                // Set template type
-               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('object_registry_template_type'));
+               $this->setTemplateType($this->getConfigInstance()->getConfigEntry('node_object_registry_template_type'));
 
                // Load the special template
                $this->loadTemplate($template);
@@ -282,7 +282,7 @@ class XmlObjectRegistryTemplateEngine extends BaseTemplateEngine implements Comp
                // Is the template dependency set?
                if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
                        // Get a temporay template instance
-                       $templateInstance = ObjectFactory::createObjectByConfiguredName('object_registry_template_class', array($this->getApplicationInstance()));
+                       $templateInstance = ObjectFactory::createObjectByConfiguredName('node_object_registry_template_class', array($this->getApplicationInstance()));
 
                        // Then load it
                        $templateInstance->loadObjectRegistryTemplate($templateDependency);