X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fnodes%2Fclass_;h=90a9484502f69ae5150ed5b9f2c89a808d686f2e;hb=2ff8af970256bc567ed29680780c4332cab05985;hp=0951d0188a22b342679948173cddc89a0e9044ab;hpb=df5b9f549c59c6772d77d68f01c72bbc90c422f0;p=hub.git diff --git a/application/hub/main/nodes/class_ b/application/hub/main/nodes/class_ index 0951d0188..90a948450 100644 --- a/application/hub/main/nodes/class_ +++ b/application/hub/main/nodes/class_ @@ -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]