From: Roland Häder Date: Thu, 23 Jul 2009 21:46:34 +0000 (+0000) Subject: bootstrapAcquireHubId() must be public, interface extended with methods from BaseHubN... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7520444a0a39317cf04659f2cae475b4855f31f;p=hub.git bootstrapAcquireHubId() must be public, interface extended with methods from BaseHubNode class --- diff --git a/application/hub/interfaces/nodes/class_NodeHelper.php b/application/hub/interfaces/nodes/class_NodeHelper.php index ac4705d17..00d8c3c70 100644 --- a/application/hub/interfaces/nodes/class_NodeHelper.php +++ b/application/hub/interfaces/nodes/class_NodeHelper.php @@ -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 (); } // diff --git a/application/hub/main/nodes/class_BaseHubNode.php b/application/hub/main/nodes/class_BaseHubNode.php index ff1cf1306..ec335ef45 100644 --- a/application/hub/main/nodes/class_BaseHubNode.php +++ b/application/hub/main/nodes/class_BaseHubNode.php @@ -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');