* @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?
} // 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]
+//
?>