]> git.mxchange.org Git - hub.git/commitdiff
Next wave:
authorRoland Häder <roland@mxchange.org>
Fri, 19 May 2017 15:46:40 +0000 (17:46 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:50:02 +0000 (18:50 +0200)
- imported BaseList, Listable
- imported BaseHubSystemHelper, BaseConnectionHelper
- created namespaces
- added namespaces to configuration entries
- accept() must be public now
- doShutdown() is old name, now there is preShutdown()
- opps, "unexpted list", let's use Lists like the framework then

Signed-off-by: Roland Häder <roland@mxchange.org>
30 files changed:
application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php
application/hub/classes/factories/lists/class_RecipientListFactory.php
application/hub/classes/helper/class_
application/hub/classes/helper/connection/class_
application/hub/classes/helper/connection/class_BaseConnectionHelper.php
application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php
application/hub/classes/helper/dht/class_DhtBootstrapHelper.php
application/hub/classes/helper/dht/class_DhtPublishEntryHelper.php
application/hub/classes/helper/node/class_BaseNodeHelper.php
application/hub/classes/iterator/network/class_NetworkListenIterator.php
application/hub/classes/iterator/pool/handler/class_HandlerPoolIterator.php
application/hub/classes/iterator/pool/monitor/class_MonitorPoolIterator.php
application/hub/classes/iterator/pool/shutdown/class_ShutdownPoolIterator.php
application/hub/classes/iterator/pool/tasks/class_TaskPoolIterator.php
application/hub/classes/listener/tcp/class_TcpListener.php
application/hub/classes/lists/hub/class_HubList.php
application/hub/classes/lists/pool/class_PoolEntriesList.php
application/hub/classes/lists/recipient/class_RecipientList.php
application/hub/classes/package/class_NetworkPackage.php
application/hub/classes/pools/class_BasePool.php
application/hub/classes/pools/listener/class_DefaultListenerPool.php
application/hub/classes/recipient/class_
application/hub/classes/recipient/dht/class_DhtRecipient.php
application/hub/classes/recipient/direct/class_DirectRecipient.php
application/hub/classes/recipient/self/class_SelfRecipient.php
application/hub/classes/recipient/upper/class_UpperRecipient.php
application/hub/classes/tasks/node/ping/class_NodePingTask.php
application/hub/config.php
application/hub/interfaces/recipient/class_Recipient.php
core

index 2e79407944bbabb5b6c6cf4ee17d3166de10eff3..2701189d0214768ba8c19dceb22857657dfbde85 100644 (file)
@@ -5,6 +5,7 @@ namespace Hub\Network\Discovery\Socket;
 // Import hub-specific stuff
 use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Generic\BaseHubSystem;
+use Hub\Helper\Connection\BaseConnectionHelper;
 
 // Import framework stuff
 use CoreFramework\Listener\Listenable;
index 56350ef40099764e02fba1437c74cd13070bf812..3ecd4e097d21bf662f68afe4e5d9a34aa324022b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace Hub\Factory\List\Recipient;
+namespace Hub\Factory\Lists\Recipient;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
index e982dd39d76643f3faed1b210c146480f50511c9..c1c0ef4a10963d7e4ed474b455b8ce4b9ff0ce9f 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Helper\;
+
+// Import application-specific stuff
+use Hub\Helper\BaseHubSystemHelper;
+
 /**
  * A ??? !!! helper class
  *
index 8d29049ead2c65a4488cbff56471e498e39fae3a..48a5febd7755ac31e8682f0fd807969d8592afab 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Helper\Connection\;
+
+// Import application-specific stuff
+use Hub\Helper\Connection\BaseConnectionHelper;
+
 /**
  * A ??? connection helper class
  *
index 596672971ac20fb3a884cd48e42ca7b1efd83cc3..60ec9e57f6a3e5b2bf30431e87074910064e5a8d 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Helper\Connection;
 
 // Import application-specific stuff
 use Hub\Factory\Fragmenter\FragmenterFactory;
+use Hub\Helper\BaseHubSystemHelper;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
@@ -272,7 +273,7 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
         * @param       $visitorInstance        A Visitor instance
         * @return      void
         */
-       protected final function accept (Visitor $visitorInstance) {
+       public function accept (Visitor $visitorInstance) {
                // Just call the visitor
                $visitorInstance->visitConnectionHelper($this);
        }
index e045925faec30193e5aae8c4a2732ee9d632404d..db6e4bd47c5f6c23a890874520cc0958d4b49f1f 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Helper\Connection\IpV4;
+
+// Import application-specific stuff
+use Hub\Helper\Connection\BaseConnectionHelper;
+
 /**
  * A ??? connection helper class
  *
index 61dfa6b2b60d156a260cf0f19308b0fd42e0c342..a292b0cc4d6c237d226b6245149d0debab647208 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Helper\Dht\Bootstrap;
 
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
+use Hub\Helper\BaseHubSystemHelper;
 
 /**
  * A Bootstrap Dht helper class
index 331ff9a7b0219adca52174a487c781e00a7cde8a..7af9f63ea6324f0c0e914989221e642b518c7692 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Helper\Dht\Publish;
 
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
+use Hub\Helper\BaseHubSystemHelper;
 
 /**
  * A PublishingEntry Dht helper class
index 6882f20e47f8d72596a4a33c7438a091fed6ebd7..36b534de8b842b3b643f2d83e9c7b18b7cda203a 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Helper\Node;
 
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
+use Hub\Helper\BaseHubSystemHelper;
 
 /**
  * A general node helper class
index 18c2e8018a6a172240d43b9caa49fa542273f9e4..9d147ac9b8dd15a6b868f41974a84a3b710d3014 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Iterator\Network\Listener;
+
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A NetworkListen iterator
  *
index e23c2fde60b1ef301f4c7dc59575742fec71cd76..fd6be6ebe506936d6361ae8fea8bd61a8982e0a5 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Iterator\Handler\Pool;
+
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A HandlerPool iterator
  *
index e0de761ad146aa9ec59015f206f96f91076ebe57..b35931d423e4d24539a05d7312023edc6f41cb0e 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Iterator\Pool\Monitor;
 
 // Import framework stuff
 use CoreFramework\Registry\Registerable;
+use CoreFramework\Lists\Listable;
 
 /**
  * A MonitorPool iterator
index 9d53a29370a1409edfc465821a9435793ff2ebdb..26d60572d6bf0fc4235011a0bbc062b160442f0f 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Iterator\Pool\Shutdown;
+
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A ShutdownPool iterator
  *
index e066ab589b2f1bdc942b727e89f2cacbe33735ea..6a45eddce4091ee30457cda76e7806728099f25f 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Iterator\Pool\Task;
 
 // Import framework stuff
+use CoreFramework\Lists\Listable;
 use CoreFramework\Registry\Registerable;
 
 /**
index d814913f46943ebb6e0d271e4ca0a95596484636..a537746bd0843b27e527bd73cf818e76261c728c 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Listener\Tcp;
 
+// Import application-specific stuff
+use Hub\Helper\Connection\BaseConnectionHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Generic\UnsupportedOperationException;
index efe935f6faba9732b85e0b2a694ee28ebeb82b5a..e11f7b8a3c08ee3f48493c9ebcb5ad2b4e948d1b 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Hub\Lists\Hub;
+
+// Import framework stuff
+use CoreFramework\Lists\BaseList;
+use CoreFramework\Lists\Listable;
+
 /**
  * A Hub list
  *
index 3b19329fae5c4426b0b75734caeccfef9385049f..f8c394ebd9bf0470469e7e3c0312acd819ebc7ef 100644 (file)
@@ -1,9 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\List\Pool;
+namespace Hub\Lists\Pool;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Lists\BaseList;
+use CoreFramework\Lists\Listable;
 
 /**
  * A list for pool entries
index 988c7d7b2eb1b6142962cf6f9eac79bbd63f433b..a6de87c583d5dd9a36d2175806ca3b5f7dfeaa80 100644 (file)
@@ -1,8 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\List\Recipient;
+namespace Hub\Lists\Recipient;
 
 // Import framework stuff
+use CoreFramework\Lists\BaseList;
+use CoreFramework\Lists\Listable;
 use CoreFramework\Registry\Registerable;
 
 /**
index 5d421c28aecb6e8b9325768a1a3ab7f42f2ce238..6966afa01de4ba4d60f0a6bdc4136c774bea8b49 100644 (file)
@@ -7,6 +7,7 @@ use Hub\Factory\Assembler\Package\PackageAssemblerFactory;
 use Hub\Factory\Dht\DhtObjectFactory;
 use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Generic\BaseHubSystem;
+use Hub\Helper\Connection\BaseConnectionHelper;
 use Hub\Network\Receive\Receivable;
 use Hub\Tools\HubTools;
 
index 773f0c8cc82d6f457a456fca4a838e56b83b3a00..d5666286f903e43512c9d8d4758d9cf74eb3d8a0 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Pool;
 
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
+use Hub\Helper\Connection\BaseConnectionHelper;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
index 23c89d77742b9c2983766fe4551a7ead2ea39d1e..954bfe049c326c390917c7a050de3428c8ff66aa 100644 (file)
@@ -77,11 +77,11 @@ class DefaultListenerPool extends BasePool implements Poolable {
        }
 
        /**
-        * Run the shutdown seqeuence by a visitor pattern
+        * Run the pre-shutdown seqeuence by a visitor pattern
         *
         * @return      void
         */
-       public function doShutdown () {
+       public function preShutdown () {
                // Debug message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down listener pool - CALLED!');
 
index d85e73e9c821e7c1826b44f538680dfe50640d4d..2c92c5595de91ddf4b406165d00c99c5db8d18d9 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Recipient\;
+
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A ??? recipient
  *
index 44025f3c979e11f477d8186e1b76b36bfe161036..8fe4535e55ee9b7d4f3753981300b52ddafda596 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Recipient\Dht;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Lists\Listable;
 
 /**
  * A DHT recipient
index b8395f34255dca1922373069d4d873b5d4c1a664..c60311554e4bdf685b74bbae8b48b3c13f56cd7e 100644 (file)
@@ -5,6 +5,9 @@ namespace Hub\Network\Recipient\Direct;
 // Import hub-specific sutff
 use Hub\Tools\HubTools;
 
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A Direct recipient
  *
index 21b04738832b7ed8d9afaf27b5f2163322cabfd5..838c9fd882c9d01d831f2a73ffe1e9b0a61034af 100644 (file)
@@ -5,6 +5,9 @@ namespace Hub\Network\Recipient\Self;
 // Import hub-specific sutff
 use Hub\Tools\HubTools;
 
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A Self recipient
  *
index 483f73853667ab3879d4154c2389cbbe70e6562b..1b24135f43ed79d26c89febe7ec1741d40ced042 100644 (file)
@@ -5,6 +5,9 @@ namespace Hub\Network\Receipt\Upper;
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
 
+// Import framework stuff
+use CoreFramework\Lists\Listable;
+
 /**
  * A Upper recipient
  *
index 4279391f6d1d83ad143fec647dcd43af07146d74..171eafb03159e8217fe4f90ea826940a5df57f5d 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Node\Ping;
 
 // Import framework stuff
+use CoreFramework\Lists\Listable;
 use CoreFramework\Task\Taskable;
 use CoreFramework\Visitor\Visitable;
 use CoreFramework\Visitor\Visitor;
index be039dc634f91dacb12afa873eb5413ef0325aff..e095029f03d98fe42d817873e5d5aa28d9a64d53 100644 (file)
@@ -76,10 +76,10 @@ $cfg->setConfigEntry('tcp_listener_class', 'TcpListener');
 $cfg->setConfigEntry('udp_listener_class', 'UdpListener');
 
 // CFG: SOCKET-FILE-LISTENER-CLASS
-$cfg->setConfigEntry('socket_file_listener_class', 'SocketFileListener');
+$cfg->setConfigEntry('socket_file_listener_class', 'CoreFramework\Listener\Socket\SocketFileListener');
 
 // CFG: SOCKET-FILE-DECORATOR-LISTENER-CLASS
-$cfg->setConfigEntry('socket_file_decorator_listener_class', 'SocketFileListenerDecorator');
+$cfg->setConfigEntry('socket_file_decorator_listener_class', 'CoreFramework\Listener\Socket\SocketFileListenerDecorator');
 
 // CFG: NODE-TCP-LISTENER-CLASS
 $cfg->setConfigEntry('node_tcp_listener_class', 'HubTcpListenerDecorator');
@@ -100,7 +100,7 @@ $cfg->setConfigEntry('node_pool_class', 'DefaultPeerPool');
 $cfg->setConfigEntry('application_pool_class', 'DefaultPeerPool');
 
 // CFG: POOL-ENTRIES-LIST-CLASS
-$cfg->setConfigEntry('pool_entries_list_class', 'PoolEntriesList');
+$cfg->setConfigEntry('pool_entries_list_class', 'Hub\Lists\Pool\PoolEntriesList');
 
 // CFG: SHUTDOWN-POOL-ITERATOR-CLASS
 $cfg->setConfigEntry('shutdown_pool_iterator_class', 'ShutdownPoolIterator');
index 6e9557227800749461f598d202d4571c81bec614..c653b3dde620369940bf4800d74cc2380a1bd564 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Recipient;
 
 // Import framework stuff
 use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Lists\Listable;
 
 /**
  * An interface for recipients
diff --git a/core b/core
index 1e0fc6320d565605e15aa4f023915ca1574272e4..6cf40d9bfbe6159ce08cbec4c87d504f5829429d 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 1e0fc6320d565605e15aa4f023915ca1574272e4
+Subproject commit 6cf40d9bfbe6159ce08cbec4c87d504f5829429d