]> git.mxchange.org Git - hub.git/commitdiff
Next wave:
authorRoland Häder <roland@mxchange.org>
Fri, 19 May 2017 01:06:40 +0000 (03:06 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:49:59 +0000 (18:49 +0200)
- imported BaseHubNode
- imported (Node)Helper
- created namespaces

Signed-off-by: Roland Häder <roland@mxchange.org>
33 files changed:
application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php
application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php
application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php
application/hub/classes/factories/states/node/class_NodeStateFactory.php
application/hub/classes/handler/answer-status/announcement/class_NodeAnnouncementAnswerOkayHandler.php
application/hub/classes/handler/message-types/requests/class_NodeMessageRequestNodeListHandler.php
application/hub/classes/handler/network/tcp/class_
application/hub/classes/helper/node/announcement/class_NodeAnnouncementHelper.php
application/hub/classes/helper/node/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php
application/hub/classes/helper/node/answer/dht/class_NodeDhtBootstrapMessageAnswerHelper.php
application/hub/classes/helper/node/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php
application/hub/classes/helper/node/class_
application/hub/classes/helper/node/class_BaseNodeHelper.php
application/hub/classes/helper/node/connection/class_NodeSelfConnectHelper.php
application/hub/classes/helper/node/requests/class_NodeRequestNodeListHelper.php
application/hub/classes/listener/tcp/class_
application/hub/classes/listener/udp/class_
application/hub/classes/nodes/boot/class_HubBootNode.php
application/hub/classes/nodes/class_
application/hub/classes/nodes/list/class_HubListNode.php
application/hub/classes/nodes/master/class_HubMasterNode.php
application/hub/classes/nodes/regular/class_HubRegularNode.php
application/hub/classes/pools/listener/class_DefaultListenerPool.php
application/hub/classes/resolver/protocol/class_
application/hub/classes/resolver/protocol/tcp/class_TcpProtocolResolver.php
application/hub/classes/states/node/class_
application/hub/interfaces/database/frontend/class_NodeInformationWrapper.php
application/hub/interfaces/discovery/unl/class_DiscoverableUniversalNodeLocator.php
application/hub/interfaces/helper/hub/class_HubHelper.php
application/hub/interfaces/helper/messages/class_MessageHelper.php
application/hub/interfaces/helper/node/class_HelpableNode.php
application/hub/interfaces/helper/nodes/class_NodeHelper.php
application/hub/interfaces/resolver/class_ProtocolResolver.php

index aeae4e35b8306e5d965616f26e16d0b76ceb4993..b41984318d5ff3feee5376579c25946813250bf8 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Database\Frontend\Node\Dht;
 
 // Import application-specific stuff
 use Hub\Factory\Node\NodeObjectFactory;
+use Hub\Node\BaseHubNode;
 
 // Import framework stuff
 use CoreFramework\Criteria\Storing\StoreableCriteria;
index c105b7c1bd570cd0e231d403bf08a2baa3e33780..499e2a5610b21fa042f1fbfcc5b8ab1d25084181 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace Hub\Database\Frontend\Node\Information;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Request\Requestable;
index 5fa1ca71d348e1b8893b9b4d4c6091a4f7c8c720..dab60ad1efe1ede6517f4ee0c969284b57da57c3 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Disovery\Locator;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A UniversalNodeLocator discovery class
  *
index 71e5b7c3f3982fda677f99ca2b4eb29c6affb937..53e5799fd5aebf4ec4ebc81eb043f01f7a6c842f 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Factory\State\Node;
 
 // Import application-specific stuff
 use Hub\Factory\Node\NodeObjectFactory;
+use Hub\Node\Helper\NodeHelper;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
index 5addf3415f1ae16d3afa975a4be2c833f325a01e..1758c9b828b2e76aafd7d4338c683a64648a0bc6 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Handler\Node\Announcement\Answer;
 
 // Import application-specific stuff
 use Hub\Factory\Node\NodeObjectFactory;
+use Hub\Node\BaseHubNode;
 
 // Import framework stuff
 use CoreFramework\Registry\Registry;
index 9251e98016c3e50c38a23fa592fb88f141f556f0..c5bfdd49198be71045a91125225fff8f510fd251 100644 (file)
@@ -4,6 +4,7 @@ namespace Hub\Handler\Node\Message\Request\NodeList;
 
 // Import application-specific stuff
 use Hub\Factory\Node\NodeObjectFactory;
+use Hub\Node\BaseHubNode;
 
 // Import framework stuff
 use CoreFramework\Criteria\Storing\StoreableCriteria;
index 96b146f9ff0bea4b3d122037aa39ee5ebe39f0e2..01f54a8497ebb5a0485c8274fa8d0ca7786f9a78 100644 (file)
@@ -132,6 +132,12 @@ while (count($clients) > 0) {
 socket_close($mainSocket);
 
 ?>
+// Own namespace
+namespace Hub\Listener\;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 <?php
 /**
  * A TCP ??? listener
index 88d1b4e9234750d6064fbbfd288986e06c263563..5ffb3b26719b671e7ac15e7524732101662fca8e 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\Announcement;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A helper class for announcing this node to other nodes
  *
index b60901c35e98c026ba31e8ad5c88e55fe20bbdee..16bc0e0498f4f685175520a34ef364e2c5226b72 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\Answer\Announcement;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A AnnouncementMessageAnswer node helper class
  *
index a440ee05b93de36d1f9f79752964c72319791a4b..6b315075c735008bbe5c0c601add95eeeddd0826 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\Answer\Dht\Bootstrap;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A DhtBootstrapMessageAnswer node helper class
  *
index 43788ae1fc5f27e26b39490e18900526100724b3..9553a16f71f3bfeb0285f77d84527f5d6bc21782 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\Answer\Request\NodeList;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A RequestNodeListMessageAnswer node helper class
  *
index 21bbb6575c1bbd70301f85d1579dcb8ef8e72ddb..5c8db6f987e5c6086457922c3b09229b5c032bba 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A ??? hub helper class
  *
index 6882f20e47f8d72596a4a33c7438a091fed6ebd7..6586d5c7c85746893f8424892624c62b432586e8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Node;
+namespace Hub\Node\Helper;
 
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
index 29e83cc453826ba6c35c7537cf459d8912751e64..c998e7deeada2bcf86b91a44c57535f74618905d 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\SelfConnect;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A SelfConnect hub helper class
  *
index 7e82ca174ceac8c5f69f7d030e666d20b716d930..f1d8c0832a14a0ca623f4bc6621fa99eb26ce239 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper\Request\NodeList;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A ??? hub helper class
  *
index 96b146f9ff0bea4b3d122037aa39ee5ebe39f0e2..aeb02d32ed2af751cde4e0343bce0dd0215efa2b 100644 (file)
@@ -132,6 +132,12 @@ while (count($clients) > 0) {
 socket_close($mainSocket);
 
 ?>
+// Own namespace
+namespace Hub\Listener\Tcp\;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 <?php
 /**
  * A TCP ??? listener
index 8be5d3893a05c088c20ccc5ae2ecc1001aaaa55e..efd0b7b8c1d53e60f8de2ef9111c4f071e653a63 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Listener\Udp\;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * An UDP ??? listener
  *
index a0d91d719e8bad0d4f24e630b44a2932f842e48e..bdce925ba2dc0691fd527f41161913eb8a3f0c2a 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace Hub\Node\Boot;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Registry\Registry;
index d27cb4eab80ad61e3f8fcf5c5560da9a90e3707d..038bba2a8cdfcad4843207a056c2716dd0d33ac0 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace Hub\Node\;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Request\Requestable;
 
index 350335da46d9961bcdc967066195502d9a0c1188..b0a07f361d5c3d62054e88e1c3bac94b31dd6332 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace Hub\Node\Backup;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Registry\Registry;
index 14ed6a98f5da29d620e9d7695d6778155b68317b..add6205b1df4868cc58cfb4827af379fecf770e5 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace Hub\Node\Master;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Registry\Registry;
index 676230d971afd1825e43fa33afe43e1a9753292f..dbca4284b01f77d020599996ceca37b9b775614b 100644 (file)
@@ -2,6 +2,10 @@
 // Own namespace
 namespace Hub\Node\Regular;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Registry\Registry;
index 80b0ca2b4bb2653d6b74035235d265fe2d5f003f..10b34263eb1bf0f10373ff65f3fd7df8861c0c3b 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Pool\Listener;
 
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 
index ccc83ffcc6021ff24aab6763fc64a33d244a756c..e188e2a739b70eaecffcf8e200f407b7155d3c7b 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Resolver\Protocol\;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A !!! protocol resolver class
  *
index ae1b5df8c46e9293493a43463309d855d4ff59b6..bcb7859ed0266ed388b4bd74a5ef69ac80e5c5d8 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Resolver\Protocol\Tcp;
 
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 
index 82f1903d95cf20a01ea202076e3879146a0225f5..77944df1b44565dcf43d2b9647225a25b2c21de3 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\State\;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * A ??? node state class
  *
index 6d1d545fed44f080290bcbcb14f7bf1614a08772..fb2dce714f396158cbe721cc2cd5c28d4b7177b5 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Database\Frontend\Node;
 
+// Import application-specific stuff
+use Hub\Node\BaseHubNode;
+
 // Import framework stuff
 use CoreFramework\Request\Requestable;
 
index a21ea9cecb0eccf21fb4af980b161768217cda62..a7f726bb31db4b3dde4fbc2ea93dc221343066a7 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Discovery\Locator;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * An interface for UNL discovery
  *
index b640defe61c525fae208264a3742eb051cd75ee7..ff98b0eebfdb2950ef704a22fdd145e1d0eec4e2 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Helper;
+
+// Import framework stuff
+use CoreFramework\Helper\Helper;
+
 /**
  * An general interface for hub helper classes
  *
index f388272e1cc1bd9281af77b66cab012940d25f36..71014a3045853abf50150fd477df76acfaba1016 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Helper\Message;
+
+// Import framework stuff
+use CoreFramework\Helper\Helper;
+
 /**
  * An interface for message helper
  *
index b2596b99c7d5cdf225a885088250494bb1c5371f..4b21f1c047afcf2e472d8ed3e7986d5006d353a9 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Node\Helper;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * An interface for node helper classes
  *
index fb730f47b7a9e44fb22c8ec3bab4d21fb0720b5a..9b578760d7ca3cf19d7867c5bff94e2dd5ca9cda 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Node;
+namespace Hub\Node\Helper;
 
 // Import framework stuff
 use CoreFramework\Criteria\Add\AddableCriteria;
+use CoreFramework\Helper\Helper;
 use CoreFramework\Request\Requestable;
 use CoreFramework\Response\Responseable;
 
index 03aecda31835c04061758984f2a2e804658a6017..38caa518fd23c038a9e04f1d8667cfe585376284 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Resolver\Protocol;
+
+// Import application-specific stuff
+use Hub\Node\Helper\NodeHelper;
+
 /**
  * An interface for ProtocolResolvers
  *