Added missing method doShutdown().
authorRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 00:31:47 +0000 (02:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 00:31:47 +0000 (02:31 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
53 files changed:
application/hub/main/listener/class_BaseListener.php
application/hub/main/tasks/apt-proxy/class_
application/hub/main/tasks/apt-proxy/class_AptProxyListenerTask.php
application/hub/main/tasks/chat/class_
application/hub/main/tasks/chat/class_ChatTelnetListenerTask.php
application/hub/main/tasks/crawler/class_Crawler
application/hub/main/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php
application/hub/main/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php
application/hub/main/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php
application/hub/main/tasks/crawler/ping/class_CrawlerPingTask.php
application/hub/main/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php
application/hub/main/tasks/crawler/scanner/class_Crawler
application/hub/main/tasks/crawler/scanner/class_CrawlerUploadedListScannerTask.php [deleted file]
application/hub/main/tasks/crawler/scanner/uploaded_list/.htaccess [new file with mode: 0644]
application/hub/main/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php [new file with mode: 0644]
application/hub/main/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php
application/hub/main/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php
application/hub/main/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php
application/hub/main/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php
application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSource
application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceFoundRssTask.php
application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceLocalStartTask.php
application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceRssStartTask.php
application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php
application/hub/main/tasks/cruncher/class_ [deleted file]
application/hub/main/tasks/cruncher/class_Cruncher [new file with mode: 0644]
application/hub/main/tasks/cruncher/class_CruncherKeyProducerTask.php
application/hub/main/tasks/cruncher/class_CruncherTestUnitProducerTask.php
application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php
application/hub/main/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php
application/hub/main/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php
application/hub/main/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php
application/hub/main/tasks/miner/class_Miner
application/hub/main/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php
application/hub/main/tasks/network/class_NetworkPackage [new file with mode: 0644]
application/hub/main/tasks/network/class_NetworkPackageReaderTask.php
application/hub/main/tasks/network/class_NetworkPackageWriterTask.php
application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php
application/hub/main/tasks/node/chunks/class_NodeChunkAssemblerTask.php
application/hub/main/tasks/node/class_Node
application/hub/main/tasks/node/decoder/class_NodePackageDecoderTask.php
application/hub/main/tasks/node/dht/class_NodeDht [new file with mode: 0644]
application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php
application/hub/main/tasks/node/dht/class_NodeDhtInitializationTask.php
application/hub/main/tasks/node/dht/class_NodeDhtLateBootstrapTask.php
application/hub/main/tasks/node/dht/class_NodeDhtPublicationCheckTask.php
application/hub/main/tasks/node/dht/class_NodeDhtPublicationTask.php
application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php
application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php
application/hub/main/tasks/node/ping/class_NodePingTask.php
application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php
application/hub/main/tasks/node/tags/class_NodePackageTagsInitTask.php
application/hub/main/tasks/node/update/class_NodeUpdateCheckTask.php

index 037f62d8009a21c52e12a40705064a30035a5e19..5a5721353c7c11b98aebd638cfd138119468715b 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -21,7 +21,7 @@
  * 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 BaseListener extends BaseHubSystem implements Visitable {
+class BaseListener extends BaseFrameworkSystem implements Visitable {
        // Exception code constants
        const EXCEPTION_INVALID_SOCKET                   = 0xa00;
        const EXCEPTION_SOCKET_ALREADY_REGISTERED        = 0xa01;
index 19f7134cae7c76702e569cf8b2a66a87aeac86d6..51bc2a8534fcbb98c3871a3dd02dc50a20c0c8c4 100644 (file)
@@ -66,6 +66,16 @@ class AptProxy???Task extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index c752ab7a138a454c1ca2439ae3645b8679462cb0..8b9b3f5ddd0de51a8778d61c1c3b92fb4b23e136 100644 (file)
@@ -65,6 +65,16 @@ class AptProxyListenerTask extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 42b08f488119976c3d37e01817af157ce1a23705..dec772a4918e596520ca794ab0a19a9e82b6ff69 100644 (file)
@@ -66,6 +66,16 @@ class Chat???Task extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 708d57c993c72ea8e2d9ea7fb49f4e7bd63262b7..81e19043e108220392911837173add5b4fe4f94f 100644 (file)
@@ -65,6 +65,16 @@ class ChatTelnetListenerTask extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 37d2d040f759feb9851007666b52fa9f2c6814e3..f4d0f010b4bff1dbb9da0616d0986edcef062fc4 100644 (file)
@@ -66,6 +66,16 @@ class Crawler???Task extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 9b1d4ff8bf053d271aa3325d11861170c2c41218..3befcd344675d243eaaed4da5b409a02d9867f5b 100644 (file)
@@ -75,6 +75,16 @@ class CrawlerNodeCommunicatorTask extends BaseTask implements Taskable, Visitabl
                // We can now invoke that state instance and pass our communicator instance for generating some test units
                $stateInstance->executeState($communicatorInstance);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 32b245da0ada4a4adfa69cfa71383a40d119c154..2091ecc4ee28f00baf37976b4f96197134eb7803 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerDocumentParserTask extends BaseTask implements Taskable, Visitable
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 6cd30017852a9704b20076c828a3be7ecc2b1009..976835cafb8ba78b4a7956ce72a909bf29f23bff 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerMimeSnifferTask extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index ee2154c99e76a2016aaa643b60bcf898cf4b7dd5..879bb94c60a6540f50c98c895170743a0d2e257b 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerPingTask extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index b36c9d770d229b27d5c5a6495430a2cf5957ba87..73c5830d62ecff32bb86e1f43c7d12f8af2ed41c 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerRemoteJobPublisherTask extends BaseTask implements Taskable, Visita
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 359c41d4577bb19db071a9d8af8d679e3694cf1b..4418af42f618d241dfe9ab4242d2b06fa3ad67c0 100644 (file)
@@ -66,6 +66,16 @@ class Crawler???ScannerTask extends BaseTask implements Taskable, Visitable {
                // Call factory for a scanner instance and execute it
                ScannerFactory::createScannerInstance($this)->execute();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
diff --git a/application/hub/main/tasks/crawler/scanner/class_CrawlerUploadedListScannerTask.php b/application/hub/main/tasks/crawler/scanner/class_CrawlerUploadedListScannerTask.php
deleted file mode 100644 (file)
index cdb3c0d..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * A UploadedList scanner task for crawlers
- *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0.0
- * @copyright  Copyright (c) 2014 Crawler 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 CrawlerUploadedListScannerTask extends BaseTask implements Taskable, Visitable {
-       /**
-        * Protected constructor
-        *
-        * @return      void
-        */
-       protected function __construct () {
-               // Call parent constructor
-               parent::__construct(__CLASS__);
-       }
-
-       /**
-        * Creates an instance of this class
-        *
-        * @return      $taskInstance   An instance of a Visitable class
-        */
-       public final static function createCrawlerUploadedListScannerTask () {
-               // Get new instance
-               $taskInstance = new CrawlerUploadedListScannerTask();
-
-               // Return the prepared instance
-               return $taskInstance;
-       }
-
-       /**
-        * Accepts the visitor to process the visitor
-        *
-        * @param       $visitorInstance        An instance of a Visitor class
-        * @return      void
-        * @todo        Maybe visit some sub-objects
-        */
-       public function accept (Visitor $visitorInstance) {
-               // Visit this task
-               $visitorInstance->visitTask($this);
-       }
-
-       /**
-        * Executes the task
-        *
-        * @return      void
-        */
-       public function executeTask () {
-               // Call factory for a scanner instance and execute it
-               ScannerObjectFactory::createScannerInstance($this)->execute();
-       }
-}
-
-// [EOF]
-?>
diff --git a/application/hub/main/tasks/crawler/scanner/uploaded_list/.htaccess b/application/hub/main/tasks/crawler/scanner/uploaded_list/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/main/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php b/application/hub/main/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php
new file mode 100644 (file)
index 0000000..14bde83
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+/**
+ * A UploadedList scanner task for crawlers
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2014 Crawler 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 CrawlerUploadedListScannerTask extends BaseTask implements Taskable, Visitable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this class
+        *
+        * @return      $taskInstance   An instance of a Visitable class
+        */
+       public final static function createCrawlerUploadedListScannerTask () {
+               // Get new instance
+               $taskInstance = new CrawlerUploadedListScannerTask();
+
+               // Return the prepared instance
+               return $taskInstance;
+       }
+
+       /**
+        * Accepts the visitor to process the visitor
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        * @todo        Maybe visit some sub-objects
+        */
+       public function accept (Visitor $visitorInstance) {
+               // Visit this task
+               $visitorInstance->visitTask($this);
+       }
+
+       /**
+        * Executes the task
+        *
+        * @return      void
+        */
+       public function executeTask () {
+               // Call factory for a scanner instance and execute it
+               ScannerObjectFactory::createScannerInstance($this)->execute();
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
+}
+
+// [EOF]
+?>
index 8b2f98a642998b632cab50a48550fe33e5a19b46..e884207b9025d6a24f141cd5f72b5f3eac843878 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerSnippetExtractorTask extends BaseTask implements Taskable, Visitabl
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 20e153c7ce83cc3095783cc0140c52c34b0ae8d4..70215e802155bf9659eea77f173ff60cdb0cce85 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerStructureAnalyzerTask extends BaseTask implements Taskable, Visitab
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 3b7e3c18eda2be5220e878cca37fa10fe6adee7e..df4828a069ed47c684c1dd6b682cd30247a33ba3 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerLocalUrlCrawlerTask extends BaseTask implements Taskable, Visitable
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 465f1a3053b194a8e5dddc59408d12993f6584bc..6eebf10453729e266c84f4b11d49702f4138b0ea 100644 (file)
@@ -66,6 +66,16 @@ class CrawlerRemoteUrlCrawlerTask extends BaseTask implements Taskable, Visitabl
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 284cf5d322486dfdeaa42b1c13e143f0e23d7051..7134efc27dbe0c387b6cbb2c8ebf97a339a8b8a2 100644 (file)
@@ -78,6 +78,16 @@ class CrawlerUrlSource???Task extends BaseUrlSourceTask implements Taskable, Vis
                // Get the URL source instance and fill the stack with crawl entries
                $sourceInstance->fillUrlStack();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 823ba33366cb5b217c842896aee0f33b87cc9cc4..6059c56f5bf7859dbe674c2b2c906a4127668498 100644 (file)
@@ -78,6 +78,16 @@ class CrawlerUrlSourceFoundRssTask extends BaseUrlSourceTask implements Taskable
                // Get the URL source instance and fill the stack with crawl entries
                $sourceInstance->fillUrlStack();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index eb2839eb93f99c1bfde221e10bd393286c66462b..04131e44d70ade617e0e8e46247ab5891cf37686 100644 (file)
@@ -78,6 +78,16 @@ class CrawlerUrlSourceLocalStartTask extends BaseUrlSourceTask implements Taskab
                // Get the URL source instance and fill the stack with crawl entries
                $sourceInstance->fillUrlStack();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index c414ce2bcede3ee372bf0343195dbaf9e619489a..5626afd80dd6c0ca6e90c839aa7b82ea969439c2 100644 (file)
@@ -78,6 +78,16 @@ class CrawlerUrlSourceRssStartTask extends BaseUrlSourceTask implements Taskable
                // Get the URL source instance and fill the stack with crawl entries
                $sourceInstance->fillUrlStack();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 50875ab1e5890dde5a01454e528c5a4309484742..0b6b89176dee6d293ef9519dc865f70913dbfe3c 100644 (file)
@@ -78,6 +78,16 @@ class CrawlerUrlSourceUploadedListTask extends BaseUrlSourceTask implements Task
                // Get the URL source instance and fill the stack with crawl entries
                $sourceInstance->fillUrlStack();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
diff --git a/application/hub/main/tasks/cruncher/class_ b/application/hub/main/tasks/cruncher/class_
deleted file mode 100644 (file)
index 11bc357..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * A ??? task for crunchers
- *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0.0
- * @copyright  Copyright (c) 2011 - 2012 Cruncher 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 Cruncher???Task extends BaseTask implements Taskable, Visitable {
-       /**
-        * Protected constructor
-        *
-        * @return      void
-        */
-       protected function __construct () {
-               // Call parent constructor
-               parent::__construct(__CLASS__);
-       }
-
-       /**
-        * Creates an instance of this class
-        *
-        * @return      $taskInstance   An instance of a Visitable class
-        */
-       public final static function createCruncher???Task () {
-               // Get new instance
-               $taskInstance = new Cruncher???Task();
-
-               // Return the prepared instance
-               return $taskInstance;
-       }
-
-       /**
-        * Accepts the visitor to process the visitor
-        *
-        * @param       $visitorInstance        An instance of a Visitor class
-        * @return      void
-        * @todo        Maybe visit some sub-objects
-        */
-       public function accept (Visitor $visitorInstance) {
-               // Visit this task
-               $visitorInstance->visitTask($this);
-       }
-
-       /**
-        * Executes the task
-        *
-        * @return      void
-        * @todo        0%
-        */
-       public function executeTask () {
-               $this->partialStub('Unimplemented task.');
-       }
-}
-
-// [EOF]
-?>
diff --git a/application/hub/main/tasks/cruncher/class_Cruncher b/application/hub/main/tasks/cruncher/class_Cruncher
new file mode 100644 (file)
index 0000000..2c9cbf8
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+/**
+ * A ??? task for crunchers
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2011 - 2012 Cruncher 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 Cruncher???Task extends BaseTask implements Taskable, Visitable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this class
+        *
+        * @return      $taskInstance   An instance of a Visitable class
+        */
+       public final static function createCruncher???Task () {
+               // Get new instance
+               $taskInstance = new Cruncher???Task();
+
+               // Return the prepared instance
+               return $taskInstance;
+       }
+
+       /**
+        * Accepts the visitor to process the visitor
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        * @todo        Maybe visit some sub-objects
+        */
+       public function accept (Visitor $visitorInstance) {
+               // Visit this task
+               $visitorInstance->visitTask($this);
+       }
+
+       /**
+        * Executes the task
+        *
+        * @return      void
+        * @todo        0%
+        */
+       public function executeTask () {
+               $this->partialStub('Unimplemented task.');
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
+}
+
+// [EOF]
+?>
index f9100418471f9aa34ab69b9105b90a69a7ae4e09..a194282187720783dd4f80fc86e31369fe1e36d8 100644 (file)
@@ -74,6 +74,16 @@ class CruncherKeyProducerTask extends BaseTask implements Taskable, Visitable {
                // We can now invoke that state instance and pass our producer instance for generating some test units
                $stateInstance->executeState($producerInstance);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index c2f8655b2485d15d565b83723195ab76ca2eec82..dc5aeb72c8f6fd4544d2a15cbad5169480f469bb 100644 (file)
@@ -74,6 +74,16 @@ class CruncherTestUnitProducerTask extends BaseTask implements Taskable, Visitab
                // We can now invoke that state instance and pass our producer instance for generating some test units
                $stateInstance->executeState($producerInstance);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 37f2ead721bd39afff325e0cfae8efc68e884123..87068b0b285d36b835280426677235031ee52fda 100644 (file)
@@ -74,6 +74,16 @@ class CruncherWorkUnitFetcherTask extends BaseTask implements Taskable, Visitabl
                 */
                Registry::getRegistry()->getInstance('cruncher')->doFetchWorkUnits();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 21ed5370f35b66c09e6973f7b9c741f26fe06add..22de1ae89e45e6d9fa5e465f1677b9b346b6516f 100644 (file)
@@ -74,6 +74,16 @@ class MinerBlockFetcherTask extends BaseTask implements Taskable, Visitable {
                 */
                Registry::getRegistry()->getInstance('miner')->doSearchForBlocks();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index e52e2c2e6f38b74bb3afaf4eaab791bc0b25179c..7ca28a3aca6b8dbaf7b1223bb899e2b7d9645078 100644 (file)
@@ -74,6 +74,16 @@ class MinerRealGenesisBlockProducerTask extends BaseTask implements Taskable, Vi
                // We can now invoke that state instance and pass our producer instance for generating some test units
                $stateInstance->executeState($producerInstance);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 8963ae3e2c1b1dafc4a1cb4dcba7a6af6958ca5d..0cdda15dcd0b1467c1cecdf62581e8d28295aab5 100644 (file)
@@ -74,6 +74,16 @@ class MinerTestGenesisBlockProducerTask extends BaseTask implements Taskable, Vi
                // We can now invoke that state instance and pass our producer instance for generating some test units
                $stateInstance->executeState($producerInstance);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 98281cc40b7eea3914fd73983ae95a9cd11083e2..bc946d8a7eae0ac30e2bedb578f9b7307c2a74ff 100644 (file)
@@ -66,6 +66,16 @@ class Miner???Task extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index c6d87ae9eb34d533c93ff85049e66a4e7d5f8cd3..5f87718a2aa17c4ae45e8bda33c787946921ff37 100644 (file)
@@ -75,6 +75,16 @@ class MinerNodeCommunicatorTask extends BaseTask implements Taskable, Visitable
                // We can now invoke that state instance and pass our communicator instance for generating some test units
                $stateInstance->executeState($communicatorInstance);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
diff --git a/application/hub/main/tasks/network/class_NetworkPackage b/application/hub/main/tasks/network/class_NetworkPackage
new file mode 100644 (file)
index 0000000..0f649cc
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+/**
+ * A ??? task for NetworkPackage
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core 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 NetworkPackage???Task extends BaseTask implements Taskable, Visitable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this class
+        *
+        * @return      $taskInstance   An instance of a Visitable class
+        */
+       public final static function createNetworkPackage???Task () {
+               // Get new instance
+               $taskInstance = new NetworkPackage???Task();
+
+               // Return the prepared instance
+               return $taskInstance;
+       }
+
+       /**
+        * Accepts the visitor to process the visitor
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        * @todo        Maybe visit some sub-objects
+        */
+       public function accept (Visitor $visitorInstance) {
+               // Visit this task
+               $visitorInstance->visitTask($this);
+       }
+
+       /**
+        * Executes the task
+        *
+        * @return      void
+        * @todo        0%
+        */
+       public function executeTask () {
+               $this->partialStub('Unimplemented task.');
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
+}
+
+// [EOF]
+?>
index e1ffb5afe60af30c2e87a91ea7bb98a8c6e32ffc..1cbbb8f930d5bb774cd136d226c64f36a5201b08 100644 (file)
@@ -103,6 +103,16 @@ class NetworkPackageReaderTask extends BaseTask implements Taskable, Visitable {
                        $packageInstance->handleAssemblerPendingData();
                } // END - if
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index fabc92819d0f83dcc554757efb1c2e47a6876af1..3f24ec0f6b83893a54b1307c3d2c6481573277ab 100644 (file)
@@ -81,6 +81,16 @@ class NetworkPackageWriterTask extends BaseTask implements Taskable, Visitable {
                        $packageInstance->declareEnqueuedPackage();
                }
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 4ab4c9d7abcfb82e06a32cdc714d1305eca4d8c7..6ca0a0a71e9f5a55332fb3ef3c62142aa9f50c04 100644 (file)
@@ -65,6 +65,16 @@ class NodeAnnouncementTask extends BaseTask implements Taskable, Visitable {
                // Get the node instance and announce us
                NodeObjectFactory::createNodeInstance()->announceToUpperNodes($this);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index e32654f15aed69fc08e92e9a54017c087f9a8436..da9edb417b31013dd7b77cdb14d6f640320a588f 100644 (file)
@@ -100,6 +100,16 @@ class NodeChunkAssemblerTask extends BaseTask implements Taskable, Visitable {
                        $handlerInstance->handledAssembledRawPackageData();
                }
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 8d3dc65caf66d323e8e5819726b0d24b3f04adf5..b73ff490b6cf7db36db9a7200847dec77a191d8b 100644 (file)
@@ -66,6 +66,16 @@ class Node???Task extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 767996e3b9692c009dac2bd7edc1ee356f70fbd2..f12b2205e740ed48be1cf0a037afbf1a5a1a57dd 100644 (file)
@@ -74,6 +74,16 @@ class NodePackageDecoderTask extends BaseTask implements Taskable, Visitable {
                        $decoderInstance->handleDecodedPackage();
                }
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
diff --git a/application/hub/main/tasks/node/dht/class_NodeDht b/application/hub/main/tasks/node/dht/class_NodeDht
new file mode 100644 (file)
index 0000000..74640b5
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+/**
+ * A ??? node DHT task
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 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 NodeDht???Task extends BaseTask implements Taskable, Visitable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this class
+        *
+        * @return      $taskInstance   An instance of a Visitable class
+        */
+       public final static function createNodeDht???Task () {
+               // Get new instance
+               $taskInstance = new NodeDht???Task();
+
+               // Return the prepared instance
+               return $taskInstance;
+       }
+
+       /**
+        * Accepts the visitor to process the visitor
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        * @todo        Maybe visit some sub-objects
+        */
+       public function accept (Visitor $visitorInstance) {
+               // Visit this task
+               $visitorInstance->visitTask($this);
+       }
+
+       /**
+        * Executes the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function executeTask () {
+               $this->partialStub('Unimplemented task.');
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
+}
+
+// [EOF]
+?>
index 2fba92b6ae01d0f43d18ad7376962d21d10931ea..a794cafa70be0d589a05661db287e69b64ac3fc0 100644 (file)
@@ -71,6 +71,16 @@ class NodeDhtBootstrapTask extends BaseTask implements Taskable, Visitable {
                // Let the DHT class do the work for us
                $this->getDhtInstance()->bootstrapDht();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 09463e596c1b7c122bd5517cbcef00db65cb1a61..6485392f7e58eb7ae8939cd30907320bfd72ed12 100644 (file)
@@ -71,6 +71,16 @@ class NodeDhtInitializationTask extends BaseTask implements Taskable, Visitable
                // Intiailize the DHT
                $this->getDhtInstance()->initDht();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 2d9cdd38e68346539b121118fd68fce3aaeeb508..367a3d8137e6eb1d57beb03010d3295d9a6524de 100644 (file)
@@ -71,6 +71,16 @@ class NodeDhtLateBootstrapTask extends BaseTask implements Taskable, Visitable {
                // Let the DHT class do the work for us
                $this->getDhtInstance()->bootstrapDht();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 833417340a80b3267666d6a67c02fca255eb3bb7..48da0743ccdca13061877cbae052560be7ec1d48 100644 (file)
@@ -78,6 +78,16 @@ class NodeDhtPublicationCheckTask extends BaseTask implements Taskable, Visitabl
                        $dhtInstance->initEntryPublication();
                } // END - if
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 4f6acd3af47c760f194b3e6b18927bccfa1d210f..813e4e2adbcd93acd08169b6813f4b5ead379021 100644 (file)
@@ -78,6 +78,16 @@ class NodeDhtPublicationTask extends BaseTask implements Taskable, Visitable {
                        $dhtInstance->publishEntry();
                } // END - if
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 45bcc3bfd49aa89bdc8f2ad84995939086e7933b..503f0474d5d3c9b4eb7ceed8716ac1d906021917 100644 (file)
@@ -78,6 +78,16 @@ class NodeDhtQueryTask extends BaseTask implements Taskable, Visitable {
                        $dhtInstance->insertSingleNodeData();
                } // END - if
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 1f75dcdf0b6858ee258ec0f4197280051d96e500..6bf9901ebc9aa87a1722dd7f7423dc874f66d2a0 100644 (file)
@@ -70,6 +70,17 @@ class NodeSocketListenerTask extends BaseTask implements Taskable, Visitable {
         * @todo        0% done
         */
        public function executeTask () {
+               $this->partialStub('Unimplemented task.');
+       }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
        }
 }
 
index 5114419728c5a1c857afbb027a36195c6263ffd4..4457e98d1bb5e28300e9510d0b93501d0f5b53f2 100644 (file)
@@ -76,6 +76,16 @@ class NodePingTask extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 857e7b8e1e425761512e2fe1b7afc22c3b9f4187..8a7d99fb1a66ba5dba28b3436bd1de6a517a2370 100644 (file)
@@ -65,6 +65,16 @@ class NodeSelfConnectTask extends BaseTask implements Taskable, Visitable {
                // Get the node instance and try it
                NodeObjectFactory::createNodeInstance()->doSelfConnection($this);
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index 992a463a9155ab0a398a8aa60793758f9b6a54ab..e183bedd3a90d613813a06311232db11de6c59b6 100644 (file)
@@ -66,6 +66,16 @@ class NodePackageTagsInitTask extends BaseTask implements Taskable, Visitable {
                // Get a factory instance and do no more as this loads the object (tags) registry
                $tagsInstance = PackageTagsFactory::createPackageTagsInstance();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]
index b7ec9bbecc4b075d846a8f4d4e2eb9ba2d6db47e..49eeef88f7a8b1849634f7047336fbdcba0d1d99 100644 (file)
@@ -65,6 +65,16 @@ class NodeUpdateCheckTask extends BaseTask implements Taskable, Visitable {
        public function executeTask () {
                $this->partialStub('Unimplemented task.');
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]