*/
function activateHub (Requestable $requestInstance, Responseable $responseInstance);
+ /**
+ * Adds some node-specific filters to the filter chains
+ *
+ * @param $requestInstance A Requestable class
+ * @param $responseInstance A Responseable class
+ * @return void
+ */
+ function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance);
+
/**
* Generates a session id which will be sent to the other hubs and clients
*
// 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()) {
- //} // END - while
+ while ($nodeInstance->isHubActive()) {
+ } // END - while
}
/**
$controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('hub_shutdown_deinit_queues_filter'));
$controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('hub_shutdown_listener_pool_filter'));
- // This is the last filter
+ // This is the last generic filter
$controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('hub_shutdown_node_filter'));
}
}
// Set the app instance
$nodeInstance->setApplicationInstance($appInstance);
- // Initialize all filters
- $nodeInstance->initializeFilters();
+ // Add node-specific filters
+ $nodeInstance->addExtraFilters($requestInstance, $responseInstance);
} catch (ClassNotFoundException $e) {
// This exception means, the node mode is invalid.
// @TODO Can we rewrite this to app_die() ?
parent::initGenericQueues();
$this->partialStub('Please add some more hub-specific queues.');
}
+
+ /**
+ * Adds some node-specific filters to the filter chains
+ *
+ * @param $requestInstance A Requestable class
+ * @param $responseInstance A Responseable class
+ * @return void
+ * @todo 0%
+ */
+ public function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance) {
+ $this->partialStub('Please implement this method.');
+ }
}
//
// Call generic (parent) bootstrapping method first
parent::doGenericBootstrapping();
$this->partialStub('Please implement this method.');
-
- // This is the last line: output teaser
- $this->outputTeaserLines();
}
/**
public function initQueues () {
$this->partialStub('Please implement this method.');
}
+
+ /**
+ * Adds some node-specific filters to the filter chains
+ *
+ * @param $requestInstance A Requestable class
+ * @param $responseInstance A Responseable class
+ * @return void
+ * @todo 0%
+ */
+ public function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance) {
+ $this->partialStub('Please implement this method.');
+ }
}
-// [EOF]
+//
?>
parent::initGenericQueues();
$this->partialStub('Please add some more hub-specific queues.');
}
+
+ /**
+ * Adds some node-specific filters to the filter chains
+ *
+ * @param $requestInstance A Requestable class
+ * @param $responseInstance A Responseable class
+ * @return void
+ * @todo 0%
+ */
+ public function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance) {
+ $this->partialStub('Please implement this method.');
+ }
}
//
parent::initGenericQueues();
$this->partialStub('Please add some more hub-specific queues.');
}
+
+ /**
+ * Adds some node-specific filters to the filter chains
+ *
+ * @param $requestInstance A Requestable class
+ * @param $responseInstance A Responseable class
+ * @return void
+ * @todo 0%
+ */
+ public function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance) {
+ $this->partialStub('Please implement this method.');
+ }
}
//
parent::initGenericQueues();
$this->partialStub('Please add some more hub-specific queues.');
}
+
+ /**
+ * Adds some node-specific filters to the filter chains
+ *
+ * @param $requestInstance A Requestable class
+ * @param $responseInstance A Responseable class
+ * @return void
+ * @todo 0%
+ */
+ public function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance) {
+ $this->partialStub('Please implement this method.');
+ }
}
//