From b00e97feb26024b4ac56e201e4fdc5de17362eb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 16:56:24 +0200 Subject: [PATCH] Continued a bit: - imported UnsupportedOperationException - "implemented" methods (empty) required by Discoverable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../discovery/class_BaseNodeDiscovery.php | 24 +++++++++++++++++++ ...ass_PackageAnnouncementAnswerTagFilter.php | 1 + ...ass_PackageDhtBootstrapAnswerTagFilter.php | 1 + ..._PackageRequestNodeListAnswerTagFilter.php | 1 + .../class_PackageAnnouncementTagFilter.php | 1 + .../class_PackageDhtBootstrapTagFilter.php | 1 + .../class_PackageRequestNodeListTagFilter.php | 1 + .../class_PackageSelfConnectTagFilter.php | 1 + ...s_NodeMessageAnnouncementAnswerHandler.php | 1 + ...s_NodeMessageDhtBootstrapAnswerHandler.php | 1 + ...odeMessageRequestNodeListAnswerHandler.php | 1 + .../class_NodeMessageSelfConnectHandler.php | 1 + .../class_TestUnitKeyProducerIterator.php | 6 +++++ .../listener/tcp/class_TcpListener.php | 1 + 14 files changed, 42 insertions(+) diff --git a/application/hub/classes/discovery/class_BaseNodeDiscovery.php b/application/hub/classes/discovery/class_BaseNodeDiscovery.php index 57c8d96c3..8623bdbab 100644 --- a/application/hub/classes/discovery/class_BaseNodeDiscovery.php +++ b/application/hub/classes/discovery/class_BaseNodeDiscovery.php @@ -5,6 +5,7 @@ namespace Hub\Discovery\Node; // Import framework stuff use CoreFramework\Discovery\BaseDiscovery; use CoreFramework\Discovery\Discoverable; +use CoreFramework\Generic\UnsupportedOperationException; /** * A general node discovery class @@ -40,4 +41,27 @@ class BaseNodeDiscovery extends BaseDiscovery implements Discoverable { parent::__construct($className); } + /** + * Discovers the request + * + * @param $requestInstance An instance of a Requestable class + * @return void + * @throws UnsupportedOperationException If this method is called + */ + public function discover (Requestable $requestInstance) { + throw new UnsupportedOperationException('This method is not supported.'); + } + + /** + * Adds the database result in a human-readable format to the helper class + * + * @param $helperInstance An instance of a helper class + * @return void + * @todo 0% done + */ + public function addResultsToHelper (HelpableTemplate $helperInstance) { + // Undone part + $this->partialStub('Unfinished method. helperInstance=' . $helperInstance->__toString()); + } + } diff --git a/application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php b/application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php index 867fcb545..f753eee22 100644 --- a/application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php +++ b/application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php b/application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php index 1b009dbb4..3be38aee7 100644 --- a/application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php +++ b/application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php b/application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php index 1ad70f6f6..6b17e7312 100644 --- a/application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php +++ b/application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php b/application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php index b1f311e23..f738ca664 100644 --- a/application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php +++ b/application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php @@ -7,6 +7,7 @@ use Hub\Filter\Node\BaseNodeFilter; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php b/application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php index f309d7e88..6447265b4 100644 --- a/application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php +++ b/application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php b/application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php index c5ee1c001..350ffad26 100644 --- a/application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php +++ b/application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php b/application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php index 7f3c809d4..b42d235a6 100644 --- a/application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php +++ b/application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Filter\Filterable; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Request\Requestable; use CoreFramework\Response\Responseable; diff --git a/application/hub/classes/handler/message-types/answer/class_NodeMessageAnnouncementAnswerHandler.php b/application/hub/classes/handler/message-types/answer/class_NodeMessageAnnouncementAnswerHandler.php index 1e615b77a..91e807ef7 100644 --- a/application/hub/classes/handler/message-types/answer/class_NodeMessageAnnouncementAnswerHandler.php +++ b/application/hub/classes/handler/message-types/answer/class_NodeMessageAnnouncementAnswerHandler.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Criteria\Storing\StoreableCriteria; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Registry\Registerable; /** diff --git a/application/hub/classes/handler/message-types/answer/class_NodeMessageDhtBootstrapAnswerHandler.php b/application/hub/classes/handler/message-types/answer/class_NodeMessageDhtBootstrapAnswerHandler.php index 66d5f7e90..a256faa97 100644 --- a/application/hub/classes/handler/message-types/answer/class_NodeMessageDhtBootstrapAnswerHandler.php +++ b/application/hub/classes/handler/message-types/answer/class_NodeMessageDhtBootstrapAnswerHandler.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Criteria\Storing\StoreableCriteria; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Registry\Registerable; /** diff --git a/application/hub/classes/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php b/application/hub/classes/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php index a1c4ffad2..0f914e92b 100644 --- a/application/hub/classes/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php +++ b/application/hub/classes/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Criteria\Storing\StoreableCriteria; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Registry\Registerable; /** diff --git a/application/hub/classes/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php b/application/hub/classes/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php index 7cfc52812..886a118a4 100644 --- a/application/hub/classes/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php +++ b/application/hub/classes/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php @@ -8,6 +8,7 @@ use Hub\Network\Receive\Receivable; // Import framework stuff use CoreFramework\Criteria\Storing\StoreableCriteria; +use CoreFramework\Generic\UnsupportedOperationException; use CoreFramework\Registry\Registerable; /** diff --git a/application/hub/classes/iterator/producer/keys/class_TestUnitKeyProducerIterator.php b/application/hub/classes/iterator/producer/keys/class_TestUnitKeyProducerIterator.php index ea8c48beb..aff00bc08 100644 --- a/application/hub/classes/iterator/producer/keys/class_TestUnitKeyProducerIterator.php +++ b/application/hub/classes/iterator/producer/keys/class_TestUnitKeyProducerIterator.php @@ -1,4 +1,10 @@