From: Roland Häder Date: Mon, 13 Jul 2009 20:32:15 +0000 (+0000) Subject: LocalClientQueue added (unfinished) X-Git-Url: https://git.mxchange.org/?p=hub.git;a=commitdiff_plain;h=9ae4c2026c044a81664da3fe75fc1386c60d94c6 LocalClientQueue added (unfinished) --- diff --git a/.gitattributes b/.gitattributes index 047be44c1..024efc0db 100644 --- a/.gitattributes +++ b/.gitattributes @@ -85,6 +85,11 @@ application/hub/main/pools/client/.htaccess -text application/hub/main/pools/client/class_DefaultClientPool.php -text application/hub/main/pools/listener/.htaccess -text application/hub/main/pools/listener/class_DefaultListenerPool.php -text +application/hub/main/queues/.htaccess -text +application/hub/main/queues/class_ -text +application/hub/main/queues/class_BaseQueue.php -text +application/hub/main/queues/client/.htaccess -text +application/hub/main/queues/client/class_LocalClientQueue.php -text application/hub/main/states/.htaccess -text application/hub/main/states/class_ -text application/hub/main/states/class_BaseState.php -text diff --git a/application/hub/main/queues/.htaccess b/application/hub/main/queues/.htaccess new file mode 100644 index 000000000..3a4288278 --- /dev/null +++ b/application/hub/main/queues/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/application/hub/main/queues/class_ b/application/hub/main/queues/class_ new file mode 100644 index 000000000..9a39e85a2 --- /dev/null +++ b/application/hub/main/queues/class_ @@ -0,0 +1,50 @@ + + * @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 + * + * 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 . + */ +class ???Queue extends BaseQueue implements Queueable { + /** + * Protected constructor + * + * @return void + */ + protected function __construct () { + // Call parent constructor + parent::__construct(__CLASS__); + } + + /** + * Creates an instance of this class + * + * @return $poolInstance An instance a Queueable class + */ + public final static function create???Queue () { + // Get new instance + $poolInstance = new ???Queue(); + + // Return the prepared instance + return $poolInstance; + } +} + +// +?> diff --git a/application/hub/main/queues/class_BaseQueue.php b/application/hub/main/queues/class_BaseQueue.php new file mode 100644 index 000000000..1a34610f7 --- /dev/null +++ b/application/hub/main/queues/class_BaseQueue.php @@ -0,0 +1,38 @@ + + * @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 + * + * 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 . + */ +class BaseQueue extends BaseHubSystem { + /** + * Protected constructor + * + * @param $className Name of the class + * @return void + */ + protected function __construct ($className) { + // Call parent constructor + parent::__construct($className); + } +} + +// [EOF] +?> diff --git a/application/hub/main/queues/client/.htaccess b/application/hub/main/queues/client/.htaccess new file mode 100644 index 000000000..3a4288278 --- /dev/null +++ b/application/hub/main/queues/client/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/application/hub/main/queues/client/class_LocalClientQueue.php b/application/hub/main/queues/client/class_LocalClientQueue.php new file mode 100644 index 000000000..76f9d1ce8 --- /dev/null +++ b/application/hub/main/queues/client/class_LocalClientQueue.php @@ -0,0 +1,50 @@ + + * @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 + * + * 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 . + */ +class LocalClientQueue extends BaseQueue implements Queueable { + /** + * Protected constructor + * + * @return void + */ + protected function __construct () { + // Call parent constructor + parent::__construct(__CLASS__); + } + + /** + * Creates an instance of this class + * + * @return $poolInstance An instance a Queueable class + */ + public final static function createLocalClientQueue () { + // Get new instance + $poolInstance = new LocalClientQueue(); + + // Return the prepared instance + return $poolInstance; + } +} + +// +?>