]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/class_BaseHubNode.php
Introduced updateNodeData() to update/refresh node data ... ;)
[hub.git] / application / hub / main / nodes / class_BaseHubNode.php
index 58cdde153701ad7f9ecb5a54b1d8861214752e67..821ae67dbb201128cf5cfb1732ca7c8185d43cae 100644 (file)
@@ -395,9 +395,6 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
                        throw new HubAlreadyAnnouncedException($this, self::EXCEPTION_HUB_ALREADY_ANNOUNCED);
                } // END - if
 
-               // Set some dummy configuration entries, e.g. node_status
-               $this->getConfigInstance()->setConfigEntry('node_status', $this->getStateInstance()->getStateName());
-
                // Debug output
                $this->debugOutput('HUB-Announcement: START (taskInstance=' . $taskInstance->__toString(). ')');
 
@@ -643,6 +640,17 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
                // Return it
                return $addressPort;
        }
+
+       /**
+        * Updates/refreshes node data (e.g. state).
+        *
+        * @return      void
+        * @todo        Find more to do here
+        */
+       public function updateNodeData () {
+               // Set some dummy configuration entries, e.g. node_status
+               $this->getConfigInstance()->setConfigEntry('node_status', $this->getStateInstance()->getStateName());
+       }
 }
 
 // [EOF]