Roland Haeder [Sun, 24 May 2015 18:14:53 +0000 (20:14 +0200)]
The package hash needs to be copied to the message array as it needs to be
handled over to the miner after the message (e.g. initial announcement message)
has been processed and handled.
For example, when the node is booting, the announcement will contain the node
id. The node id is required to assign the "mining reward" to the proper node
again. Because of this, the announcement message must be handled before the
hash is being handled over to the miner.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 22:07:26 +0000 (00:07 +0200)]
Continued:
- Removed 'shutdown' methods as the new 'core' provides it
- Added missing method assignExtraTemplateData()
- Updated 'core' to latest commit
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Mon, 30 Mar 2015 00:03:10 +0000 (02:03 +0200)]
Fixed a lot broken stuff:
- All handler (expanding BaseHandler) and task classes no longer extends
BaseHubSystem which caused missing setters and getters. Yes, it is stupid
to set a log instances as this way these classes are interlocked more
tighter. Better is to have them more indepently from each other.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 18:19:32 +0000 (19:19 +0100)]
Output system is now no longer initialized by loading a centralized
inc/output.php as this was a stupid idea and sometimes the same application
has a console and web part.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sat, 21 Mar 2015 21:14:16 +0000 (22:14 +0100)]
Checked change of access level protected -> private:
- All class fields must be private and *should always* have protected setters
as changing "internal" fields (data, in particular object instances) can lead
to unexpected behaviour and then it is *very, very* hard to trace those bugs.
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Wed, 18 Mar 2015 00:40:49 +0000 (01:40 +0100)]
Small rewrite for better use of closeFile():
- closeFile() is now no longer be callable publicly. If a file needs to be
closed, it can simply be set to NULL (or unset). Class fields which points to
such objects (e.g. pointerInstance) should always be set to NULL and not
removed as this may cause checks with is_null() to trigger an E_NOTICE:
<?php
error_reporting(E_ALL);
class Object {}
$var = new Object();
$isNull = is_null($var);
var_dump($isNull);
unset($var);
$isNull = is_null($var);
var_dump($isNull);
?>
Being set to NULL or completly unset is a different thing.
- Updated 'core' to latest commit
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sat, 7 Mar 2015 22:07:11 +0000 (23:07 +0100)]
Continued with crawler:
- Added class constant STACKER_NAME_URLS for stacker name 'urls'
- enrichCrawlerQueueData() is still unfinished as there *must* be added more entries
- Updated 'core' to latest commit
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sat, 7 Mar 2015 18:18:44 +0000 (19:18 +0100)]
Continued with crawler:
- initUrlSourceTask() cannot be called in constructor as this would lead to a
missing entry in seachTask() method
- Renamed crawler classes from *UrlGetterTask to *UrlCrawlerTask
- Added new field urlSourceInstance which requires an interface UrlSource
- TODOs.txt updated
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sat, 7 Mar 2015 17:54:54 +0000 (18:54 +0100)]
Continued with crawler:
- Renamed method processStack() to fillUrlStack() to reflect its purpose
- Added isUrlStackEmpty() to interface as it is now public
- Added new base class BaseUrlSourceTask which will initialize all such tasks
by creating the proper URL source instance
- Contants belong to top of classes
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 6 Mar 2015 23:26:35 +0000 (00:26 +0100)]
Continued with crawler:
- The indexed array needs to be converted to assoziative as other URL sources
may use index X for something else.
- Renamed $isLoaded to $isAdded as it fits more
- Updated 'core' to latest commit
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 5 Mar 2015 21:07:22 +0000 (22:07 +0100)]
Continued with crawler:
- Made some noisy debug lines quiet (commented out)
- Added parseCsvEntry() as a stub (only debug lines)
- Some other minor improvements
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 5 Mar 2015 02:01:10 +0000 (03:01 +0100)]
Continued with crawler:
- Renamed parseCsvEntry() to parseCsvFile() as it reads a CSV file
- Added check method if a CSV entry is stacked
- Updated 'core' to latest commit
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 10:26:47 +0000 (11:26 +0100)]
Implementation of isOwnAddress() basicly finished:
- ... which will check if the currently saved UNL is the same as own external
or internal UNL (internal only returns IP!!!).
- Introduced getCurrentUniversalNodeLocator()
- Updated 'core'
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 30 Jan 2015 00:34:18 +0000 (01:34 +0100)]
Continued with refacturing:
- Deleted deprecated stuff, such as the ConnectionRegistry class as there is
now only a SocketRegistry.
- More cleanups (e.g. no longer used config entry and many more)
- Use more ShareableInfo class which main contain a Listenable or
ConnectionHelper instance. If both is missing, please report this.
- Updated 'core'
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Thu, 29 Jan 2015 20:53:48 +0000 (21:53 +0100)]
Continued with refactoring:
- Added ShareableInfo interface
- Added ConnectionInfo class which can be filled by Listenable classes and
ConnectionHelper classes. This fixes a bug that isSocketRegistered(),
registerSocket() and so on, are only accepting a Listenable class and not
the other.
- Updated 'core'
- UNFINISHED!
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Fri, 23 Jan 2015 20:58:12 +0000 (21:58 +0100)]
Continued rewrite:
- Added discoverListenerInstance() to inteface
- Introduced new generic class BaseIpV4ConnectionHelper
- ... and moved some methods to it
- Other rewrites + more debug lines added (mostly commented out)
- Updated 'core'
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sun, 11 Jan 2015 20:51:25 +0000 (21:51 +0100)]
Continued with crawler (won't work with out-dated core):
- Added new method to check stack size for added CSV files
- Added empty stub for adding entries from loaded CSV file
Signed-off-by: Roland Haeder <roland@mxchange.org>