]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/boot/class_HubBootNode.php
More debug lines added, bootstrap method stubs added
[hub.git] / application / hub / main / nodes / boot / class_HubBootNode.php
index 0be26c3d3693ec5c82a760b6dd2453b99ed45909..b984b5ce8eee78c19ed0899d7f311b5e697605fd 100644 (file)
@@ -58,12 +58,15 @@ class HubBootNode extends BaseHubNode implements NodeHelper {
         * @todo        add some more special bootstrap things for this boot node
         */
        public function doBootstrapping () {
-               // Call generic (parent) bootstrapping method
+               // Output message
+               $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
+
+               // Call generic (parent) bootstrapping method first
                parent::doGenericBootstrapping();
 
                // Now check if the IP address matches one of the bootstrap nodes
                if ($this->ifAddressMatchesBootstrappingNodes($_SERVER['REMOTE_ADDR'])) {
-                       // Get our port
+                       // Get our port from configuration
                        $ourPort = $this->getConfigInstance()->readConfig('node_listen_port');
 
                        // Is the port the same?
@@ -83,9 +86,24 @@ class HubBootNode extends BaseHubNode implements NodeHelper {
                } // END - if
 
                // This might not be all...
-               $this->partialStub("Please implement more bootsrapping steps.");
+               $this->partialStub('Please implement more bootsrapping steps.');
+
+               // Output message
+               $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
+       }
+
+       /**
+        * Initializes hub-specific queues
+        *
+        * @return      void
+        * @todo        Unfinished method
+        */
+       public function initQueues () {
+               // Call generic queues every hub may have, like the core queue
+               parent::initGenericQueues();
+               $this->partialStub('Please add some more hub-specific queues.');
        }
 }
 
-// [EOF]
+//
 ?>