]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/class_
Hub-Id creation basicly finished
[hub.git] / application / hub / main / nodes / class_
index 0951d0188a22b342679948173cddc89a0e9044ab..90a9484502f69ae5150ed5b9f2c89a808d686f2e 100644 (file)
@@ -44,6 +44,30 @@ class Hub???Node extends BaseHubNode implements NodeHelper {
                // Return the instance
                return $nodeInstance;
        }
+
+       /**
+        * Method to "bootstrap" the node. This step does also apply provided
+        * command-line arguments stored in the request instance. The regular node
+        * should communicate with the bootstrap-nodes at this point.
+        *
+        * @param       $requestInstance        An instance of a Requestable class
+        * @return      void
+        */
+       public function doBootstrapping (Requestable $requestInstance) {
+               $this->partialStub();
+       }
+
+       /**
+        * Method to aquire 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.
+        *
+        * @param       $requestInstance        An instance of a Requestable class
+        * @return      void
+        */
+       public function aquireHubId (Requestable $requestInstance) {
+               $this->partialStub();
+       }
 }
 
 // [EOF]