Klaus Basan
12b2bc4181
Ref T201, fixes for info object overview
...
* more detailed log info
* sort info objects so the correct value is obtained ("raw" names)
* check both "duplicate" strings
2017-12-21 19:47:41 +01:00
Klaus Basan
162c3d07b5
Ref T189, formatting (some slots -> private + this->m_ ->m_)
2017-12-21 19:47:32 +01:00
Klaus Basan
bdbf2e75b4
Improved DB reader log messages
2017-09-24 20:29:26 +01:00
Klaus Basan
8c68f2302c
Ref T149, improved error message for JsonDatastoreResponse able to catch PHP error messages
2017-09-24 20:29:03 +01:00
Klaus Basan
ec8838198f
Ref T149, improved HeaderResponse/JsonDatastoreResponse
...
* request started/received
* moved timestamp logic to Response class, like headerResponse.setValues(nwReply)
2017-09-24 20:28:57 +01:00
Klaus Basan
46d2f2c048
Ref T150, database reader using watchdog
...
* removed canConnect DB checks, using watchdog
* changed signature to: int requestHeadersOfSharedFiles
* rely on shared working URL from watchdog
2017-09-24 20:28:34 +01:00
Klaus Basan
b9760b4c60
Ref T149, use URL log to log network access in threaded reader classes
...
* added getFromNetworkAndLog
* adjusted DB reader
* adjusted other readers
2017-09-24 19:54:23 +01:00
Klaus Basan
a22cd134f8
Formatting
2017-09-24 19:54:16 +01:00
Klaus Basan
a2e888546e
Ref T148, database reader extensions
...
* allow to set severity of failed reading
* get entities with cached data
* removed needsSharedInfoFileLoaded in CDatabaseReaderConfig
2017-09-24 19:54:06 +01:00
Klaus Basan
addb008ffa
Pass back URLs for changed URL check. This allows to display the changed locations.
2017-09-24 19:52:28 +01:00
Klaus Basan
f3847bd33c
Ref T121, check if Internet is accessible
...
* in case the internet provider is down, this is not detected
* extended test to detect if access is possible
* in case of downtime this indicated in status component
2017-09-24 19:51:44 +01:00
Klaus Basan
e72546d282
Ref T109, fix: when starting swift pilot client read mode is "cache + shared info objects"
...
Comparing with info objects only makes sense when reading shared or from DB
2017-09-24 19:51:01 +01:00
Klaus Basan
c81a56bcba
Ref T29, allow to read CDbFlags::Shared in background
2017-09-24 19:50:30 +01:00
Klaus Basan
76b3b6c0b6
Utility function to directly log warning when network not accessible
2017-09-24 19:50:18 +01:00
Klaus Basan
b6b1b96ec4
Ref T105, use new style with threaded readers
...
* use doWorkCheck
* relaxed doWorkCheck in unit tests
* removed isShuttingDown, gracefulShutdown
* set timer object name (in case something is wrong, we might see the name in the log)
2017-09-24 19:50:08 +01:00
Klaus Basan
5aaf5cdeb1
Improved log messages and some typos fixed in DB reader
2017-06-27 20:50:25 +02:00
Klaus Basan
9f4f06a436
Ref T28, consolidated reading
...
* fixed newer parameter
* unified handling of incremental updates
* skip cache update when there was no incremental data
2017-05-05 23:08:09 +01:00
Klaus Basan
8ad7c1e3c7
Fixed issue with still using header instead of info object data
...
plus some utility functionality
2017-05-05 22:40:10 +01:00
Klaus Basan
77c539b650
Ref T24, adjusted readers
...
* utility functions for shared info objects (count/timestamp)
* support for shared and DB info objects
* renamed functions reflecting using info objects now (no longer headers)
2017-04-20 20:38:30 +02:00
Klaus Basan
485c95101b
Ref T24, preparations to read dbinfo.json for shared files
...
This will replace http header file timestamps
* read function in info reader has retrieval mode flag, unused parameters removed
* waitForDbInfoObjects/getDbInfoDataReader (added "Db"), there will be a 2nd reader
* CWebReaderFlags::DbInfoDataReader (added "Db")
* removed ps_read, only read (public)
2017-04-20 20:38:06 +02:00
Mathew Sutcliffe
3ea9e33e6b
refs #937 Resolved clazy warnings: pass-by-value/reference.
2017-04-19 19:31:42 +01:00
Klaus Basan
1c2ca5fca1
refs #935 , avoid timestamp "overflow"
2017-04-19 19:31:05 +01:00
Klaus Basan
03cbdcddc2
refs #930 , unified signal emit/log when data are read
2017-04-18 00:07:57 +01:00
Klaus Basan
de80053c7c
refs #930 , utility conversion functions supporting compression
2017-04-18 00:07:52 +01:00
Roland Winklmeier
7edd1bb621
Rename CThreadedReader::isNetworkConnectedAndAccessible() for consistency
...
refs #869
2017-02-24 15:22:13 +00:00
Klaus Basan
1ced7f3c0b
refs #857 , check if network is accessible in readers
...
* new read state "skipped"
* renamed to "isNetworkConnectedAndAccessible"
* checking before reading, which would only fail if network is not accessible
2017-02-24 00:08:55 +00:00
Klaus Basan
7d9b721b87
Avoid further loading when shutting down
2017-01-10 23:47:26 +00:00
Klaus Basan
5107d55115
refs #833 , use isShuttingDown in readers
...
(a bit stricter than this->isAbandoned)
2016-12-15 04:02:00 +01:00
Klaus Basan
fc3ac8b323
refs #787 , MS review items + discussion on slack
...
https://dev.vatsim-germany.org/issues/787#note-4
2016-12-13 19:01:39 +01:00
Klaus Basan
8f779fff35
refs #787 , fixed unit test
...
* flag update for non cached scenarios was missing
* some minor adjustments of test readers
2016-12-13 19:01:37 +01:00
Klaus Basan
967e3de226
refs #787 , adjusted readers
...
* mode for reading
* supported entities
* get URL for given mode
2016-12-13 19:01:26 +01:00
Mathew Sutcliffe
a44ffcbe79
refs #800 Removed pointless casts and conversions.
2016-12-13 19:00:37 +01:00
Klaus Basan
ff394f4785
refs #787 , support for Header / shared files in database reader / web services
...
* split JsonDatastoreResponse in subclass HeaderResponse
* support for request newtwork request duration ("started") in application
* removed ps_setupChanged because it was unused
2016-12-06 09:35:02 +01:00
Klaus Basan
de7821ff86
refs #781 , use admit in database reader
...
* added amit functions in readers
* cacheHasChanged functions (needed because data of caches are loaded in background)
* pinned small caches
* CDatabaseReader::readInBackgroundThread uses admitCaches now
2016-12-06 09:34:35 +01:00
Klaus Basan
9d51ee5bc8
refs #748 , further airport from DB follow up fixes
...
* Ignore mode, not all applications need to load everything (mapping tool no airports)
* removed signal in airport reader which is already in base class
* added "virtual" keyword
* fixed another syncronize typo
* added allDbEntiiesUsed() to also reflect the config (ignore flag)
* ensure allSwiftDbData are signaled correctly even with ignore flag
2016-12-06 09:33:54 +01:00
Klaus Basan
14469f2d4e
Sample reg. JSON performance
...
* DB JSON vs. swift JSON
* Database reader: own function for stringToDatastoreResponse so it can be reused
2016-12-06 09:33:43 +01:00
Michał Garapich
a4b5b28cc1
refs #748 Move CAirportDataReader to the db/ subdirectory
...
* BlackCore::CAirportDataReader -> BlackCore::Db::CAirportDataReader
* fix typo in CDatabaseReader
2016-10-17 14:34:30 +01:00
Klaus Basan
1167735897
refs #720 , adjusted exposed functions to new naming
...
* some minor formatting
* use the new condolidation functions
2016-08-26 21:04:23 +01:00
Klaus Basan
0357dbde8f
refs #712 , improved readers
...
* only trigger read when network interface is available
* do not trigger all reads at same time but slightly shifted
* renamed to hasReceivedOkReply()
2016-07-28 21:08:25 +02:00
Klaus Basan
4b1179cfd8
refs #709 , allow to read directly from DB (bypassing caches)
...
* allow to reload
* copying array size of response for debugging purposes
2016-07-28 21:08:17 +02:00
Klaus Basan
6f840f4fd6
refs #709 , access to timestamp/count per entity
...
* utility functions
* made protected functions public
2016-07-28 21:08:14 +02:00
Klaus Basan
8d5020d78e
Some Web readers adjustemnts
...
* do not init shared URLs before needed
* do not load info objects when DB is unavailable
* adjust reader flags when DB is down
* airport URL available in setup
2016-07-03 13:22:26 +02:00
Klaus Basan
488d437a2a
#refs 686, used settings in readers
...
* moved threaded reader to BlackCore (settings are normally BlackCore aware)
* created ns/subfolder VATSIM
* prepared settings for the VATSIM readers
2016-06-29 01:04:41 +02:00
Klaus Basan
959fc10c92
Fixed missing distributor read and minor improvements
2016-06-15 00:11:15 +02:00
Klaus Basan
f02bf0ac0a
refs #649 , skip reading of info objects if only caches are used and emit signals when syncronized from cache
...
(applied after 1st performance fix for cache was ready)
* utility functions to detect if only caches are used
* renamed some functions
* renamed some db flags and added new ones
2016-06-08 18:20:58 +02:00
Klaus Basan
875b311ede
refs #649 , with #659 deferred caches available
...
* adjustments to use deferred caches
* removed simulator from CAircraftModelSetLoader`s signature as it was not used
* only change current simulator when explicitly set (avoid unintended setting)
* added function to obtain number of elements from model caches
2016-06-08 18:20:39 +02:00
Klaus Basan
467f37db7f
refs #649 , added check for changed base URL to database reader
...
(continued #649 after fixes of #664 )
2016-06-08 18:20:35 +02:00
Klaus Basan
954ddfb2e7
refs #649 , refs #656 , using caches in ICAO data reader
...
* access to info data reader (get DB metadata)
* adjusted database base class to support caches, info objects
* moved classes to subdir
2016-06-08 18:20:21 +02:00