]> git.mxchange.org Git - hub.git/log
hub.git
11 years agotrue->TRUE, node id included in session id/private key generation
Roland Häder [Fri, 22 Feb 2013 06:33:05 +0000 (06:33 +0000)]
true->TRUE, node id included in session id/private key generation

11 years agoNow correct class :(
Roland Häder [Fri, 22 Feb 2013 05:34:42 +0000 (05:34 +0000)]
Now correct class :(

11 years agoUsed correct method
Roland Häder [Fri, 22 Feb 2013 05:31:56 +0000 (05:31 +0000)]
Used correct method

11 years agoAdded new task for package tags (object registry):
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

11 years agoAlso include accepted node types from own node
Roland Häder [Fri, 22 Feb 2013 04:16:20 +0000 (04:16 +0000)]
Also include accepted node types from own node

11 years agoAlso these ...
Roland Häder [Fri, 22 Feb 2013 04:10:49 +0000 (04:10 +0000)]
Also these ...

11 years agoExpanded debug lines, renamed 'node_type' to 'node_mode' (which makes your DHT databa...
Roland Häder [Fri, 22 Feb 2013 04:09:19 +0000 (04:09 +0000)]
Expanded debug lines, renamed 'node_type' to 'node_mode' (which makes your DHT database corrupt)

11 years agoFix
Roland Häder [Fri, 22 Feb 2013 04:03:14 +0000 (04:03 +0000)]
Fix

11 years agoAdded 'booting' DHT state
Roland Häder [Fri, 22 Feb 2013 04:01:07 +0000 (04:01 +0000)]
Added 'booting' DHT state

11 years agoAlso check for node id to have full match, this requires you to remove all *.serializ...
Roland Häder [Fri, 22 Feb 2013 03:49:02 +0000 (03:49 +0000)]
Also check for node id to have full match, this requires you to remove all *.serialized in db/node_data and db/node_dht/

11 years agoNeed this back for bug tracking
Roland Häder [Fri, 22 Feb 2013 01:18:29 +0000 (01:18 +0000)]
Need this back for bug tracking

11 years agoRemember searchInstance here
Roland Häder [Fri, 22 Feb 2013 00:59:32 +0000 (00:59 +0000)]
Remember searchInstance here

11 years agoTypo fixed
Roland Häder [Thu, 21 Feb 2013 23:50:27 +0000 (23:50 +0000)]
Typo fixed

11 years ago'virigin' is now the correct state at this point
Roland Häder [Thu, 21 Feb 2013 23:49:27 +0000 (23:49 +0000)]
'virigin' is now the correct state at this point

11 years agoUPPER is okay
Roland Häder [Thu, 21 Feb 2013 23:44:49 +0000 (23:44 +0000)]
UPPER is okay

11 years agoOpps, wrong constant name
Roland Häder [Thu, 21 Feb 2013 23:41:57 +0000 (23:41 +0000)]
Opps, wrong constant name

11 years agoCommented out noisy debug lines
Roland Häder [Thu, 21 Feb 2013 23:36:29 +0000 (23:36 +0000)]
Commented out noisy debug lines

11 years agoDon't use empty here, always [NetworkPackage::PACKAGE_DATA_RECIPIENT]
Roland Häder [Thu, 21 Feb 2013 23:34:26 +0000 (23:34 +0000)]
Don't use empty here, always [NetworkPackage::PACKAGE_DATA_RECIPIENT]

11 years agoAdded noisy debug lines, used constants defined in NetworkPackage instead of direct...
Roland Häder [Thu, 21 Feb 2013 23:32:43 +0000 (23:32 +0000)]
Added noisy debug lines, used constants defined in NetworkPackage instead of direct 'foo', 'bar' et cetera

11 years agoOpps :(
Roland Häder [Thu, 21 Feb 2013 23:28:26 +0000 (23:28 +0000)]
Opps :(

11 years agoAdded required assert() to make sure that the requested data in the array is availabl...
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)

11 years agoTry to assert on all virtual recipients
Roland Häder [Mon, 18 Feb 2013 06:02:20 +0000 (06:02 +0000)]
Try to assert on all virtual recipients

11 years agoIntroduced Recipient implentation classes:
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)

11 years agoRegister dht_bootstrap in object registry so it will be reconnized
Roland Häder [Mon, 18 Feb 2013 04:27:19 +0000 (04:27 +0000)]
Register dht_bootstrap in object registry so it will be reconnized

11 years agoAdded missing XML nodes (copied from announcement.xml as this is currently the same...
Roland Häder [Mon, 18 Feb 2013 04:23:00 +0000 (04:23 +0000)]
Added missing XML nodes (copied from announcement.xml as this is currently the same data but for different purpose)

11 years agoAdded missing XML, config entries for DHT bootstrap
Roland Häder [Sun, 17 Feb 2013 22:40:05 +0000 (22:40 +0000)]
Added missing XML, config entries for DHT bootstrap

11 years agoFix for parser error
Roland Häder [Sun, 17 Feb 2013 22:17:00 +0000 (22:17 +0000)]
Fix for parser error

11 years agoCommented out noisy debug lines
Roland Häder [Thu, 14 Feb 2013 22:59:07 +0000 (22:59 +0000)]
Commented out noisy debug lines

11 years agoAdded 'active' state for DHTs
Roland Häder [Thu, 14 Feb 2013 22:50:55 +0000 (22:50 +0000)]
Added 'active' state for DHTs

11 years agoAdded very basic implementation of updateDhtData()
Roland Häder [Thu, 14 Feb 2013 22:46:09 +0000 (22:46 +0000)]
Added very basic implementation of updateDhtData()

11 years agoFixed wrong super classes
Roland Häder [Thu, 14 Feb 2013 22:26:58 +0000 (22:26 +0000)]
Fixed wrong super classes

11 years agoAdded missing 'package tags'
Roland Häder [Thu, 14 Feb 2013 22:23:40 +0000 (22:23 +0000)]
Added missing 'package tags'

11 years agoRenamed/moved classes, added DHT bootstrap (very early):
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

11 years agoAdded very basic implementation of DHT bootstrapping (there are some configuration...
Roland Häder [Thu, 14 Feb 2013 21:58:55 +0000 (21:58 +0000)]
Added very basic implementation of DHT bootstrapping (there are some configuration entries and classes missing)

11 years agoRewritten remaining (old) debug calls:
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

11 years agoCommented out some noisy debug lines
Roland Häder [Wed, 13 Feb 2013 20:18:14 +0000 (20:18 +0000)]
Commented out some noisy debug lines

11 years agoAdded stub method insertNodeList()
Roland Häder [Wed, 13 Feb 2013 20:01:58 +0000 (20:01 +0000)]
Added stub method insertNodeList()

11 years agoUsed the same constant to allow later easy changes
Roland Häder [Wed, 13 Feb 2013 19:46:05 +0000 (19:46 +0000)]
Used the same constant to allow later easy changes

11 years agoRenamed method:
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

11 years agoAdded parameter to set last thrown exception for status handling
Roland Häder [Wed, 13 Feb 2013 02:04:08 +0000 (02:04 +0000)]
Added parameter  to set last thrown exception for status handling

11 years agoOpps :(
Roland Häder [Wed, 13 Feb 2013 01:07:42 +0000 (01:07 +0000)]
Opps :(

11 years agoMoved to generic class BaseHandler and interface Handleable
Roland Häder [Tue, 12 Feb 2013 10:13:20 +0000 (10:13 +0000)]
Moved to generic class BaseHandler and interface Handleable

11 years agoHalf-implemented quering DHT for node list
Roland Häder [Tue, 12 Feb 2013 10:07:48 +0000 (10:07 +0000)]
Half-implemented quering DHT for node list

11 years agoRewrites:
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

11 years agoOpps :( #4
Roland Häder [Tue, 12 Feb 2013 05:45:33 +0000 (05:45 +0000)]
Opps :( #4

11 years agoOpps :( #3
Roland Häder [Tue, 12 Feb 2013 05:44:35 +0000 (05:44 +0000)]
Opps :( #3

11 years agoOpps :( #2
Roland Häder [Tue, 12 Feb 2013 05:43:42 +0000 (05:43 +0000)]
Opps :( #2

11 years agoOpps :(
Roland Häder [Tue, 12 Feb 2013 05:42:57 +0000 (05:42 +0000)]
Opps :(

11 years agoEncapsulated this code (as it is a better style)
Roland Häder [Tue, 12 Feb 2013 05:42:05 +0000 (05:42 +0000)]
Encapsulated this code (as it is a better style)

11 years agoSome rewrites towards more flexible code:
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

11 years agoNo node_ prefix as it makes session id look-ups invalid
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

11 years agoAlways used own session id ... :(
Roland Häder [Tue, 12 Feb 2013 04:56:37 +0000 (04:56 +0000)]
Always used own session id ... :(

11 years agoRemoved session id
Roland Häder [Tue, 12 Feb 2013 04:53:28 +0000 (04:53 +0000)]
Removed session id

11 years agoForgot these to fix, anyway that exception should not come :(
Roland Häder [Sun, 10 Feb 2013 17:15:42 +0000 (17:15 +0000)]
Forgot these to fix, anyway that exception should not come :(

11 years agoResurrected two methods for DHT database wrapper and used them
Roland Häder [Sun, 10 Feb 2013 17:11:36 +0000 (17:11 +0000)]
Resurrected two methods for DHT database wrapper and used them

11 years ago'this' is not available in static methods, so get an own instance first
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

11 years agoUse set DHT instance to shortcut a little
Roland Häder [Sun, 10 Feb 2013 04:11:16 +0000 (04:11 +0000)]
Use set DHT instance to shortcut a little

11 years agoIgnore data in here
Roland Häder [Sun, 10 Feb 2013 03:37:52 +0000 (03:37 +0000)]
Ignore data in here

11 years agoIntroduced and implemented findNodeBySessionId()
Roland Häder [Sun, 10 Feb 2013 03:17:27 +0000 (03:17 +0000)]
Introduced and implemented findNodeBySessionId()

11 years agoImplemented (very basic) registerLocalNode() and updateLocalNode()
Roland Häder [Sun, 10 Feb 2013 02:51:30 +0000 (02:51 +0000)]
Implemented (very basic) registerLocalNode() and updateLocalNode()

11 years agoIntroduced (cached) method ifNodeDataIsFound()
Roland Häder [Sat, 9 Feb 2013 18:52:14 +0000 (18:52 +0000)]
Introduced (cached) method ifNodeDataIsFound()

11 years agoAdded commented out option to enable intranet usage
Roland Häder [Fri, 8 Feb 2013 18:06:52 +0000 (18:06 +0000)]
Added commented out option to enable intranet usage

11 years agoAdded optional (here used) parameter
Roland Häder [Fri, 8 Feb 2013 17:25:04 +0000 (17:25 +0000)]
Added optional (here used)  parameter

11 years agoOpps, missed this :(
Roland Häder [Fri, 8 Feb 2013 14:59:43 +0000 (14:59 +0000)]
Opps, missed this :(

11 years agoSome typos
Roland Häder [Fri, 8 Feb 2013 01:01:38 +0000 (01:01 +0000)]
Some typos

11 years agoProtocol is no longer required for these methods
Roland Häder [Thu, 7 Feb 2013 23:55:23 +0000 (23:55 +0000)]
Protocol is no longer required for these methods

11 years agoAdded interface, rewrote some parts:
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

11 years agoRewrites, some more methods:
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

11 years agoAdded prefix to allow more than one DHT instance
Roland Häder [Thu, 7 Feb 2013 20:32:55 +0000 (20:32 +0000)]
Added prefix to allow more than one DHT instance

11 years agoExtend DatabaseWrapper interface to make all database wrappers equal
Roland Häder [Thu, 7 Feb 2013 20:15:11 +0000 (20:15 +0000)]
Extend DatabaseWrapper interface to make all database wrappers equal

11 years agoAdded wrapper, rewrites:
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

11 years agoAdded DHT initialization task (see comments below):
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

11 years agoAlso set a DHT instance (same) in this class
Roland Häder [Wed, 6 Feb 2013 18:54:49 +0000 (18:54 +0000)]
Also set a DHT instance (same) in this class

11 years agoThe DHT query task is now holding an instance of the DHT facade (to speed-up things)
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)

11 years agoSome speed-up hacks
Roland Häder [Sun, 3 Feb 2013 05:58:03 +0000 (05:58 +0000)]
Some speed-up hacks

11 years agoRenamed filter (no self_announcement, just plain announcement)
Roland Häder [Sat, 2 Feb 2013 00:18:35 +0000 (00:18 +0000)]
Renamed filter (no self_announcement, just plain announcement)

11 years agoOpps ... :( #2
Roland Häder [Fri, 1 Feb 2013 23:05:34 +0000 (23:05 +0000)]
Opps ... :( #2

11 years agoOpps ... :(
Roland Häder [Fri, 1 Feb 2013 23:04:58 +0000 (23:04 +0000)]
Opps ... :(

11 years agoAdded empty task for DHT bootstrapping
Roland Häder [Fri, 1 Feb 2013 23:02:37 +0000 (23:02 +0000)]
Added empty task for DHT bootstrapping

11 years agoOpps, forgot this :(
Roland Häder [Fri, 1 Feb 2013 22:52:26 +0000 (22:52 +0000)]
Opps, forgot this :(

11 years agoRemoved also deprecated queues/queries as there are now stacks
Roland Häder [Fri, 1 Feb 2013 22:50:01 +0000 (22:50 +0000)]
Removed also deprecated queues/queries as there are now stacks

11 years agoRemoved deprecated array (very old code)
Roland Häder [Fri, 1 Feb 2013 10:38:27 +0000 (10:38 +0000)]
Removed deprecated array (very old code)

11 years agoThis is still okay
Roland Häder [Thu, 31 Jan 2013 23:04:26 +0000 (23:04 +0000)]
This is still okay

11 years agoClasses moved/renamed:
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

11 years agoThis is a new idea to rewrite bootstrapping, the DHT will become an own task
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

11 years agoRemove deprecated directory (it will be replaced by DHT)
Roland Häder [Thu, 31 Jan 2013 15:44:57 +0000 (15:44 +0000)]
Remove deprecated directory (it will be replaced by DHT)

11 years agoClear redundant database wrapper class as it is now done in 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

11 years agoRenamed
Roland Häder [Wed, 30 Jan 2013 23:29:38 +0000 (23:29 +0000)]
Renamed

11 years agoAlso set this to '.xml' to speed-up things a little
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

11 years agoAdded possible way of adding a node list to this template
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

11 years agoAdded missing but not yet fully implemented class
Roland Häder [Wed, 30 Jan 2013 22:37:04 +0000 (22:37 +0000)]
Added missing but not yet fully implemented class

11 years agoAdded it also here :(
Roland Häder [Wed, 30 Jan 2013 22:26:37 +0000 (22:26 +0000)]
Added it also here :(

11 years agoRe-added answer_status generically
Roland Häder [Wed, 30 Jan 2013 22:20:15 +0000 (22:20 +0000)]
Re-added answer_status generically

11 years agoRemoved it also here ...
Roland Häder [Wed, 30 Jan 2013 21:50:32 +0000 (21:50 +0000)]
Removed it also here ...

11 years agoField answer_status becomes more generic now
Roland Häder [Wed, 30 Jan 2013 21:48:53 +0000 (21:48 +0000)]
Field answer_status becomes more generic now

11 years agoAdded answer status
Roland Häder [Wed, 30 Jan 2013 21:29:55 +0000 (21:29 +0000)]
Added answer status

11 years agoRemoved answer-status from XML templates as it will become generic
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

11 years agoAdded missing array elements for tag filter
Roland Häder [Wed, 30 Jan 2013 21:18:17 +0000 (21:18 +0000)]
Added missing array elements for tag filter

11 years agoDon't use 'my-' as long as you don't need it
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

11 years agoAdded handling methods, implemented configuration copy/removal methods
Roland Häder [Wed, 30 Jan 2013 20:42:18 +0000 (20:42 +0000)]
Added handling methods, implemented configuration copy/removal methods