]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 22 May 2017 16:39:19 +0000 (18:39 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:50:07 +0000 (18:50 +0200)
- ListenerVisitor is not generic (Listenable), re-imported it
- this task is also no longer generic
- added missing namespaces
- imported BaseTask
- imported ChunkHandler(Factory), BaseHandler
- imported PackageFragmenter
- changed namespace

Signed-off-by: Roland Häder <roland@mxchange.org>
61 files changed:
application/hub/classes/class_BaseHubSystem.php
application/hub/classes/decoder/package/class_PackageDecoder.php
application/hub/classes/factories/decoder/class_DecoderFactory.php
application/hub/classes/handler/chunks/class_ChunkHandler.php
application/hub/classes/handler/protocol/class_BaseProtocolHandler.php
application/hub/classes/package/assembler/class_PackageAssembler.php
application/hub/classes/package/class_NetworkPackage.php
application/hub/classes/tasks/apt-proxy/class_
application/hub/classes/tasks/apt-proxy/class_AptProxyListenerTask.php
application/hub/classes/tasks/chat/class_
application/hub/classes/tasks/chat/class_ChatTelnetListenerTask.php
application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php
application/hub/classes/tasks/crawler/class_Crawler
application/hub/classes/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php
application/hub/classes/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php
application/hub/classes/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php
application/hub/classes/tasks/crawler/ping/class_CrawlerPingTask.php
application/hub/classes/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php
application/hub/classes/tasks/crawler/scanner/class_Crawler
application/hub/classes/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php
application/hub/classes/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php
application/hub/classes/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php
application/hub/classes/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php
application/hub/classes/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php
application/hub/classes/tasks/cruncher/class_Cruncher
application/hub/classes/tasks/cruncher/class_CruncherKeyProducerTask.php
application/hub/classes/tasks/cruncher/class_CruncherTestUnitProducerTask.php
application/hub/classes/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php
application/hub/classes/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php
application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php
application/hub/classes/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php
application/hub/classes/tasks/miner/class_Miner
application/hub/classes/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php
application/hub/classes/tasks/network/class_NetworkPackage
application/hub/classes/tasks/network/class_NetworkPackageReaderTask.php
application/hub/classes/tasks/network/class_NetworkPackageWriterTask.php
application/hub/classes/tasks/node/announcement/class_NodeAnnouncementTask.php
application/hub/classes/tasks/node/chunks/class_NodeChunkAssemblerTask.php
application/hub/classes/tasks/node/class_Node
application/hub/classes/tasks/node/decoder/class_NodePackageDecoderTask.php
application/hub/classes/tasks/node/dht/class_NodeDht
application/hub/classes/tasks/node/dht/class_NodeDhtBootstrapTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtInitializationTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtLateBootstrapTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtPublicationCheckTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtPublicationTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtQueryTask.php
application/hub/classes/tasks/node/listener/class_NodeSocketListenerTask.php
application/hub/classes/tasks/node/ping/class_NodePingTask.php
application/hub/classes/tasks/node/self_connect/class_NodeSelfConnectTask.php
application/hub/classes/tasks/node/tags/class_NodePackageTagsInitTask.php
application/hub/classes/tasks/node/update/class_NodeUpdateCheckTask.php
application/hub/classes/visitor/pool/monitor/class_RawDataPoolMonitorVisitor.php
application/hub/classes/visitor/tasks/class_ActiveTaskVisitor.php
application/hub/classes/visitor/tasks/class_ShutdownTaskVisitor.php
application/hub/config.php
application/hub/exceptions/package/class_FinalChunkVerificationException.php
application/hub/interfaces/package/fragmenter/class_Fragmentable.php
application/hub/interfaces/visitor/listener/.htaccess [new file with mode: 0644]
application/hub/interfaces/visitor/listener/class_ListenerVisitor.php [new file with mode: 0644]
core

index 338059c1418244b9cdc0402022ed0de5a25006a9..47f4c6f80314aa759b07d5d38c77bd56548584cf 100644 (file)
@@ -9,6 +9,7 @@ use Hub\Information\ShareableInfo;
 use Hub\Listener\BaseListener;
 use Hub\Listener\Listenable;
 use Hub\Network\Deliver\Deliverable;
+use Hub\Network\Package\Fragment\Fragmentable;
 use Hub\Network\Receive\Receivable;
 use Hub\Pool\Poolable;
 
index 5d11619aa8fe5d7486f114a9aeb954e4481aeee2..99cc7db330b22aa9f1f8a459c34a1d1e121b5b2a 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Decoder;
 
 // Import application-specific stuff
+use Hub\Handler\Network\RawData\Chunks\ChunkHandler;
 use Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
index db38098799b35d9efd6ead749be6a4b352262954..ff8236f2d8852c88bff1913eea4c739bec6b6f37 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Factory\Decoder;
 
+// Import application-specific stuff
+use Hub\Handler\Network\RawData\Chunks\ChunkHandler;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Registry\Registry;
index 5993cc7d05c9bee260c51bb164f9ded769d0a50f..f9469078ae34732b5ec5ee51d7a604ad7017aa40 100644 (file)
@@ -1,12 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Chunk;
+namespace Hub\Handler\Network\RawData\Chunks;
 
 // Import application-specific stuff
 use Hub\Factory\Fragmenter\FragmenterFactory;
+use Hub\Network\Package\Fragment\PackageFragmenter;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Handler\BaseHandler;
 use CoreFramework\Registry\Registerable;
 
 /**
index 8e59424f0ee33abec95d8fdef4cd20f6510fe413..17a39d73dbb17ba2193750714f702a1ce5cd47c4 100644 (file)
@@ -7,6 +7,9 @@ use Hub\Handler\Protocol\HandleableProtocol;
 use Hub\Locator\Node\LocateableNode;
 use Hub\Tools\HubTools;
 
+// Import framework stuff
+use CoreFramework\Handler\BaseHandler;
+
 /**
  * A general handler for protocols such as TCP, UDP and others.
  *
index 9c677aee4a038c90c3df1677df9402d4b8277ae2..75f3a4ac594da6cdcd6dc407362c8ec9d79d6651 100644 (file)
@@ -4,8 +4,10 @@ namespace Hub\Network\Package\Assembler;
 
 // Import hub-specific stuff
 use Hub\Container\Socket\StorableSocket;
+use Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
 use Hub\Generic\BaseHubSystem;
 use Hub\Handler\Network\RawData\BaseRawDataHandler;
+use Hub\Network\Package\Fragment\PackageFragmenter;
 use Hub\Network\Package\NetworkPackage;
 use Hub\Network\Receive\Receivable;
 
index c8f7861ba1620e2a238ce08394e7df54ec53570c..5a218e6b393f85bc65b2b5a9cc66e5f8508a94e2 100644 (file)
@@ -15,6 +15,7 @@ use Hub\Helper\HubHelper;
 use Hub\Information\ShareableInfo;
 use Hub\Network\Deliver\Deliverable;
 use Hub\Network\Networkable;
+use Hub\Network\Package\Fragment\PackageFragmenter;
 use Hub\Network\Receive\Receivable;
 use Hub\Tools\HubTools;
 
index 72f5e537d3a48e002d697230cd67342ed1685823..011822d47279740c01c9748bf8874e5fce0bdf4e 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\AptProxy\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index 0d04fb3a80f932aff0de7e8358fa79a5ec04b36e..0b050b803ff2ba7e5494546ff85a79b8bc9f49cc 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\AptProxy\Task\Listener;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 85222be7d257a89aadc6c83d7afc3957f6a636a4..b3a18694279151b720953fa322230f570a2692ce 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\Chat\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index 980943e01b90fadaba307dcf622f71ffb1023319..e415e301dc46f20983838e2ec9aa3763d368d441 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Chat\Task\Listener\Telnet;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index aef7b719aa2652881a60712fef19ed63fdfb0a7a..98c5de6c3b9fc32d40019e9f94b428a91d2dbb5e 100644 (file)
@@ -5,6 +5,9 @@ namespace Hub\Task\Source\Url;
 // Import application-specific stuff
 use Hub\Source\Url\UrlSourceObjectFactory;
 
+// Import framework stuff
+use CoreFramework\Task\BaseTask;
+
 /**
  * A general URL source Task
  *
index 82cf4f8e44a55e3790229fffd7dd3314ef5a442a..92500cd17ba8a966a48308fd84376bbc13c4a79b 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\Crawler\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index 0571b605d3685aa81ea96dfefb0a3fe0b00c367b..12b86c2b4af92b7d3edc0b74fa7a19bca4e02dff 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Crawler\Task\Communicator\Node;
 
 // Import framework stuff
 use CoreFramework\Registry\Registry;
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 7659a2995ec1f2bf5b386dbfcfe657a5a0b41394..21f50facdd7329cba60211f81561e28166ed5ea1 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Parser\Document;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 595aca38d70b2b8730de7db27cce98c9bda11071..d08064d674666ada3c21e203599d12b9ba41fbc6 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Sniffer\Mime;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 40a5b0671373ecffb614ad3b7fe8814dff206fe4..3785b5c2aaf75c295bd6ea03dd3b45a77055697a 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Ping;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 11d544c9c472efddb58fa5fe46fa2db8992cb0c6..342d5c0c2f3ab8f3fa63631561bb99a06f9a8105 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Publisher\Job\Remote;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index c01727e320210d876e7347e57587f161777bee90..d47394f4a4fb60b997f6636f83fda5efe3427950 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Task\Crawler\Scanner\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 62f98244e3e824423ae6e6119fae36f3cd29bb76..581e2da31d7d3f382f0bb647a31eeccb42070f95 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Crawler\Task\Scanner\UploadedList;
 use Hub\Factory\Scanner\ScannerObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 4b94b73f2a156136b3d6968ba36e91d6ba027696..1b1b51731b61d93e1d0cfac541b2c5b1c3412faf 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\SnippetExtractor;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 8d07b9882b4fdea33356480e391ee3500869d134..2d0cab98876d923708d1c678beccfe6165e5146d 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Analyzer\DocumentStructure;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index f558357db819ae77c3298dc247123a8e948236a5..9ef774d796e572b9d0ebf87845cc4dc9e5eaa66d 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Local;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index fe193bbd340761427f5999399f424f133d1d107a..0a0ea736bae201a3feb33059d2ecc80948a90168 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Crawler\Remote;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 292c662e48b06f8468c190853a2574cac00edc56..a8811be409f309194a34c262d4f91d3767b23ec1 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\Cruncher\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index ae92f9d3f0d12135a69897cc9ad3d77c84646f26..b7536bfd3668dca0b47013415131aafa39f50af8 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Cruncher\Producer\Key;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 5d08dd88918768537fcf5e00cba03d0f3f6b5d9b..892fd7609759706ef7b5dcda02c7edeac4b20bb1 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Cruncher\Task\Producer\Unit;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index e133edad1e18836b1a17b66f9d0e55cf0d1bc033..1612c4a5cc8fb5fe5454ed595c22500f1f09d54d 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Cruncher\Task\Fetcher\WorkUnit;
 
 // Import framework stuff
 use CoreFramework\Registry\Registry;
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index c71baca13be50dbad8110782464312c12ed45393..1c5a9d0a126a88c005ffa80b288f22b5d177cc15 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Miner\Task\Fetcher\Block;
 
 // Import framework stuff
 use CoreFramework\Registry\Registry;
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 8ba51204fc267fbfaeac2e361b8800f9fbacad54..0c38c8d462c783ee39268600ab49ea5bd8255f9e 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Miner\Task\Producer\GenesisBlock;
 
 // Import framework stuff
 use CoreFramework\Registry\Registry;
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 11857f82cd69e9a1d4140498fb8872fd2786897d..7c47c875a89c93c13e83120afff60f8a2fb0d0f0 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Miner\Task\Producer\GenesisBlock;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index bf8435f9973614bd659ba32f777749cf2f9d6ce7..577d8f6ffc1469e6a018fdc1d815f3e50241f6ae 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\Miner\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index abd062e67c7962402e379ffd5d0ef4b89a1ae606..2e9aedaf235759941214aeca2ef337bb3946cde4 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Miner\Task\Communicator\Node;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index e53392538fddda26e2ea9e3caea62709b0f9f750..4bf0f6e88f63876c8d31258345a57b8fb9c3f9c6 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\AptProxy\Task\Network\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index a76372b22353db29e3db33f2317978f48c73c561..6ea6fb2fdda756b1123e972bd7b9eff13051de28 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Task\Network\Reader;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 682c4265ab6410465757852f0cc65e0090fb2240..71643c084d84d496ff8c918c8c468a57b0ee3bd2 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Task\Network\Writer;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index b6bd30e9c8c523a10646f66772b586ebaade313e..de74d8cee52eab01140848828a751a1936110343 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Announcement;
 use Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 227c86022cf43442466c3c26a3df0d6fb95694aa..9f896b5933e7d64cf644408bdea5b8e1c3059001 100644 (file)
@@ -2,7 +2,11 @@
 // Own namespace
 namespace Hub\Node\Task\Assembler;
 
+// Import application-specific stuff
+use Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
+
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index c5aa07418b7a31b5f9c385a7ba4aec9a938a9aaf..1cfd8566c80250365a9c28f684e0e179c4b9beb8 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Node\Task\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 2316e1b8a9fd989b192d3c03147305a3bde565db..c653d2761ee042ff8fdad7e0a0f549cd6b611ee4 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Node\Task\Decoder;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 056258b601d5a349359f25cbeb4d26416f9b550a..fac682a0dd029529e616a3e4e2693ef6eb2acd8d 100644 (file)
@@ -3,6 +3,8 @@
 namespace Hub\Task\Node\Dht\;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
+use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
 
index ef5454fc32dc6dc135c228f9e1be379082d4ffe7..05d2cb924b75b5351c8ad4185aa2b187e7649bba 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Dht\Bootstrap;
 use Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 75fee0c492bc84e37ec657fdc8475d92cecadc35..e4905265445b537fcf6ad889cebdcad14f1f469b 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Dht\Initialization;
 use Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index cd834327e7cd553d391848dc9319ab71e143d510..265aff2c4944c3b1cee14278da5ee1028b6fc486 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Dht\Bootstrap\Late;
 use Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 06dc58994d476862a2cc17f7e4a79570cd090105..baa6b52ec736fa1b7d8333093cc1a3331a309694 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Dht\Check\Publication;
 use Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 3d44ac79a2e0eda438cc54e2454953e76577e004..0dbddb906316db0cfa1e436401ff73578d07f005 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Dht\Publication;
 use Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index b88a04d4612aa07b83b63586a6287ef98f787da2..0d59c59be21832d6e7d815300b7bc07582b3af92 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Dht\Query;
 use Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index adc9d10e4fd15e96cdda74cd03ab5cbd1c45b00e..2fe9803cbf9953b87e4b5d0ee84e8d13d378f6bc 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\Listener\Socket;
 use Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 51fac667390c97692971f0a2b8de2cb8286ea68e..3688dde7e20fffdaf3c29f183a188ba55f75b263 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Node\Ping;
 
 // Import framework stuff
 use CoreFramework\Lists\Listable;
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 5b1db69feed6b11d526c962d0900f526793976ed..0a979eefb22c7f8755a9cf480a2d439e8a1a5d83 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Node\Task\SelfConnect;
 use Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index b1c2c88e7e1abb3fe7db6f9a06f5a42fd76082be..6afab968defb8ce001cf06d6998011575c1e69df 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Node\Task\Initialization\Tag;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 8b84b96ea5100bafb5537bd61d9e392828ddf104..40040e0fe8bf0d073e4afe3b0acb2fca75ea46f5 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Node\Check\Update;
 
 // Import framework stuff
+use CoreFramework\Task\BaseTask;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index 4e76858bc8bcd27859cb0112fb6caf66c590bb56..ddb59514ac0fa908446dae66dd67cedbd242831a 100644 (file)
@@ -6,6 +6,7 @@ namespace Hub\Visitor\Monitor\Pool;
 use Hub\Listener\Listenable;
 use Hub\Network\Receive\Receivable;
 use Hub\Pool\Poolable;
+use Hub\Visitor\Listener\ListenerVisitor;
 
 // Import framework stuff
 use CoreFramework\Visitor\BaseVisitor;
index 49d851f5cad7919c8e5808a4cca7d013b89cb769..4ab5664c0585770431ace64983f37a8f6894f7c4 100644 (file)
@@ -5,6 +5,7 @@ namespace Hub\Visitor\Task\Active;
 // Import application-specific stuff
 use Hub\Listener\Listenable;
 use Hub\Pool\Poolable;
+use Hub\Visitor\Listener\ListenerVisitor;
 use Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
@@ -12,7 +13,6 @@ use CoreFramework\Generic\BaseDecorator;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\BaseVisitor;
 use CoreFramework\Visitor\Decorator\DecoratorVisitor;
-use CoreFramework\Visitor\Listener\ListenerVisitor;
 use CoreFramework\Visitor\Task\TaskVisitor;
 
 /**
index 01a548ec387cb5f12ebec3c7008b8e6c4fbdfd79..d80844a08543e5975601c96ae30bb6c82234b53f 100644 (file)
@@ -6,13 +6,13 @@ namespace Hub\Visitor\Task\Shutdown;
 use Hub\Listener\Listenable;
 use Hub\Pool\Poolable;
 use Hub\Visitor\Pool\PoolVisitor;
+use Hub\Visitor\Listener\ListenerVisitor;
 
 // Import framework stuff
 use CoreFramework\Generic\BaseDecorator;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\BaseVisitor;
 use CoreFramework\Visitor\Decorator\DecoratorVisitor;
-use CoreFramework\Visitor\Listener\ListenerVisitor;
 use CoreFramework\Visitor\Task\TaskVisitor;
 
 /**
index 314073e106ac70169facc0ae46ea97dba135db54..1a276bb9a500992fd9aa70d09d3e56a73ae3f831 100644 (file)
@@ -135,6 +135,9 @@ $cfg->setConfigEntry('half_shutdown_socket_visitor_class', 'Hub\Visitor\Shutdown
 // CFG: NODE-RAW-DATA-MONITOR-VISITOR-CLASS
 $cfg->setConfigEntry('node_raw_data_monitor_visitor_class', 'RawDataPoolMonitorVisitor');
 
+// CFG: ACTIVE-TASK-VISITOR-CLASS
+$cfg->setConfigEntry('active_task_visitor_class', 'Hub\Visitor\Task\Active\ActiveTaskVisitor');
+
 // CFG: NODE-ANNOUNCEMENT-HELPER-CLASS
 $cfg->setConfigEntry('node_announcement_helper_class', 'NodeAnnouncementHelper');
 
@@ -535,7 +538,7 @@ $cfg->setConfigEntry('task_ping_interval_delay', 1000*60*60);
 $cfg->setConfigEntry('task_ping_max_runs', 0);
 
 // CFG: NODE-PACKAGE-TAGS-INIT-TASK-CLASS
-$cfg->setConfigEntry('node_package_tags_init_task_class', 'NodePackageTagsInitTask');
+$cfg->setConfigEntry('node_package_tags_init_task_class', 'Hub\Node\Task\Initialization\Tag\NodePackageTagsInitTask');
 
 // CFG: NODE-SELFCONNECT-TASK-CLASS
 $cfg->setConfigEntry('node_selfconnect_task_class', 'NodeSelfConnectTask');
@@ -550,22 +553,22 @@ $cfg->setConfigEntry('node_ping_task_class', 'NodePingTask');
 $cfg->setConfigEntry('node_announcement_task_class', 'NodeAnnouncementTask');
 
 // CFG: NODE-PACKAGE-WRITER-TASK-CLASS
-$cfg->setConfigEntry('node_package_writer_task_class', 'NetworkPackageWriterTask');
+$cfg->setConfigEntry('node_package_writer_task_class', 'Hub\Task\Network\Writer\NetworkPackageWriterTask');
 
 // CFG: NODE-PACKAGE-READER-TASK-CLASS
-$cfg->setConfigEntry('node_package_reader_task_class', 'NetworkPackageReaderTask');
+$cfg->setConfigEntry('node_package_reader_task_class', 'Hub\Task\Network\Reader\NetworkPackageReaderTask');
 
 // CFG: NODE-SOCKET-LISTENER-TASK-CLASS
-$cfg->setConfigEntry('node_socket_listener_task_class', 'NodeSocketListenerTask');
+$cfg->setConfigEntry('node_socket_listener_task_class', 'Hub\Node\Task\Listener\Socket\NodeSocketListenerTask');
 
 // CFG: NODE-CHUNK-ASSEMBLER-TASK-CLASS
-$cfg->setConfigEntry('node_chunk_assembler_task_class', 'NodeChunkAssemblerTask');
+$cfg->setConfigEntry('node_chunk_assembler_task_class', 'Hub\Node\Task\Assembler\NodeChunkAssemblerTask');
 
 // CFG: NODE-PACKAGE-DECODER-TASK-CLASS
-$cfg->setConfigEntry('node_package_decoder_task_class', 'NodePackageDecoderTask');
+$cfg->setConfigEntry('node_package_decoder_task_class', 'Hub\Node\Task\Decoder\NodePackageDecoderTask');
 
 // CFG: NODE-DHT-INIT-TASK-CLASS
-$cfg->setConfigEntry('node_dht_init_task_class', 'NodeDhtInitializationTask');
+$cfg->setConfigEntry('node_dht_init_task_class', 'Hub\Node\Task\Dht\Initialization\NodeDhtInitializationTask');
 
 // CFG: NODE-DHT-BOOTSTRAP-TASK-CLASS
 $cfg->setConfigEntry('node_dht_bootstrap_task_class', 'NodeDhtBootstrapTask');
@@ -797,7 +800,7 @@ $cfg->setConfigEntry('allow_publish_internal_address', 'N');
 $cfg->setConfigEntry('node_status', 'invalid');
 
 // CFG: PACKAGE-FRAGMENTER-CLASS
-$cfg->setConfigEntry('package_fragmenter_class', 'PackageFragmenter');
+$cfg->setConfigEntry('package_fragmenter_class', 'Hub\Network\Package\Fragment\PackageFragmenter');
 
 // CFG: PACKAGE-ASSEMBLER-CLASS
 $cfg->setConfigEntry('package_assembler_class', 'PackageAssembler');
@@ -818,7 +821,7 @@ $cfg->setConfigEntry('socket_timeout_seconds', 3);
 $cfg->setConfigEntry('socket_timeout_microseconds', 0);
 
 // CFG: CHUNK-HANDLER-CLASS
-$cfg->setConfigEntry('chunk_handler_class', 'ChunkHandler');
+$cfg->setConfigEntry('chunk_handler_class', 'Hub\Handler\Network\RawData\Chunks\ChunkHandler');
 
 // CFG: PACKAGE-DECODER-CLASS
 $cfg->setConfigEntry('package_decoder_class', 'PackageDecoder');
@@ -828,7 +831,7 @@ $cfg->setConfigEntry('package_decoder_class', 'PackageDecoder');
 $cfg->setConfigEntry('package_recipient_max_count', 3);
 
 // CFG: NODE-DHT-CLASS
-$cfg->setConfigEntry('node_dht_class', 'NodeDhtFacade');
+$cfg->setConfigEntry('node_dht_class', 'Hub\Dht\Node\NodeDhtFacade');
 
 // CFG: MAX-DHT-RECIPIENTS
 $cfg->setConfigEntry('max_dht_recipients', 10);
index 4392798aca5c18821016ee454c569fcf9fd95217..2b54f85a2cb3a8dcdd188cc4148598470feac92d 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Node\Network\Chunk;
 
+// Import application-specific stuff
+use Hub\Network\Package\Fragment\PackageFragmenter;
+
 // Import framework stuff
 use CoreFramework\Generic\FrameworkException;
 
index 3812bc092cf018c2414ee26546f2502d335785d9..15c9fd0771987259bee677f25379f2d1401d0127 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace Hub\Fragmenter;
+namespace Hub\Network\Package\Fragment;
 
 // Import application-specific stuff
 use Hub\Helper\Connection\ConnectionHelper;
diff --git a/application/hub/interfaces/visitor/listener/.htaccess b/application/hub/interfaces/visitor/listener/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/interfaces/visitor/listener/class_ListenerVisitor.php b/application/hub/interfaces/visitor/listener/class_ListenerVisitor.php
new file mode 100644 (file)
index 0000000..e5f0c43
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+// Own namespace
+namespace Hub\Visitor\Listener;
+
+// Import application-specific stuff
+use Hub\Listener\Listenable;
+
+// Import framework stuff
+use CoreFramework\Visitor\Visitor;
+
+/**
+ * An interface for the visitor implementation for listeners
+ *
+ * @author             Roland Haeder <webmaster@shipsimu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.shipsimu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+interface ListenerVisitor extends Visitor {
+       /**
+        * Visits the given listener instance
+        *
+        * @param       $listenerInstance       A Listenable instance
+        * @return      void
+        */
+       function visitListener (Listenable $listenerInstance);
+
+}
diff --git a/core b/core
index b89f58d4d90b6d608b8e16b0e5e3235eaff4f54e..d506014f84d8e6a76ea67ef59537fc56f5f1c364 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit b89f58d4d90b6d608b8e16b0e5e3235eaff4f54e
+Subproject commit d506014f84d8e6a76ea67ef59537fc56f5f1c364