From 8c3a2757d0c587cfdcc36c913ffb70962f078cfa Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 29 Jun 2015 02:31:47 +0200 Subject: [PATCH] Added missing method doShutdown(). Signed-off-by: Roland Haeder --- .../hub/main/listener/class_BaseListener.php | 4 +- application/hub/main/tasks/apt-proxy/class_ | 10 +++ .../apt-proxy/class_AptProxyListenerTask.php | 10 +++ application/hub/main/tasks/chat/class_ | 10 +++ .../chat/class_ChatTelnetListenerTask.php | 10 +++ .../hub/main/tasks/crawler/class_Crawler | 10 +++ .../class_CrawlerNodeCommunicatorTask.php | 10 +++ .../class_CrawlerDocumentParserTask.php | 10 +++ .../class_CrawlerMimeSnifferTask.php | 10 +++ .../crawler/ping/class_CrawlerPingTask.php | 10 +++ .../class_CrawlerRemoteJobPublisherTask.php | 10 +++ .../main/tasks/crawler/scanner/class_Crawler | 10 +++ .../crawler/scanner/uploaded_list/.htaccess | 1 + .../class_CrawlerUploadedListScannerTask.php | 10 +++ .../class_CrawlerSnippetExtractorTask.php | 10 +++ .../class_CrawlerStructureAnalyzerTask.php | 10 +++ .../class_CrawlerLocalUrlCrawlerTask.php | 10 +++ .../class_CrawlerRemoteUrlCrawlerTask.php | 10 +++ .../crawler/url_source/class_CrawlerUrlSource | 10 +++ .../class_CrawlerUrlSourceFoundRssTask.php | 10 +++ .../class_CrawlerUrlSourceLocalStartTask.php | 10 +++ .../class_CrawlerUrlSourceRssStartTask.php | 10 +++ ...class_CrawlerUrlSourceUploadedListTask.php | 10 +++ .../tasks/cruncher/{class_ => class_Cruncher} | 10 +++ .../class_CruncherKeyProducerTask.php | 10 +++ .../class_CruncherTestUnitProducerTask.php | 10 +++ .../class_CruncherWorkUnitFetcherTask.php | 10 +++ .../class_MinerBlockFetcherTask.php | 10 +++ ...lass_MinerRealGenesisBlockProducerTask.php | 10 +++ ...lass_MinerTestGenesisBlockProducerTask.php | 10 +++ application/hub/main/tasks/miner/class_Miner | 10 +++ .../class_MinerNodeCommunicatorTask.php | 10 +++ .../main/tasks/network/class_NetworkPackage | 82 +++++++++++++++++++ .../class_NetworkPackageReaderTask.php | 10 +++ .../class_NetworkPackageWriterTask.php | 10 +++ .../class_NodeAnnouncementTask.php | 10 +++ .../chunks/class_NodeChunkAssemblerTask.php | 10 +++ application/hub/main/tasks/node/class_Node | 10 +++ .../decoder/class_NodePackageDecoderTask.php | 10 +++ .../hub/main/tasks/node/dht/class_NodeDht | 82 +++++++++++++++++++ .../node/dht/class_NodeDhtBootstrapTask.php | 10 +++ .../dht/class_NodeDhtInitializationTask.php | 10 +++ .../dht/class_NodeDhtLateBootstrapTask.php | 10 +++ .../dht/class_NodeDhtPublicationCheckTask.php | 10 +++ .../node/dht/class_NodeDhtPublicationTask.php | 10 +++ .../tasks/node/dht/class_NodeDhtQueryTask.php | 10 +++ .../listener/class_NodeSocketListenerTask.php | 11 +++ .../tasks/node/ping/class_NodePingTask.php | 10 +++ .../class_NodeSelfConnectTask.php | 10 +++ .../tags/class_NodePackageTagsInitTask.php | 10 +++ .../node/update/class_NodeUpdateCheckTask.php | 10 +++ 51 files changed, 638 insertions(+), 2 deletions(-) create mode 100644 application/hub/main/tasks/crawler/scanner/uploaded_list/.htaccess rename application/hub/main/tasks/crawler/scanner/{ => uploaded_list}/class_CrawlerUploadedListScannerTask.php (89%) rename application/hub/main/tasks/cruncher/{class_ => class_Cruncher} (89%) create mode 100644 application/hub/main/tasks/network/class_NetworkPackage create mode 100644 application/hub/main/tasks/node/dht/class_NodeDht diff --git a/application/hub/main/listener/class_BaseListener.php b/application/hub/main/listener/class_BaseListener.php index 037f62d80..5a5721353 100644 --- a/application/hub/main/listener/class_BaseListener.php +++ b/application/hub/main/listener/class_BaseListener.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @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 . */ -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; diff --git a/application/hub/main/tasks/apt-proxy/class_ b/application/hub/main/tasks/apt-proxy/class_ index 19f7134ca..51bc2a853 100644 --- a/application/hub/main/tasks/apt-proxy/class_ +++ b/application/hub/main/tasks/apt-proxy/class_ @@ -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] diff --git a/application/hub/main/tasks/apt-proxy/class_AptProxyListenerTask.php b/application/hub/main/tasks/apt-proxy/class_AptProxyListenerTask.php index c752ab7a1..8b9b3f5dd 100644 --- a/application/hub/main/tasks/apt-proxy/class_AptProxyListenerTask.php +++ b/application/hub/main/tasks/apt-proxy/class_AptProxyListenerTask.php @@ -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] diff --git a/application/hub/main/tasks/chat/class_ b/application/hub/main/tasks/chat/class_ index 42b08f488..dec772a49 100644 --- a/application/hub/main/tasks/chat/class_ +++ b/application/hub/main/tasks/chat/class_ @@ -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] diff --git a/application/hub/main/tasks/chat/class_ChatTelnetListenerTask.php b/application/hub/main/tasks/chat/class_ChatTelnetListenerTask.php index 708d57c99..81e19043e 100644 --- a/application/hub/main/tasks/chat/class_ChatTelnetListenerTask.php +++ b/application/hub/main/tasks/chat/class_ChatTelnetListenerTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/class_Crawler b/application/hub/main/tasks/crawler/class_Crawler index 37d2d040f..f4d0f010b 100644 --- a/application/hub/main/tasks/crawler/class_Crawler +++ b/application/hub/main/tasks/crawler/class_Crawler @@ -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] diff --git a/application/hub/main/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php b/application/hub/main/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php index 9b1d4ff8b..3befcd344 100644 --- a/application/hub/main/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php +++ b/application/hub/main/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php b/application/hub/main/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php index 32b245da0..2091ecc4e 100644 --- a/application/hub/main/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php +++ b/application/hub/main/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php b/application/hub/main/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php index 6cd300178..976835caf 100644 --- a/application/hub/main/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php +++ b/application/hub/main/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/ping/class_CrawlerPingTask.php b/application/hub/main/tasks/crawler/ping/class_CrawlerPingTask.php index ee2154c99..879bb94c6 100644 --- a/application/hub/main/tasks/crawler/ping/class_CrawlerPingTask.php +++ b/application/hub/main/tasks/crawler/ping/class_CrawlerPingTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php b/application/hub/main/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php index b36c9d770..73c5830d6 100644 --- a/application/hub/main/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php +++ b/application/hub/main/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/scanner/class_Crawler b/application/hub/main/tasks/crawler/scanner/class_Crawler index 359c41d45..4418af42f 100644 --- a/application/hub/main/tasks/crawler/scanner/class_Crawler +++ b/application/hub/main/tasks/crawler/scanner/class_Crawler @@ -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/uploaded_list/.htaccess b/application/hub/main/tasks/crawler/scanner/uploaded_list/.htaccess new file mode 100644 index 000000000..3a4288278 --- /dev/null +++ b/application/hub/main/tasks/crawler/scanner/uploaded_list/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/application/hub/main/tasks/crawler/scanner/class_CrawlerUploadedListScannerTask.php b/application/hub/main/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php similarity index 89% rename from application/hub/main/tasks/crawler/scanner/class_CrawlerUploadedListScannerTask.php rename to application/hub/main/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php index cdb3c0d00..14bde83b3 100644 --- a/application/hub/main/tasks/crawler/scanner/class_CrawlerUploadedListScannerTask.php +++ b/application/hub/main/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php @@ -66,6 +66,16 @@ class CrawlerUploadedListScannerTask extends BaseTask implements Taskable, Visit // 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] diff --git a/application/hub/main/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php b/application/hub/main/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php index 8b2f98a64..e884207b9 100644 --- a/application/hub/main/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php +++ b/application/hub/main/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php b/application/hub/main/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php index 20e153c7c..70215e802 100644 --- a/application/hub/main/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php +++ b/application/hub/main/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php b/application/hub/main/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php index 3b7e3c18e..df4828a06 100644 --- a/application/hub/main/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php +++ b/application/hub/main/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php b/application/hub/main/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php index 465f1a305..6eebf1045 100644 --- a/application/hub/main/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php +++ b/application/hub/main/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSource b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSource index 284cf5d32..7134efc27 100644 --- a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSource +++ b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSource @@ -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] diff --git a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceFoundRssTask.php b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceFoundRssTask.php index 823ba3336..6059c56f5 100644 --- a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceFoundRssTask.php +++ b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceFoundRssTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceLocalStartTask.php b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceLocalStartTask.php index eb2839eb9..04131e44d 100644 --- a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceLocalStartTask.php +++ b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceLocalStartTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceRssStartTask.php b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceRssStartTask.php index c414ce2bc..5626afd80 100644 --- a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceRssStartTask.php +++ b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceRssStartTask.php @@ -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] diff --git a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php index 50875ab1e..0b6b89176 100644 --- a/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php +++ b/application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php @@ -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_Cruncher similarity index 89% rename from application/hub/main/tasks/cruncher/class_ rename to application/hub/main/tasks/cruncher/class_Cruncher index 11bc3579d..2c9cbf859 100644 --- a/application/hub/main/tasks/cruncher/class_ +++ b/application/hub/main/tasks/cruncher/class_Cruncher @@ -66,6 +66,16 @@ class Cruncher???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] diff --git a/application/hub/main/tasks/cruncher/class_CruncherKeyProducerTask.php b/application/hub/main/tasks/cruncher/class_CruncherKeyProducerTask.php index f91004184..a19428218 100644 --- a/application/hub/main/tasks/cruncher/class_CruncherKeyProducerTask.php +++ b/application/hub/main/tasks/cruncher/class_CruncherKeyProducerTask.php @@ -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] diff --git a/application/hub/main/tasks/cruncher/class_CruncherTestUnitProducerTask.php b/application/hub/main/tasks/cruncher/class_CruncherTestUnitProducerTask.php index c2f8655b2..dc5aeb72c 100644 --- a/application/hub/main/tasks/cruncher/class_CruncherTestUnitProducerTask.php +++ b/application/hub/main/tasks/cruncher/class_CruncherTestUnitProducerTask.php @@ -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] diff --git a/application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php b/application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php index 37f2ead72..87068b0b2 100644 --- a/application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php +++ b/application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php @@ -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] diff --git a/application/hub/main/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php b/application/hub/main/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php index 21ed5370f..22de1ae89 100644 --- a/application/hub/main/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php +++ b/application/hub/main/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php @@ -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] diff --git a/application/hub/main/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php b/application/hub/main/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php index e52e2c2e6..7ca28a3ac 100644 --- a/application/hub/main/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php +++ b/application/hub/main/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php @@ -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] diff --git a/application/hub/main/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php b/application/hub/main/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php index 8963ae3e2..0cdda15dc 100644 --- a/application/hub/main/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php +++ b/application/hub/main/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php @@ -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] diff --git a/application/hub/main/tasks/miner/class_Miner b/application/hub/main/tasks/miner/class_Miner index 98281cc40..bc946d8a7 100644 --- a/application/hub/main/tasks/miner/class_Miner +++ b/application/hub/main/tasks/miner/class_Miner @@ -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] diff --git a/application/hub/main/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php b/application/hub/main/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php index c6d87ae9e..5f87718a2 100644 --- a/application/hub/main/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php +++ b/application/hub/main/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php @@ -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 index 000000000..0f649ccde --- /dev/null +++ b/application/hub/main/tasks/network/class_NetworkPackage @@ -0,0 +1,82 @@ + + * @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 . + */ +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] +?> diff --git a/application/hub/main/tasks/network/class_NetworkPackageReaderTask.php b/application/hub/main/tasks/network/class_NetworkPackageReaderTask.php index e1ffb5afe..1cbbb8f93 100644 --- a/application/hub/main/tasks/network/class_NetworkPackageReaderTask.php +++ b/application/hub/main/tasks/network/class_NetworkPackageReaderTask.php @@ -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] diff --git a/application/hub/main/tasks/network/class_NetworkPackageWriterTask.php b/application/hub/main/tasks/network/class_NetworkPackageWriterTask.php index fabc92819..3f24ec0f6 100644 --- a/application/hub/main/tasks/network/class_NetworkPackageWriterTask.php +++ b/application/hub/main/tasks/network/class_NetworkPackageWriterTask.php @@ -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] diff --git a/application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php b/application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php index 4ab4c9d7a..6ca0a0a71 100644 --- a/application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php +++ b/application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php @@ -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] diff --git a/application/hub/main/tasks/node/chunks/class_NodeChunkAssemblerTask.php b/application/hub/main/tasks/node/chunks/class_NodeChunkAssemblerTask.php index e32654f15..da9edb417 100644 --- a/application/hub/main/tasks/node/chunks/class_NodeChunkAssemblerTask.php +++ b/application/hub/main/tasks/node/chunks/class_NodeChunkAssemblerTask.php @@ -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] diff --git a/application/hub/main/tasks/node/class_Node b/application/hub/main/tasks/node/class_Node index 8d3dc65ca..b73ff490b 100644 --- a/application/hub/main/tasks/node/class_Node +++ b/application/hub/main/tasks/node/class_Node @@ -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] diff --git a/application/hub/main/tasks/node/decoder/class_NodePackageDecoderTask.php b/application/hub/main/tasks/node/decoder/class_NodePackageDecoderTask.php index 767996e3b..f12b2205e 100644 --- a/application/hub/main/tasks/node/decoder/class_NodePackageDecoderTask.php +++ b/application/hub/main/tasks/node/decoder/class_NodePackageDecoderTask.php @@ -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 index 000000000..74640b57d --- /dev/null +++ b/application/hub/main/tasks/node/dht/class_NodeDht @@ -0,0 +1,82 @@ + + * @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 . + */ +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] +?> diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php index 2fba92b6a..a794cafa7 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtBootstrapTask.php @@ -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] diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtInitializationTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtInitializationTask.php index 09463e596..6485392f7 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtInitializationTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtInitializationTask.php @@ -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] diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtLateBootstrapTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtLateBootstrapTask.php index 2d9cdd38e..367a3d813 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtLateBootstrapTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtLateBootstrapTask.php @@ -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] diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtPublicationCheckTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtPublicationCheckTask.php index 833417340..48da0743c 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtPublicationCheckTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtPublicationCheckTask.php @@ -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] diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtPublicationTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtPublicationTask.php index 4f6acd3af..813e4e2ad 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtPublicationTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtPublicationTask.php @@ -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] diff --git a/application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php b/application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php index 45bcc3bfd..503f0474d 100644 --- a/application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php +++ b/application/hub/main/tasks/node/dht/class_NodeDhtQueryTask.php @@ -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] diff --git a/application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php b/application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php index 1f75dcdf0..6bf9901eb 100644 --- a/application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php +++ b/application/hub/main/tasks/node/listener/class_NodeSocketListenerTask.php @@ -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...'); } } diff --git a/application/hub/main/tasks/node/ping/class_NodePingTask.php b/application/hub/main/tasks/node/ping/class_NodePingTask.php index 511441972..4457e98d1 100644 --- a/application/hub/main/tasks/node/ping/class_NodePingTask.php +++ b/application/hub/main/tasks/node/ping/class_NodePingTask.php @@ -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] diff --git a/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php b/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php index 857e7b8e1..8a7d99fb1 100644 --- a/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php +++ b/application/hub/main/tasks/node/self_connect/class_NodeSelfConnectTask.php @@ -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] diff --git a/application/hub/main/tasks/node/tags/class_NodePackageTagsInitTask.php b/application/hub/main/tasks/node/tags/class_NodePackageTagsInitTask.php index 992a463a9..e183bedd3 100644 --- a/application/hub/main/tasks/node/tags/class_NodePackageTagsInitTask.php +++ b/application/hub/main/tasks/node/tags/class_NodePackageTagsInitTask.php @@ -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] diff --git a/application/hub/main/tasks/node/update/class_NodeUpdateCheckTask.php b/application/hub/main/tasks/node/update/class_NodeUpdateCheckTask.php index b7ec9bbec..49eeef88f 100644 --- a/application/hub/main/tasks/node/update/class_NodeUpdateCheckTask.php +++ b/application/hub/main/tasks/node/update/class_NodeUpdateCheckTask.php @@ -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] -- 2.39.5