Klaus Basan
a1e16ea162
Background updater can be const, only needed "readonly" for UI
2017-09-24 19:49:39 +01:00
Klaus Basan
e2c43a688b
Automatically start background updater
...
Ref T28
2017-09-24 19:49:36 +01:00
Mathew Sutcliffe
fdbfda848f
T102 Don't try to wait for a worker to finish while holding a lock
...
on the mutex that protects its finished flag, as it will deadlock.
2017-09-24 19:49:31 +01:00
Klaus Basan
5aaf5cdeb1
Improved log messages and some typos fixed in DB reader
2017-06-27 20:50:25 +02:00
Mathew Sutcliffe
ff2687fbe9
T66 Check whether it is safe to abandon the worker.
2017-05-14 17:21:36 +01:00
Mathew Sutcliffe
98e67860bc
T66 Tidying up CBackgroundDataUpdater startup and shutdown
...
by overriding the CContinuousWorker virtual methods that exist for this purpose.
2017-05-14 17:21:35 +01:00
Klaus Basan
92472e78a6
Ref T58, consolidation fixes
...
* override simulator, because values can be removed
* DB simulator has priority
2017-05-09 19:13:42 +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
f12b69bb87
Ref T28, background updater: consolidate DB and model data in background
...
* automatically reload DB data
* consolidate models with DB data
2017-05-05 23:07:55 +01:00
Klaus Basan
6a96913974
Ref T28, new model consolidation function
...
(updates models with DB data)
2017-05-05 23:07:53 +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
Mathew Sutcliffe
b7f69c6887
refs #937 Resolved clazy warnings: unnecessary memory allocation.
2017-04-19 19:31:39 +01:00
Klaus Basan
1c2ca5fca1
refs #935 , avoid timestamp "overflow"
2017-04-19 19:31:05 +01:00
Klaus Basan
5c32a912f3
Based on unit test failure (clang):
...
* now ignore incomplete entities for airline/aircraft ICAOs from DB
* utility functions to find invalid designators
* adjusted unit test, avoid taking a random element
* and fixed 4 wrong ICAO entries in DB
2017-04-18 00:08:08 +01:00
Klaus Basan
4bb29de652
refs #930 , support compression for uploads in DB writer
2017-04-18 00:08:05 +01:00
Klaus Basan
f2602a8915
Formatting, const, Doxygen
...
#930
2017-04-18 00:08:02 +01:00
Klaus Basan
660798e43c
refs #930 , moved multipart functions to database utils and added support for compression
2017-04-18 00:08:00 +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
976af53516
refs #930 , use compression enabled functions in specialized readers
2017-04-18 00:07:54 +01:00
Klaus Basan
de80053c7c
refs #930 , utility conversion functions supporting compression
2017-04-18 00:07:52 +01:00
Klaus Basan
da59ff42a4
Formatting, comments
...
#930
2017-04-18 00:07:50 +01:00
Klaus Basan
b785e32256
refs #911 , utility functions for cut and paste JSON
2017-04-18 00:05:33 +01:00
Klaus Basan
6640c84e63
refs #907 , consolidation function
...
remark: kept with other consolidation functions although not DB related
2017-04-17 23:59:21 +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
e3197ce375
refs #853 , JSON exception handling adjustments for ICAO reader
2017-01-10 23:47:17 +00:00
Klaus Basan
b0bef3264c
refs #853 , JSON exception handling adjustments for model reader
2017-01-10 23:47:15 +00:00
Klaus Basan
e956986bf4
refs #853 , JSON exception handling adjustments for airport reader
2017-01-10 23:47:13 +00:00
Mathew Sutcliffe
bda0f42c60
refs #815 Mark with \todo the remaining places where CJsonException needs to be caught.
2017-01-10 23:46:37 +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
90396e012f
refs #820 , get all getAircraftIcaoCodesForDesignator
2016-12-13 19:01:45 +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
Klaus Basan
9edac68bdb
refs #787 , support of header loading in reader config
2016-12-13 19:01:25 +01:00
Klaus Basan
b6a59decc7
refs #811 , get count in readers/services
2016-12-13 19:01:14 +01:00
Mathew Sutcliffe
a44ffcbe79
refs #800 Removed pointless casts and conversions.
2016-12-13 19:00:37 +01:00
Mathew Sutcliffe
461474e29d
refs #800 Fixed "using namespace" in header.
2016-12-13 19:00:25 +01:00
Klaus Basan
cb2be14083
Fixed "synchronized" typos
2016-12-13 19:00:12 +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
4f447cd408
refs #791 , further improve reverse lookup
...
* utility function if web data are already available
* moved setOwnAircraftModel as reverseLookupAndUpdateOwnAircraftModel to CSimulatorCommon
* reverseLookupAndUpdateOwnAircraftModel also handles async lookup when data are not yet available
* removed context ps_allSwiftWebDataRead reverse lookup, done in CSimulatorCommon now
2016-12-06 09:34:43 +01:00
Klaus Basan
a92b67db6b
refs #791 , reverse lookup for own model in the utils class
2016-12-06 09:34:39 +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
6a8c8c8889
refs #748 , airport JSON reader bug in changed URL fixed (URL was always flagged as changed)
...
In same step some code cleanup
2016-12-06 09:34:19 +01:00
Klaus Basan
492649c061
fixes "unable to login", discovered during #780 ,
...
* fixed bootstrap file
* improved timeout of connect, now in single static function
* some minor tweaks
2016-12-06 09:33:56 +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