// the attribute $hubIsActive to true
$nodeInstance->activateHub($requestInstance, $responseInstance);
+ // Debug message
+ $this->debugOutput('MAIN: --- Entering main loop. ---');
+
// ----------------------------- Main loop ----------------------------
// This is the main loop. Queried calls should come back here very fast
// so the whole application runs on nice speed. This while-loop goes
// until the hub is no longer active.
while ($nodeInstance->isHubActive()) {
+ // Handle the listeners
+ // @TODO We may have to catch some exceptions here
+ $nodeInstance->getListenerPoolInstance()->handleListenerPool();
+
+ // Handle the qeues
+ $nodeInstance->getQueryInstance()->handleQueues();
} // END - while
+
+ // Debug message
+ $this->debugOutput('MAIN: --- Leaving main loop. ---');
}
/**