* @version 0.0.0 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @todo We need to find a better name for this interface * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ interface NodeHelper extends FrameworkInterface { /** * Method to "bootstrap" the node. This step does also apply provided * command-line arguments stored in the request instance. You should now * get it from calling $this->getRequestInstance(). * * @return void */ function doBootstrapping (); /** * Initializes hub-specific queues * * @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 * * @param $requestInstance A Requestable class * @param $responseInstance A Responseable class * @return void */ function activateHub (Requestable $requestInstance, Responseable $responseInstance); /** * Generates a session id which will be sent to the other hubs and clients * * @return void */ function bootstrapGenerateSessionId (); /** * Initializes the listener pool (class) * * @return void */ function initializeListenerPool (); /** * Restores a previously stored node list from database * * @return void */ function bootstrapRestoreNodeList (); } // ?>