* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class HubRegularNode extends BaseHubNode implements NodeHelper {
+class HubRegularNode extends BaseHubNode implements NodeHelper, Registerable {
/**
* Protected constructor
*
// Set the request instance
$nodeInstance->setRequestInstance($requestInstance);
- // --------------------- Hub-id acquirement phase ---------------------
- // Acquire a hub-id. This step generates on first launch a new one and
- // on any later launches it will restore the hub-id from the database.
- // A passed 'nickname=xxx' argument will be used to add some
- // 'personality' to the hub.
- $nodeInstance->acquireHubId();
-
// Return the instance
return $nodeInstance;
}
* command-line arguments stored in the request instance. The regular node
* should communicate with the bootstrap-nodes at this point.
*
- * @param $requestInstance A Requestable instance
* @return void
* @todo Implement this method
*/
public function doBootstrapping () {
- // Call generic (parent) bootstrapping method first
- parent::doGenericBootstrapping();
$this->partialStub('Please implement this method.');
+ }
- // This is the last line: output teaser
- $this->outputConsoleTeaser();
+ /**
+ * 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]
+//
?>