+++ /dev/null
-<?php
-/**
- * An interface for connector classes
- *
- * @author Roland Haeder <webmaster@shipsimu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.shipsimu.org
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-interface Connectable extends FrameworkInterface {
- /**
- * Handles all pending requests/what ever. This method should be called by
- * the ActiveTaskVisitor class and should use an iterator on all pending
- * requests/queries/queues.
- *
- * @return void
- */
- function handlePending ();
-}
-
-// [EOF]
-?>
*/
private $bootIpPort = '';
- /**
- * Query connector instance
- */
- private $queryConnectorInstance = NULL;
-
- /**
- * Queue connector instance
- */
- private $queueConnectorInstance = NULL;
-
/**
* Whether this node is anncounced (keep on FALSE!)
* @deprecated
self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: Created new private key with hash: ' . $this->getPrivateKeyHash() . '');
}
- /**
- * Setter for query instance
- *
- * @param $connectorInstance Our new query instance
- * @return void
- */
- private final function setQueryConnectorInstance (Connectable $connectorInstance) {
- $this->queryConnectorInstance = $connectorInstance;
- }
-
- /**
- * Getter for query instance
- *
- * @return $connectorInstance Our new query instance
- */
- public final function getQueryConnectorInstance () {
- return $this->queryConnectorInstance;
- }
-
- /**
- * Setter for queue instance
- *
- * @param $connectorInstance Our new queue instance
- * @return void
- */
- private final function setQueueConnectorInstance (Connectable $connectorInstance) {
- $this->queueConnectorInstance = $connectorInstance;
- }
-
- /**
- * Getter for queue instance
- *
- * @return $connectorInstance Our new queue instance
- */
- public final function getQueueConnectorInstance () {
- return $this->queueConnectorInstance;
- }
-
/**
* Getter for boot IP/port combination
*