* @param $recipient Recipient to resolve (e.g. could be a virtual recipient or direct session id)
* @param $listInstance An instance of a Listable class
* @return $resolved Resolved recipient or VOID if only the set list has been filled
- * @throws FrameworkException Could throw different exceptions back depending on implementation
+ * @throws FrameworkException Could throw different exceptions depending on implementation
*/
function resolveRecipient ($recipient, Listable $listInstance);
}
* @todo 0% done
*/
public function resolveRecipient ($recipient, Listable $listInstance) {
+ // Make sure the recipient is valid
+ assert($recipient == '|||');
$this->partialStub('Please implement this method. recipient=' . $recipient);
}
}
* @param $recipient Recipient to resolve (e.g. could be a virtual recipient or direct session id)
* @param $listInstance An instance of a Listable class
* @return $resolved Resolved recipient or VOID if only the set list has been filled
- * @throws FrameworkException Could throw different exceptions back depending on implementation
+ * @throws FrameworkException Could throw different exceptions depending on implementation
* @todo 0% done
*/
public function resolveRecipient ($recipient, Listable $listInstance) {
+ // Make sure the recipient is valid
+ assert($recipient == 'dht');
$this->partialStub('Please implement this method. recipient=' . $recipient);
}
}
* @param $recipient Recipient to resolve (e.g. could be a virtual recipient or direct session id)
* @param $listInstance An instance of a Listable class
* @return $resolved Resolved recipient or VOID if only the set list has been filled
- * @throws FrameworkException Could throw different exceptions back depending on implementation
+ * @throws FrameworkException Could throw different exceptions depending on implementation
*/
public function resolveRecipient ($recipient, Listable $listInstance = NULL) {
// "Explode" all recipients
* @param $recipient Recipient to resolve (e.g. could be a virtual recipient or direct session id)
* @param $listInstance An instance of a Listable class
* @return $resolved Resolved recipient or VOID if only the set list has been filled
- * @throws FrameworkException Could throw different exceptions back depending on implementation
+ * @throws FrameworkException Could throw different exceptions depending on implementation
*/
public function resolveRecipient ($recipient, Listable $listInstance) {
+ // Make sure the recipient is valid
+ assert($recipient == 'self');
+
// Determine own port
$port = $this->getConfigInstance()->getConfigEntry('node_listen_port');
* @param $recipient Recipient to resolve (e.g. could be a virtual recipient or direct session id)
* @param $listInstance An instance of a Listable class
* @return $resolved Resolved recipient or VOID if only the set list has been filled
- * @throws FrameworkException Could throw different exceptions back depending on implementation
+ * @throws FrameworkException Could throw different exceptions depending on implementation
*/
public function resolveRecipient ($recipient, Listable $listInstance) {
+ // Make sure the recipient is valid
+ assert($recipient == 'upper');
+
// Get all bootstrap nodes
foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPARATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $ipPort) {
// Is maximum reached?