]>
git.mxchange.org Git - hub.git/log
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 20:18:14 +0000 (20:18 +0000)]
Commented out some noisy debug lines
Roland Häder [Wed, 13 Feb 2013 20:01:58 +0000 (20:01 +0000)]
Added stub method insertNodeList()
Roland Häder [Wed, 13 Feb 2013 19:46:05 +0000 (19:46 +0000)]
Used the same constant to allow later easy changes
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 [Wed, 13 Feb 2013 02:04:08 +0000 (02:04 +0000)]
Added parameter to set last thrown exception for status handling
Roland Häder [Wed, 13 Feb 2013 01:07:42 +0000 (01:07 +0000)]
Opps :(
Roland Häder [Tue, 12 Feb 2013 10:13:20 +0000 (10:13 +0000)]
Moved to generic class BaseHandler and interface Handleable
Roland Häder [Tue, 12 Feb 2013 10:07:48 +0000 (10:07 +0000)]
Half-implemented quering DHT for node list
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:45:33 +0000 (05:45 +0000)]
Opps :( #4
Roland Häder [Tue, 12 Feb 2013 05:44:35 +0000 (05:44 +0000)]
Opps :( #3
Roland Häder [Tue, 12 Feb 2013 05:43:42 +0000 (05:43 +0000)]
Opps :( #2
Roland Häder [Tue, 12 Feb 2013 05:42:57 +0000 (05:42 +0000)]
Opps :(
Roland Häder [Tue, 12 Feb 2013 05:42:05 +0000 (05:42 +0000)]
Encapsulated this code (as it is a better style)
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
Roland Häder [Tue, 12 Feb 2013 05:19:00 +0000 (05:19 +0000)]
No node_ prefix as it makes session id look-ups invalid
Roland Häder [Tue, 12 Feb 2013 04:56:37 +0000 (04:56 +0000)]
Always used own session id ... :(
Roland Häder [Tue, 12 Feb 2013 04:53:28 +0000 (04:53 +0000)]
Removed session id
Roland Häder [Sun, 10 Feb 2013 17:15:42 +0000 (17:15 +0000)]
Forgot these to fix, anyway that exception should not come :(
Roland Häder [Sun, 10 Feb 2013 17:11:36 +0000 (17:11 +0000)]
Resurrected two methods for DHT database wrapper and used them
Roland Häder [Sun, 10 Feb 2013 04:15:02 +0000 (04:15 +0000)]
'this' is not available in static methods, so get an own instance first
Roland Häder [Sun, 10 Feb 2013 04:11:16 +0000 (04:11 +0000)]
Use set DHT instance to shortcut a little
Roland Häder [Sun, 10 Feb 2013 03:37:52 +0000 (03:37 +0000)]
Ignore data in here
Roland Häder [Sun, 10 Feb 2013 03:17:27 +0000 (03:17 +0000)]
Introduced and implemented findNodeBySessionId()
Roland Häder [Sun, 10 Feb 2013 02:51:30 +0000 (02:51 +0000)]
Implemented (very basic) registerLocalNode() and updateLocalNode()
Roland Häder [Sat, 9 Feb 2013 18:52:14 +0000 (18:52 +0000)]
Introduced (cached) method ifNodeDataIsFound()
Roland Häder [Fri, 8 Feb 2013 18:06:52 +0000 (18:06 +0000)]
Added commented out option to enable intranet usage
Roland Häder [Fri, 8 Feb 2013 17:25:04 +0000 (17:25 +0000)]
Added optional (here used) parameter
Roland Häder [Fri, 8 Feb 2013 14:59:43 +0000 (14:59 +0000)]
Opps, missed this :(
Roland Häder [Fri, 8 Feb 2013 01:01:38 +0000 (01:01 +0000)]
Some typos
Roland Häder [Thu, 7 Feb 2013 23:55:23 +0000 (23:55 +0000)]
Protocol is no longer required for these methods
Roland Häder [Thu, 7 Feb 2013 22:50:09 +0000 (22:50 +0000)]
Added interface, rewrote some parts:
- Introduced interface UnitDatabaseWrapper
- Rewrote wrapper instanciation by using specialized object factory
- Some other minor rewrites/fixes
Roland Häder [Thu, 7 Feb 2013 21:36:13 +0000 (21:36 +0000)]
Rewrites, some more methods:
- Added missing database "table" 'node_dht'
- Added methods for local node data handling
- There is now no more need for separate TCP/UDP ports
Roland Häder [Thu, 7 Feb 2013 20:32:55 +0000 (20:32 +0000)]
Added prefix to allow more than one DHT instance
Roland Häder [Thu, 7 Feb 2013 20:15:11 +0000 (20:15 +0000)]
Extend DatabaseWrapper interface to make all database wrappers equal
Roland Häder [Thu, 7 Feb 2013 19:57:01 +0000 (19:57 +0000)]
Added wrapper, rewrites:
- Added database wrapper for node DHT
- Rewrote node_info_db wrapper to use special factory and not generic
Roland Häder [Thu, 7 Feb 2013 18:28:17 +0000 (18:28 +0000)]
Added DHT initialization task (see comments below):
- The DHT initialization task is for preparing the DHT (if not yet done) in a
very early state ("virgin" state) and inserts/updates node's current data as
the first entry. With this data the node "knowns" only itself, not even the
upper nodes. They will be added later on.
- Renamed instance 'task' to 'task_handler' as it is always a task handler
class
- Other minor improvements
Roland Häder [Wed, 6 Feb 2013 18:54:49 +0000 (18:54 +0000)]
Also set a DHT instance (same) in this class
Roland Häder [Mon, 4 Feb 2013 19:57:09 +0000 (19:57 +0000)]
The DHT query task is now holding an instance of the DHT facade (to speed-up things)
Roland Häder [Sun, 3 Feb 2013 05:58:03 +0000 (05:58 +0000)]
Some speed-up hacks
Roland Häder [Sat, 2 Feb 2013 00:18:35 +0000 (00:18 +0000)]
Renamed filter (no self_announcement, just plain announcement)
Roland Häder [Fri, 1 Feb 2013 23:05:34 +0000 (23:05 +0000)]
Opps ... :( #2
Roland Häder [Fri, 1 Feb 2013 23:04:58 +0000 (23:04 +0000)]
Opps ... :(
Roland Häder [Fri, 1 Feb 2013 23:02:37 +0000 (23:02 +0000)]
Added empty task for DHT bootstrapping
Roland Häder [Fri, 1 Feb 2013 22:52:26 +0000 (22:52 +0000)]
Opps, forgot this :(
Roland Häder [Fri, 1 Feb 2013 22:50:01 +0000 (22:50 +0000)]
Removed also deprecated queues/queries as there are now stacks
Roland Häder [Fri, 1 Feb 2013 10:38:27 +0000 (10:38 +0000)]
Removed deprecated array (very old code)
Roland Häder [Thu, 31 Jan 2013 23:04:26 +0000 (23:04 +0000)]
This is still okay
Roland Häder [Thu, 31 Jan 2013 22:44:04 +0000 (22:44 +0000)]
Classes moved/renamed:
- A lot classes 'HubFooBar' renamed to 'NodeFooBar'
- Added empty (flooding!) DHT query task
- TODOs.txt updated
Roland Häder [Thu, 31 Jan 2013 15:50:48 +0000 (15:50 +0000)]
This is a new idea to rewrite bootstrapping, the DHT will become an own task
Roland Häder [Thu, 31 Jan 2013 15:44:57 +0000 (15:44 +0000)]
Remove deprecated directory (it will be replaced by DHT)
Roland Häder [Thu, 31 Jan 2013 15:44:05 +0000 (15:44 +0000)]
Clear redundant database wrapper class as it is now done in DHT
Roland Häder [Wed, 30 Jan 2013 23:29:38 +0000 (23:29 +0000)]
Renamed
Roland Häder [Wed, 30 Jan 2013 23:06:33 +0000 (23:06 +0000)]
Also set this to '.xml' to speed-up things a little
Roland Häder [Wed, 30 Jan 2013 22:54:30 +0000 (22:54 +0000)]
Added possible way of adding a node list to this template
Roland Häder [Wed, 30 Jan 2013 22:37:04 +0000 (22:37 +0000)]
Added missing but not yet fully implemented class
Roland Häder [Wed, 30 Jan 2013 22:26:37 +0000 (22:26 +0000)]
Added it also here :(
Roland Häder [Wed, 30 Jan 2013 22:20:15 +0000 (22:20 +0000)]
Re-added answer_status generically
Roland Häder [Wed, 30 Jan 2013 21:50:32 +0000 (21:50 +0000)]
Removed it also here ...
Roland Häder [Wed, 30 Jan 2013 21:48:53 +0000 (21:48 +0000)]
Field answer_status becomes more generic now
Roland Häder [Wed, 30 Jan 2013 21:29:55 +0000 (21:29 +0000)]
Added answer status
Roland Häder [Wed, 30 Jan 2013 21:23:06 +0000 (21:23 +0000)]
Removed answer-status from XML templates as it will become generic
Roland Häder [Wed, 30 Jan 2013 21:18:17 +0000 (21:18 +0000)]
Added missing array elements for tag filter
Roland Häder [Wed, 30 Jan 2013 21:06:46 +0000 (21:06 +0000)]
Don't use 'my-' as long as you don't need it
Roland Häder [Wed, 30 Jan 2013 20:42:18 +0000 (20:42 +0000)]
Added handling methods, implemented configuration copy/removal methods
Roland Häder [Wed, 30 Jan 2013 20:17:00 +0000 (20:17 +0000)]
Added basic XML elements (not all fully supported)
Roland Häder [Wed, 30 Jan 2013 19:59:24 +0000 (19:59 +0000)]
Added more debug lines (noisy)
Roland Häder [Thu, 20 Dec 2012 22:59:35 +0000 (22:59 +0000)]
Use createDebugInstance() instead of direct debugOutput() method, removed DHT instance as it will be moved to some other place (where it would make sense)
Roland Häder [Thu, 20 Dec 2012 22:32:32 +0000 (22:32 +0000)]
Used correct method name
Roland Häder [Thu, 20 Dec 2012 21:41:41 +0000 (21:41 +0000)]
Global fix for generating right class name for controller resolver (to make that code part more generic and later move out to 'core' project as a new class/method)
Roland Häder [Thu, 20 Dec 2012 21:31:42 +0000 (21:31 +0000)]
Ignore all here
Roland Häder [Thu, 20 Dec 2012 21:18:49 +0000 (21:18 +0000)]
Updated ApplicationHelper class to latest API
Roland Häder [Tue, 13 Nov 2012 22:45:32 +0000 (22:45 +0000)]
Updated TODOs.txt
Roland Häder [Mon, 12 Nov 2012 17:11:14 +0000 (17:11 +0000)]
The old state check was still required here, so re-add it
Roland Häder [Mon, 12 Nov 2012 17:06:00 +0000 (17:06 +0000)]
Better check against if the node has completed announcement
Roland Häder [Mon, 12 Nov 2012 01:38:26 +0000 (01:38 +0000)]
Project 'hub' continued (a little):
- Added missing class constant
- Added missing exception NoRequestNodeListAttemptedException
- Added debug lines
Roland Häder [Fri, 9 Nov 2012 19:16:31 +0000 (19:16 +0000)]
Renamed to avoid confusion
Roland Häder [Fri, 9 Nov 2012 19:13:18 +0000 (19:13 +0000)]
Renamed interface 'Dht' to 'Distributable' (sorry for being inactive here)
Roland Häder [Tue, 18 Sep 2012 13:54:22 +0000 (13:54 +0000)]
Used str_pad() instead of prependStringToString()
Roland Häder [Fri, 31 Aug 2012 22:10:35 +0000 (22:10 +0000)]
Minor: Updated todo
Roland Häder [Fri, 31 Aug 2012 21:47:44 +0000 (21:47 +0000)]
Renamed methods
Roland Häder [Mon, 27 Aug 2012 22:20:45 +0000 (22:20 +0000)]
Added (unfinished) DHT class
Roland Häder [Sun, 26 Aug 2012 21:46:00 +0000 (21:46 +0000)]
Refactured random string generation to introduced method generateRamdomString()
Roland Häder [Sun, 26 Aug 2012 20:52:08 +0000 (20:52 +0000)]
Introduced DHT (maybe own implementation, maybe Kademlia, who knows?). In the next time all direct calls to the node list wrapper class will be rewritten to use a more easy interface from the DHT class
Roland Häder [Sun, 26 Aug 2012 20:23:48 +0000 (20:23 +0000)]
MINOR: Copy&pastwe mistage fixed
Roland Häder [Sun, 26 Aug 2012 20:18:38 +0000 (20:18 +0000)]
No need for calling ->getTemplateInstance() if is in same scope
Roland Häder [Sun, 26 Aug 2012 20:11:47 +0000 (20:11 +0000)]
Added nodeInstance parameter (NodeHelper interface) to all loadDescriptorXml() methods (and interface) to allow access on its methods without using the factory
Roland Häder [Sun, 26 Aug 2012 19:50:14 +0000 (19:50 +0000)]
Added missing config entries
Roland Häder [Sun, 26 Aug 2012 19:46:57 +0000 (19:46 +0000)]
Opps :(
Roland Häder [Sun, 26 Aug 2012 19:45:38 +0000 (19:45 +0000)]
Added template class for entries in a request-node-list
Roland Häder [Sun, 26 Aug 2012 15:29:22 +0000 (15:29 +0000)]
Added very basic documentation for apt-proxy, other minor fixes
Roland Häder [Sun, 26 Aug 2012 15:05:32 +0000 (15:05 +0000)]
Added unfinished template engine to handle answer message on request-node-list message
Roland Häder [Sun, 26 Aug 2012 14:55:34 +0000 (14:55 +0000)]
Introduced experimental apt-proxy sub project (a connector for apt-proxy usage into node network)
Roland Häder [Sun, 26 Aug 2012 11:43:37 +0000 (11:43 +0000)]
Removed comments as they are no longer needed, added answer object type
Roland Häder [Sun, 26 Aug 2012 11:41:38 +0000 (11:41 +0000)]
Full backtrace now
Roland Häder [Sun, 26 Aug 2012 11:41:17 +0000 (11:41 +0000)]
Don't forget 'answer' for message answers
Roland Häder [Wed, 22 Aug 2012 21:33:49 +0000 (21:33 +0000)]
Updated class template for XML template engine classes
Roland Häder [Wed, 22 Aug 2012 21:31:59 +0000 (21:31 +0000)]
Added missing config entries and XML (unfinished)
Roland Häder [Wed, 22 Aug 2012 21:24:43 +0000 (21:24 +0000)]
Also this file doesn't match and cannot be loaded with generic loadXmlTemplate() method