]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/dht/class_BaseDht.php
Added very basic implementation of updateDhtData()
[hub.git] / application / hub / main / dht / class_BaseDht.php
index a71c2f3050164dd87e2ca94f016c02c933a576b2..597cc209ae649e3b7a2da49be79f9632fd44a6c2 100644 (file)
@@ -38,6 +38,17 @@ class BaseDht extends BaseHubSystem {
                 */
                DhtStateFactory::createDhtStateInstanceByName('init', $this);
        }
+
+       /**
+        * Updates/refreshes DHT data (e.g. status).
+        *
+        * @return      void
+        * @todo        Find more to do here
+        */
+       public function updateDhtData () {
+               // Set some dummy configuration entries, e.g. dht_status
+               $this->getConfigInstance()->setConfigEntry('dht_status', $this->getStateInstance()->getStateName());
+       }
 }
 
 // [EOF]