]> git.mxchange.org Git - hub.git/commitdiff
bootstrapAcquireHubId() must be public, interface extended with methods from BaseHubN...
authorRoland Häder <roland@mxchange.org>
Thu, 23 Jul 2009 21:46:34 +0000 (21:46 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 23 Jul 2009 21:46:34 +0000 (21:46 +0000)
application/hub/interfaces/nodes/class_NodeHelper.php
application/hub/main/nodes/class_BaseHubNode.php

index ac4705d17ab08a4975c8250cbaff071f0b16c471..00d8c3c701602b29c8f0297ede652a88e7c27edf 100644 (file)
@@ -38,6 +38,31 @@ interface NodeHelper extends FrameworkInterface {
         * @return      void
         */
        function initQueues ();
+
+       /**
+        * Outputs the console teaser. This should only be executed on startup or
+        * full restarts. This method generates some space around the teaser.
+        *
+        * @return      void
+        */
+       function outputConsoleTeaser ();
+
+       /**
+        * Generic method to acquire a hub-id. On first run this generates a new one
+        * based on many pseudo-random data. On any later run, unless the id
+        * got not removed from database, it will be restored from the database.
+        *
+        * @return      void
+        */
+       function bootstrapAcquireHubId ();
+
+       /**
+        * Activates the hub by doing some final preparation and setting
+        * $hubIsActive to true
+        *
+        * @return      void
+        */
+       function activateHub ();
 }
 
 //
index ff1cf1306920000172abd021ff8079824ec15528..ec335ef459aad8a8559aa0e2f2ade559bb84977f 100644 (file)
@@ -172,7 +172,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
         *
         * @return      void
         */
-       private function bootstrapAcquireHubId () {
+       public function bootstrapAcquireHubId () {
                // Get a wrapper instance
                $wrapperInstance = ObjectFactory::createObjectByConfiguredName('node_info_db_wrapper_class');