]>
git.mxchange.org Git - hub.git/log
Roland Haeder [Fri, 28 Mar 2014 19:25:19 +0000 (20:25 +0100)]
Removed if() block ("cache") + added some debug lines.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Wed, 26 Mar 2014 19:34:29 +0000 (20:34 +0100)]
Some cleanups + created a "late bootstrap" task for DHTs:
- deleted no longer used classes (NodeDhtFooTask are used)
- added class for "late bootstrapping" of DHTs which will be used by all nodes
except 'boot'. This task will be started after the announcement answer came
back from the "upper nodes".
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Wed, 26 Mar 2014 19:10:17 +0000 (20:10 +0100)]
Allow 'init' state for bootstrap nodes.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Wed, 26 Mar 2014 18:57:48 +0000 (19:57 +0100)]
Added in last commit missing files.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Wed, 26 Mar 2014 18:47:44 +0000 (19:47 +0100)]
Continued 'hub' project:
- added public method addExtraTasks() to allow node-specific tasks
- such task is 'dht_bootstrap' for bootstrap nodes as they also need (and can)
bootstrap their DHT
- removed .gitattributes (from Subversion->GIT transition)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 25 Mar 2014 22:12:18 +0000 (23:12 +0100)]
Added logger for raw pending data.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 25 Mar 2014 21:49:50 +0000 (22:49 +0100)]
This assertion cannot work here as a new node has no entry in the DHT (bad copy-paste stuff).
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 25 Mar 2014 21:44:32 +0000 (22:44 +0100)]
Merge branch 'master' of git.mxchange.org:/var/cache/git/repos/hub
Roland Haeder [Tue, 25 Mar 2014 21:39:07 +0000 (22:39 +0100)]
Continued:
- improved logging messages
- added logger for enableAcceptDhtBootstrap()
- moved this call from 'virigin' state to 'booting' as on 'virigin' state the DHT has
no records registered. This may require reconsidering.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 25 Mar 2014 21:39:07 +0000 (22:39 +0100)]
Continued:
- improved logging messages
- added logger for enableAcceptDhtBootstrap()
- moved this call from 'init' state to 'booting' as on 'init' state the DHT has
no records registered. This may require reconsidering.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 25 Mar 2014 21:28:02 +0000 (22:28 +0100)]
One is enough.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 20 Mar 2014 20:36:54 +0000 (21:36 +0100)]
Introduced enableAcceptDhtBootstrap() + updated core.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 18 Mar 2014 22:58:49 +0000 (23:58 +0100)]
Renamed method to make it more clear.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 18 Mar 2014 22:46:41 +0000 (23:46 +0100)]
Continued with DHT stuff:
- added a very generic way to query the local DHT for key/value matches
- used this way to look for DHT nodes accepting bootstrap requests.
- renamed method DhtObjectFactory::createDhtObjectInstance to createDhtInstance
to match with its getter/setter mates.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 22:28:28 +0000 (23:28 +0100)]
Setting the node instance in the handler saves another array element in
$messageArray and makes it a little faster because the "expensive" registry
calls are not used.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 22:08:53 +0000 (23:08 +0100)]
Bad find-replace.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 22:07:24 +0000 (23:07 +0100)]
No 'this' in static methods. ;-)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 22:05:53 +0000 (23:05 +0100)]
Had to move more code into factory.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 21:49:16 +0000 (22:49 +0100)]
Introduced NodeObjectFactory to encapsulate (and ease) a lot calls.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 20:14:21 +0000 (21:14 +0100)]
Introduced ifDhtIsBooting(), updated TODOs.txt
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 19:56:53 +0000 (20:56 +0100)]
Fixed array element usage
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 17 Mar 2014 19:39:25 +0000 (20:39 +0100)]
Removed usage of array elements that are never transmitted.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Mar 2014 20:47:11 +0000 (21:47 +0100)]
Added missing config entry + unfinished class NodeMessageDhtBootstrapAnswerHandler
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Mar 2014 20:34:22 +0000 (21:34 +0100)]
Should be the correct name.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Mar 2014 20:30:42 +0000 (21:30 +0100)]
Renamed
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Mar 2014 20:29:36 +0000 (21:29 +0100)]
Added missing config entry.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Mar 2014 20:25:55 +0000 (21:25 +0100)]
No invert here.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Sun, 16 Mar 2014 20:16:24 +0000 (21:16 +0100)]
Fixed parser error.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Mar 2014 20:16:31 +0000 (21:16 +0100)]
Implemented handleMultipleMessages()
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 23:59:01 +0000 (00:59 +0100)]
Added unfinished stuff for multiple messages.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 23:46:03 +0000 (00:46 +0100)]
Fixed exception.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 23:44:31 +0000 (00:44 +0100)]
Renamed file to match convention.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 23:42:55 +0000 (00:42 +0100)]
Renamed (fixed some stuff).
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 23:40:55 +0000 (00:40 +0100)]
Fixed names.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 23:37:06 +0000 (00:37 +0100)]
Renamed path + fixed stacker names + added some missing entries.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 23:21:01 +0000 (00:21 +0100)]
Wrong name for XML node.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:53:52 +0000 (23:53 +0100)]
Reverted, not here.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:52:38 +0000 (23:52 +0100)]
Also this was possibly missing.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:49:23 +0000 (23:49 +0100)]
Added possibly missing entry.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:43:50 +0000 (23:43 +0100)]
Commented in again as this is needed for debugging dht-bootstrap requests.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:15:05 +0000 (23:15 +0100)]
Added missing class for dht_bootstrap_answert "tag" (aka. object type).
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:08:39 +0000 (23:08 +0100)]
Also this was badly named (missed 's')
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:07:22 +0000 (23:07 +0100)]
Fixed name of XML node.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 22:05:47 +0000 (23:05 +0100)]
Added missing XML node 'dht-node-list' + object type 'dht_bootstrap_answer.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 23:18:29 +0000 (00:18 +0100)]
No object type list in DHT bootstraps.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 22:44:07 +0000 (23:44 +0100)]
Opps. :(
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 22:40:02 +0000 (23:40 +0100)]
Nope, wasn't working.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 22:37:27 +0000 (23:37 +0100)]
Renamed methods ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 22:34:40 +0000 (23:34 +0100)]
Added check for NULL + renamed XML nodes.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 22:00:17 +0000 (23:00 +0100)]
Added again another missing config entry.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 21:57:22 +0000 (22:57 +0100)]
Merge branch 'master' of git.mxchange.org:/var/cache/git/repos/hub
Roland Haeder [Fri, 14 Mar 2014 21:57:53 +0000 (22:57 +0100)]
Renamed path 'dht' to 'dht_bootstrap'.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 21:50:12 +0000 (22:50 +0100)]
Added missing config entry for template "type" (path + template name).
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 21:48:46 +0000 (22:48 +0100)]
Added missing config entry for stacker. :-)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 21:44:49 +0000 (22:44 +0100)]
Added missing answer message handler for DHT bootstrap requests.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Fri, 14 Mar 2014 21:39:05 +0000 (22:39 +0100)]
Added missing config entry.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 21:35:29 +0000 (22:35 +0100)]
Added support for visiting package assembler which will e.g. clear pending data on shut down stockets or handle multiple messages.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 21:13:52 +0000 (22:13 +0100)]
Added incomplete handling of multiple messages.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 20:51:39 +0000 (21:51 +0100)]
Noisy debug line added + check if start and end markers are set.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 20:38:26 +0000 (21:38 +0100)]
Must be a FILO (First In, Last Out).
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 20:09:22 +0000 (21:09 +0100)]
Some stuff needs to be renamed to match better naming: 'announced' is not true
at this state as the node is currently trying to announce itself. So
'announcing' fits the exact state.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 20:01:51 +0000 (21:01 +0100)]
Surpress errors/warnings for socket_write as they flood the later logfiles, added missing handler method for socket error.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 14 Mar 2014 19:58:17 +0000 (20:58 +0100)]
Opps, wrong place and value for this.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 13 Mar 2014 22:23:10 +0000 (23:23 +0100)]
Refactured sending encoded (raw) data to sockets to a stacker-based approach.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Wed, 12 Mar 2014 20:14:03 +0000 (21:14 +0100)]
Continued:
- renamed a method to make its purpose more clear
- moved code into if() block as the code is only used there
- added an assert to make sure valid object instances are used
- plus another assert on a required array element
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 2 Mar 2014 14:54:49 +0000 (15:54 +0100)]
Added method to allow DHT bootstrap requests.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 2 Mar 2014 14:33:41 +0000 (15:33 +0100)]
Commented out noisy debug line.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 21 Feb 2014 20:44:39 +0000 (21:44 +0100)]
Improved a lot logger.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 21 Feb 2014 20:35:30 +0000 (21:35 +0100)]
The final hash must be used as an array key for serial numbers, else some packages will end up with hashes from other packages.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Thu, 20 Feb 2014 22:01:46 +0000 (23:01 +0100)]
Added missing exceptions + updated some text + renamed (still unimplemented) method.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Thu, 20 Feb 2014 21:51:19 +0000 (22:51 +0100)]
Added missing template engine for DHT bootstrap requests + corresponding XML.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland 'Quix0r' Haeder [Thu, 20 Feb 2014 21:45:19 +0000 (22:45 +0100)]
Added missing config entry, renamed path + added unfinished (duplicated) class for DHT bootstrap message handling.
Signed-off-by: Roland 'Quix0r' Haeder <roland@mxchange.org>
Roland Haeder [Thu, 20 Feb 2014 21:33:04 +0000 (22:33 +0100)]
Added missing config entry.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 20 Feb 2014 21:31:04 +0000 (22:31 +0100)]
Fixed.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 20 Feb 2014 21:28:56 +0000 (22:28 +0100)]
Wrongly named + more debug log.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 20 Feb 2014 21:17:54 +0000 (22:17 +0100)]
Adding debug log.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 18 Feb 2014 21:25:10 +0000 (22:25 +0100)]
Renamed to fit naming convention.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 18 Feb 2014 21:23:01 +0000 (22:23 +0100)]
Added missing class PackageDhtBootstrapTagFilter and config entry.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 18:02:50 +0000 (19:02 +0100)]
Added assert + more debug logging.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 17:59:58 +0000 (18:59 +0100)]
Opps, 2 parameters are required.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 17:57:44 +0000 (18:57 +0100)]
Log asserts.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 01:23:00 +0000 (02:23 +0100)]
Publication of DHT entries requires a fully booted DHT as else it will only find itself.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 01:11:43 +0000 (02:11 +0100)]
Commented more debug lines out and other cleanups.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 01:08:10 +0000 (02:08 +0100)]
decodedData is an array and needs some assertitions on array elements.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 01:06:17 +0000 (02:06 +0100)]
Opps ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 01:01:45 +0000 (02:01 +0100)]
This causes a lot debug output, but why does it not work?
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:57:35 +0000 (01:57 +0100)]
Add the chunk handler instance and not the stacker, else two stacker instances will be used which doesn't work.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:43:28 +0000 (01:43 +0100)]
And another one ... ;-)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:41:25 +0000 (01:41 +0100)]
Added new debug lines, commented previously used out as the bug is not there.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:32:42 +0000 (01:32 +0100)]
One was to noisy, added another.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:30:46 +0000 (01:30 +0100)]
More debug lines added.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:28:03 +0000 (01:28 +0100)]
And the next lines.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:27:20 +0000 (01:27 +0100)]
Also commented these out as they can become noisy.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:23:55 +0000 (01:23 +0100)]
These are unimportant, too.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:19:53 +0000 (01:19 +0100)]
Also commented these out as the bug is not located here.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:17:40 +0000 (01:17 +0100)]
Also the bug is not located here.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:16:17 +0000 (01:16 +0100)]
Added another debug line + commented others out, the bug is not located at those lines.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:11:44 +0000 (01:11 +0100)]
And how about here? Sorry not to add all at once. ;-)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:10:58 +0000 (01:10 +0100)]
Did the code go here?
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 16 Feb 2014 00:08:23 +0000 (01:08 +0100)]
Did this loop work?
Signed-off-by: Roland Haeder <roland@mxchange.org>