]> git.mxchange.org Git - hub.git/commitdiff
LocalClientQueue added (unfinished)
authorRoland Häder <roland@mxchange.org>
Mon, 13 Jul 2009 20:32:15 +0000 (20:32 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 13 Jul 2009 20:32:15 +0000 (20:32 +0000)
.gitattributes
application/hub/main/queues/.htaccess [new file with mode: 0644]
application/hub/main/queues/class_ [new file with mode: 0644]
application/hub/main/queues/class_BaseQueue.php [new file with mode: 0644]
application/hub/main/queues/client/.htaccess [new file with mode: 0644]
application/hub/main/queues/client/class_LocalClientQueue.php [new file with mode: 0644]

index 047be44c1d4fd3791e8e91ace50632ec2ddba151..024efc0db350f73ade87b8b44f9a18268e6ba577 100644 (file)
@@ -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 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/main/queues/class_ b/application/hub/main/queues/class_
new file mode 100644 (file)
index 0000000..9a39e85
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/**
+ * 
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+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 (file)
index 0000000..1a34610
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/**
+ * A general queue class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+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 (file)
index 0000000..3a42882
--- /dev/null
@@ -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 (file)
index 0000000..76f9d1c
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/**
+ * A local client queue class which is used by a LocalQueueConnector instance
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+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;
+       }
+}
+
+//
+?>