protected function registerNodeByMessageData (array $messageData) {
// Check if searchData has entries
assert(count($this->searchData) > 0);
- $this->debugOutput('messageData=' . print_r($messageData, true));
+ self::createDebugInstance(__CLASS__)->debugOutput('messageData=' . print_r($messageData, true));
// Get a wrapper instance
$wrapperInstance = ObjectFactory::createObjectByConfiguredName('node_list_db_wrapper_class');
// Search for the node's session id and external IP/hostname + TCP port
foreach ($this->searchData as $key) {
// Debug message
- //* DEBUG: */ $this->debugOutput('MESSAGE-HANDLER: messageData=' . print_r($messageData,true));
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER: messageData=' . print_r($messageData,true));
// Add criteria
$searchInstance->addCriteria('node_' . str_replace('my-', '', $key), $messageData[$key]);
// Is must not be NULL (then it can only be a template instance)
assert(!is_null($entriesInstance));
- // Get DHT instance
- $dhtInstance = DhtObjectFactory::createDhtObjectInstance($nodeInstance);
-
// Render the XML content
$templateInstance->renderXmlContent();
}
*/
public function handlePendingData () {
// Debug output
- //* NOISY-DEBUG: */ $this->debugOutput('PACKAGE-ASSEMBLER: Going to decode ' . strlen($this->pendingData) . ' Bytes of pending data. pendingData=' . $this->pendingData);
+ //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('PACKAGE-ASSEMBLER: Going to decode ' . strlen($this->pendingData) . ' Bytes of pending data. pendingData=' . $this->pendingData);
// Assert on condition
assert(!$this->isPendingDataEmpty());