]>
git.mxchange.org Git - core.git/log
Roland Haeder [Fri, 6 Mar 2015 23:19:12 +0000 (00:19 +0100)]
Renamed some paths and a class for better understanding them:
- Classes in 'databases' were backend classes (doing the hard work) so it got renamed to 'backend'
- Classes in 'wrapper' were frontend classes (which classes from e.g. the "business logic" may use) so it got renamed to 'frontend'
- To both above renames there are already proper "base" classes
- Renamed 'LocalFileDatabase' to 'CachedLocalFileDatabase' as the entire (!) result is stored in $resultData. This is maybe fine for small tables but never good for tables with a lot rows (I don't want to name a number here).
- TODOs.txt updated
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 5 Mar 2015 01:56:56 +0000 (02:56 +0100)]
Continued CSV parsing:
- Introduced readCsvFileLine() which reads a line from a CSV file and parses it to an indexed array
- Introduced readLine() which will read a line (not limited) from a text file
- Method read() will now work without parameters (depending on implementation, e.g. binary files must always be read with a buffer length)
- Other improvements
- TODOs.txt updated
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 12:27:55 +0000 (13:27 +0100)]
It is 'CALLED' (minor).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 10:41:00 +0000 (11:41 +0100)]
Lesser noisy debug lines.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 10:35:19 +0000 (11:35 +0100)]
Some cleanups
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 08:57:39 +0000 (09:57 +0100)]
Added missing method isOwnAddress().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 30 Jan 2015 00:33:06 +0000 (01:33 +0100)]
Now use more the newly added (not here yet) ShareabeInfo instance.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 29 Jan 2015 20:46:59 +0000 (21:46 +0100)]
A class implementing ShareableInfo shall now be handled over.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 23 Jan 2015 20:57:03 +0000 (21:57 +0100)]
setListenerInstance() does not allow NULL, so don't set it.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 20 Jan 2015 21:46:56 +0000 (22:46 +0100)]
Merge branch 'master' of git.mxchange.org:/var/cache/git/repos/core
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 20 Jan 2015 21:45:58 +0000 (22:45 +0100)]
Continued:
- Added new field 'regularExpression' which can be used for validating data
- Added stub application for unit tests on the framework
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 20 Jan 2015 09:18:38 +0000 (10:18 +0100)]
Renamed method as shortcuts are not wanted.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Thu, 15 Jan 2015 22:18:52 +0000 (23:18 +0100)]
Added isValidUnlByPackageData()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 11 Jan 2015 23:22:30 +0000 (00:22 +0100)]
And back to Listenable ... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 22:21:32 +0000 (23:21 +0100)]
Sometimes it is Listenable, somtimes HandleableProtocol ... ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 21:58:07 +0000 (22:58 +0100)]
The name "Pointer" was to general, better use "FilePointer" to make it clear
that the implementing classes will be pointers on files.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 21:55:12 +0000 (22:55 +0100)]
Renamed files to let the class loader find them.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 21:49:15 +0000 (22:49 +0100)]
Added new classes + moved some in sub folders:
- Added input and output classes (duplicated + correct functions used) for text
files + added iniFile() in corresponding "base" classes
- Moved "raw" input/output classes to sub folders to allow separation, still
there may be a "base" class missing for both of them
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 26 Dec 2014 17:59:14 +0000 (18:59 +0100)]
The protocol handler was mostly not correct as a listener was really used here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 25 Dec 2014 11:41:39 +0000 (12:41 +0100)]
Prevent generating cache keys if no query caching is enabled.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 24 Dec 2014 17:41:56 +0000 (18:41 +0100)]
Continued:
- Don't generate cache key if caching is disabled. This will save some time
- Updated debug message (minor)
- Updated TODOs.txt
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 24 Dec 2014 01:07:58 +0000 (02:07 +0100)]
Moved from 'hub' code.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 22:46:49 +0000 (23:46 +0100)]
Also this ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 22:45:10 +0000 (23:45 +0100)]
A much better name is HandleableProtocol.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 19:46:48 +0000 (20:46 +0100)]
_SERVER array elements are all upper-case.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 11:26:44 +0000 (12:26 +0100)]
Updated doc tag to reflect UNL rewrites in 'hub' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 15 Dec 2014 20:32:26 +0000 (21:32 +0100)]
Cleanup of previous commit.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 15 Dec 2014 20:22:42 +0000 (21:22 +0100)]
No longer simple IPs, better is UNL: Universal Node Locator
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 22:18:47 +0000 (23:18 +0100)]
Added important call to setFileName()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 19:36:58 +0000 (20:36 +0100)]
Added missing methods (required by interfaces). They are all not used here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 19:29:33 +0000 (20:29 +0100)]
Added new CSV file abstraction class which is now a stub and needs expansion.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 18:56:59 +0000 (19:56 +0100)]
Also this has to be renamed ('Directory' already exists).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 18:55:14 +0000 (19:55 +0100)]
setIteratorInstance() was already defined and way to generic.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 18:52:23 +0000 (19:52 +0100)]
Continued:
- FrameworkDirectoryPointer now has an own interface 'Directory'.
- Added setter/getter for directoryInstance variable
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 11 Nov 2014 21:38:22 +0000 (22:38 +0100)]
The UNL (Universal Node Locator) is now handled in a class.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 31 Oct 2014 22:41:50 +0000 (23:41 +0100)]
Make UNL upper-case
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 27 Oct 2014 22:34:39 +0000 (23:34 +0100)]
Added counter for total restarts
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 25 Oct 2014 11:11:40 +0000 (13:11 +0200)]
Upcoming rewrite to universal node locator (UNL) instead of "hard-wired"
ip:port combination. This change is only a name change of variables and does
currently hurt or change nothing.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 22:34:55 +0000 (00:34 +0200)]
Double qoutes generally "cost" performance as they are searched for variables (and single quotes not).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 20:55:20 +0000 (22:55 +0200)]
Some more cleanups.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 19:28:00 +0000 (21:28 +0200)]
Added protocol for upcoming rewrite.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 18:36:33 +0000 (20:36 +0200)]
Minor: Descriptions improved
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 18:14:11 +0000 (20:14 +0200)]
Minor: Added commented out debug line.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 18:01:57 +0000 (20:01 +0200)]
Updated from hub code.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 17:49:20 +0000 (19:49 +0200)]
Added new interfaces Handleable/-DataSet and ProtocolHandler (no content yet).
Updated copyright year to latest.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Oct 2014 18:33:01 +0000 (20:33 +0200)]
Some API changes:
- ClientFactory now wants a protocol handler instance, instead of direct prococol name
- Double-quotes converted to single
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 26 Sep 2014 07:51:28 +0000 (09:51 +0200)]
much smaller number for nonce-incrementation
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Thu, 25 Sep 2014 20:25:22 +0000 (22:25 +0200)]
Minor improvements
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 22 Jul 2014 21:57:16 +0000 (23:57 +0200)]
Fixed some stuff + added debug lines.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 22 Jul 2014 20:14:07 +0000 (22:14 +0200)]
Some fixes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 6 Jul 2014 21:39:20 +0000 (23:39 +0200)]
Also store total found hashes (much lesser than total hashes).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 27 Jun 2014 14:45:06 +0000 (16:45 +0200)]
30 seconds every flush is okay.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Häder [Fri, 27 Jun 2014 13:49:01 +0000 (15:49 +0200)]
A bit shorter.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Häder [Fri, 27 Jun 2014 12:37:21 +0000 (14:37 +0200)]
Lesser constants and more rewrites on algo.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Häder [Fri, 27 Jun 2014 09:58:07 +0000 (11:58 +0200)]
Rewrites
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Wed, 25 Jun 2014 17:23:56 +0000 (19:23 +0200)]
Added setter/getter for a Minable instance (interface still in 'hub' project).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 24 Jun 2014 06:43:05 +0000 (08:43 +0200)]
Added missing method.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Mon, 23 Jun 2014 21:25:11 +0000 (23:25 +0200)]
Also getSeekPosition() belongs here ... + TODOs.txt updated (--amend rocks!)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 21:20:53 +0000 (23:20 +0200)]
writeData() also belongs here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 21:16:37 +0000 (23:16 +0200)]
No block instance here ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 21:15:24 +0000 (23:15 +0200)]
writeAtPosition() also belongs in OutputPointer classes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 20:48:24 +0000 (22:48 +0200)]
Renamed 'stacker' to 'stack' as they are stacks (FiFo and "FiLo").
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 18:16:33 +0000 (20:16 +0200)]
Even more ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 18:15:05 +0000 (20:15 +0200)]
These constants have moved ... ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 17:54:31 +0000 (19:54 +0200)]
Moved iterator instancing + removed duplicate getPointer().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 5 Jun 2014 20:43:32 +0000 (22:43 +0200)]
Splitted 'binary specific' methods/attributes from generic file class and created general text/binary classes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:29:09 +0000 (23:29 +0200)]
Interface 'Block' is implemented also here ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:27:43 +0000 (23:27 +0200)]
Need to call pointer instance ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:26:19 +0000 (23:26 +0200)]
Fixed parser error.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:24:55 +0000 (23:24 +0200)]
Also add getFileSize() here, too. This satisfies the interface.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:20:56 +0000 (23:20 +0200)]
Added isFileOnlyGaps() and getFileSize(), both are "basicly finished".
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:58:57 +0000 (13:58 +0200)]
This getter needs also to be public and be called through iterator.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:53:24 +0000 (13:53 +0200)]
Added missing methods (should not be called).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:51:48 +0000 (13:51 +0200)]
Fixed: [FiFoFileStack:439] Method getHeaderSize() is unsupported or should not be called.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:49:25 +0000 (13:49 +0200)]
Fixed: Fatal error: Access to undeclared static property: BaseFrameworkSystem::$hashLength
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:47:40 +0000 (13:47 +0200)]
No iterator here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:46:17 +0000 (13:46 +0200)]
Now that Block has these methods, also these classes needs it.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:42:39 +0000 (13:42 +0200)]
Also these methods must go through iterator.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:33:20 +0000 (13:33 +0200)]
These 3 methods are now moved to BaseFile.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:24:48 +0000 (13:24 +0200)]
Also them has been moved.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:23:17 +0000 (13:23 +0200)]
Had been moved.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:18:48 +0000 (13:18 +0200)]
Continued with file abstraction:
- added markCurrentBlockAsEmpty()
- added index names for 'gaps' array
- fixed typo in method name
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 30 May 2014 21:26:19 +0000 (23:26 +0200)]
Rewrote next() to avoid loading whole empty file.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 30 May 2014 20:39:34 +0000 (22:39 +0200)]
Continued:
- CalculatableBlock is the better interface as it narrows possible
implemenations
- Moved a lot stuff from BaseFrameworkSystem to BaseFile as this is the right
place (encapsulated place, not generic place).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Mon, 26 May 2014 07:54:09 +0000 (09:54 +0200)]
Fixed
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Sat, 24 May 2014 14:34:04 +0000 (16:34 +0200)]
Continued:
- removed getBlockSeparator()
- added calculation of minimum length of an index entry
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:50:34 +0000 (15:50 +0200)]
This call leads nowhere, so better call own method.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:49:09 +0000 (15:49 +0200)]
Call these methods from the iterator.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:40:12 +0000 (15:40 +0200)]
Again interface satisfaction ... ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:36:39 +0000 (15:36 +0200)]
Fixed parser error.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:35:13 +0000 (15:35 +0200)]
Added missing methods which wraps the block instances for callbacks.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:28:49 +0000 (15:28 +0200)]
Satisfied interface, still these methods are unsupported.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:26:00 +0000 (15:26 +0200)]
Renamed more and moved code to Block interface.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:13:25 +0000 (15:13 +0200)]
Satified interface.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 13:10:43 +0000 (15:10 +0200)]
Moved more code to BaseFile as it makes sense to have it there.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 12:43:43 +0000 (14:43 +0200)]
Satisfied Pointer again.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 12:09:10 +0000 (14:09 +0200)]
Added more methods (required).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 11:55:09 +0000 (13:55 +0200)]
Endless loop fixed.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 11:52:47 +0000 (13:52 +0200)]
Moved even more code to BaseFile where a much better place is for it (clear encapsulated).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 24 May 2014 11:36:59 +0000 (13:36 +0200)]
Uh, need this method now, but does it work this way?
Signed-off-by: Roland Häder <roland@mxchange.org>