Roland Häder [Thu, 25 Jul 2013 02:29:26 +0000 (02:29 +0000)]
Possible "fix" for wrong cache key:
- $onlyKeys allows to set database table columns that shall be used for
creating a cache key, this can be used to look for a node id/ip/port
combination instead of the default session id.
Roland Häder [Thu, 25 Jul 2013 02:21:20 +0000 (02:21 +0000)]
Added exceptions + some code:
- Added two more exceptions for DHT database wrapper
- Added some code that will check for correct conditions in registerNode() and
updateNode() and makes use of above mentioned exceptions
- Converted more double-quotes to single
Roland Häder [Fri, 19 Jul 2013 21:23:30 +0000 (21:23 +0000)]
Continued:
- renamed some methods to shorter names (it is okay)
- added stubs for node registration in DHT
- Used rather valid() than next() to avoid different behaviours of next()
- Other minor improvements
Roland Häder [Fri, 22 Feb 2013 04:43:42 +0000 (04:43 +0000)]
Added new task for package tags (object registry):
- Added new task for package tags (object registry) early initialization as
rewrites on DHT initialization requires it
- Rewritten DHT initialization to include all supported object types
- Deprecated now all queue/query-related files
- Updated TODOs.txt
Roland Häder [Thu, 21 Feb 2013 22:57:14 +0000 (22:57 +0000)]
Added required assert() to make sure that the requested data in the array is available (do always use my constants if you create such arrays on your own)
Roland Häder [Mon, 18 Feb 2013 05:49:14 +0000 (05:49 +0000)]
Introduced Recipient implentation classes:
- DirectRecipient: A direct session id that needs solving into an ip:port
combination
- DhtRecipient: A virtual recipient that will cause querying the local DHT
data for possible recipients (unfinished)
- SelfRecipient: A virtual recipient, yet direct one, as this will be resolved
into *this* own node's session id
- UpperRecipient A virtual recipient for all boot, master and list node's
session ids
- Internal TODO for above closed (and nicely solved)
Roland Häder [Thu, 14 Feb 2013 22:21:13 +0000 (22:21 +0000)]
Renamed/moved classes, added DHT bootstrap (very early):
- Added very early and untested code for DHT bootstrap
- To make things easier, more HubFooBar classes has been renamed to NodeFooBar
- Also they have to be moved to a new place to fit class prefix
Roland Häder [Wed, 13 Feb 2013 20:48:05 +0000 (20:48 +0000)]
Rewritten remaining (old) debug calls:
- Used self::createDebugInstance(__CLASS__)->debugOutput() instead of
$fooInstance->debugOutput() as this is the newer approach
- Added method bootstrapDht() but still unimplemented
Roland Häder [Wed, 13 Feb 2013 19:37:48 +0000 (19:37 +0000)]
Renamed method:
- Renamed method findNodeBySessionId() to findNodeLocalBySessionId() as it only
searches in locally stored data and doesn't query other nodes
- Added final (temporary) configuration entry 'node_list' which will be a
BASE64-encoded and serialized array
Roland Häder [Tue, 12 Feb 2013 06:16:43 +0000 (06:16 +0000)]
Rewrites:
- Rewrote AnnouncementAnswerOkayHandler to use DHT instance instead of
deprecated wrapper class
- BaseHandler now implements Handleable because both are generics
- NodeDhtFacade now allows forced node updates, if no record is found an
exception is thrown. This should help to find "stealing" of session ids
Roland Häder [Tue, 12 Feb 2013 05:37:42 +0000 (05:37 +0000)]
Some rewrites towards more flexible code:
- Got rid of 'ip_port' field and converted it into 'external_ip' (as it is) and
'listen_port' fields
- Rewrote private method for session id -> ip:port resolving