chimp1984
d6c3ccd605
Add AppStartupState and DomainInitialisation.accountAgeWitnessService
...
See comments to classes for reasoning.
2020-10-04 17:24:03 -05:00
sqrrm
fd65bcc4ec
Merge pull request #4589 from chimp1984/persistence-redesign
...
Persistence redesign
2020-10-04 23:29:14 +02:00
chimp1984
e179ee4e32
Use Collection for constructor which is called from the fromProto methods.
...
We do not set the collection as list but we fill the list created via the createList method.
2020-10-04 16:13:45 -05:00
chimp1984
c797317c0d
Fix typo
2020-10-04 16:05:43 -05:00
chimp1984
d18b243322
Do not use persistNow for snapshots but requestPersistence
...
This avoids frequent write at dao sync and better performance.
2020-10-04 13:34:28 -05:00
chimp1984
f9f33aa16d
Add PersistableListAsObservable
...
Remove ObservableList methods from PersistableList
Let DisputeList and TradableList extend PersistableListAsObservable
Fix param names
2020-10-04 13:18:25 -05:00
chimp1984
f7c2464fbc
Fix typo
2020-10-04 13:16:49 -05:00
chimp1984
0cc0cfc9a5
Use runAfter instead of runPeriodically
2020-10-04 12:54:27 -05:00
chimp1984
3b31dc9ff3
Fix typo
2020-10-04 12:53:20 -05:00
chimp1984
a612405d9d
Update common/src/main/java/bisq/common/persistence/PersistenceManager.java
...
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
2020-10-04 12:49:02 -05:00
ghubstan
9942529448
Remove redundant DisputeAgentType enum
...
Use existing SupportType enum instead, and map the valid api
'registerdisputeagent' method's dispute-agent-type parameter
names to SupportType.
2020-10-03 15:42:27 -03:00
ghubstan
0cc998c4e2
Tidy up CorePriceService
...
Remove unnecessary String.format call and do a null check.
2020-10-03 14:48:49 -03:00
chimp1984
6693a03f96
Fix test class
2020-10-03 12:48:23 -05:00
chimp1984
c9cd58a378
Fix rename mistakes
2020-10-03 12:48:23 -05:00
chimp1984
e9db7c6808
Rename Priority to Source. This should make it more clear what is the intention of the usage.
...
Rename:
LOW to NETWORK
MID to PRIVATE_LOW_PRIO
HIGH to PRIVATE
Change delay of MID/PRIVATE_LOW_PRIO from 30 min to 2 hours (we had different datastores before using it, now its only real low prio stores)
Add comment to each enum
2020-10-03 12:48:23 -05:00
chimp1984
137b5e81d1
Enforce that clients set the priority. Remove the initialize methods which did not have priority as a param.
...
Make initializePersistenceManager in StorageService abstract to enforce in concrete class to define priority.
Change priorities for future renaming to a different meaning. instead of priority we want to describe the category: private data, public data,.... will come in next commit
2020-10-03 12:48:22 -05:00
chimp1984
18f64d53ca
Persist all Priority.HIGH stores at shutdown to be more safe that we did not miss any state update.
...
Priority.HIGH stores are all those which contain private data. Others can be rebuilt from network data or are not critical like navigationPath.
2020-10-03 12:48:22 -05:00
chimp1984
10e9b054a0
Rename writeCompleted to onWriteCompleted
...
Add comment
Use decrementAndGet instead of getAndDecrement
Tested cases when there is an exception at write to disk, but as we call the result handler in the finally clause we get always called onWriteCompleted, so it cannot happen that we get stuck.
2020-10-03 12:48:22 -05:00
chimp1984
232fa8ddee
Execute result handler on userThread
2020-10-03 12:48:22 -05:00
chimp1984
b712445e34
Remove duplicate startApplication call. Remove checkCryptoSetup call and fields used only for that.
2020-10-03 12:48:22 -05:00
chimp1984
32238f2050
Rename getClosedTradables and getFailedTrades to getObservableList
2020-10-03 12:48:22 -05:00
chimp1984
c789650d0b
Move methods to base class
2020-10-03 12:48:22 -05:00
chimp1984
e88a810dd0
Revert exit code to 1 as it was before. Not sure if there have been some scripts for seeds which expect an error code at shutdown for auto restart. I remotely remember there have been something...
2020-10-03 12:48:22 -05:00
chimp1984
e242c54dab
Refactor: Rename getTradesAsObservableList to getObservableList
2020-10-03 12:48:22 -05:00
chimp1984
5f47ed20d8
Use decrementAndGet instead of getAndDecrement
2020-10-03 12:48:21 -05:00
chimp1984
ccfda5b043
Cleanups, add generics, add final, remove unused code/comments/todos,
2020-10-03 12:48:21 -05:00
chimp1984
270e89a25a
Fix wrong params
2020-10-03 12:48:21 -05:00
chimp1984
fa0d261397
Fix remaining issues, cleanups, add persit calls, remove unused code,...
...
Sorry too tired to create another 20 commits...
2020-10-03 12:48:21 -05:00
chimp1984
253c6c3336
Remove unneeded param. Add requestPersistence calls. Cleanup removeTrade and addTrade methods
2020-10-03 12:48:21 -05:00
chimp1984
b901f358a7
Add missing persist calls. Add generics. Remove persist method. Add final.
2020-10-03 12:48:21 -05:00
chimp1984
7b4611e177
Add requestPersistence call
...
Cleanups
2020-10-03 12:48:21 -05:00
chimp1984
a797413c7e
Remove persist method
2020-10-03 12:48:21 -05:00
chimp1984
42e10f28b7
Apply generics
2020-10-03 12:48:21 -05:00
chimp1984
197e871a7b
Remove FileManager ans Storage. All is replaces not by PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
fe4c21b35c
Use PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
482bc56036
Use PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
9da13c35f2
Refactor: Rename persist to requestPersistence
2020-10-03 12:48:20 -05:00
chimp1984
486e6f4985
Use PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
fac4200825
Remove unused fields, apply new params
2020-10-03 12:48:20 -05:00
chimp1984
e825613f5c
Use PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
e0ea742a47
Use PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
27c2cb894c
Use PersistenceManager
2020-10-03 12:48:20 -05:00
chimp1984
986f1bf33c
Use PersistenceManager. We do not persist inside openOffer anymore but from outside
2020-10-03 12:48:19 -05:00
chimp1984
fae1cda701
Use PersistenceManager
2020-10-03 12:48:19 -05:00
chimp1984
406afa9dad
Use PersistenceManager. Add setAll method
2020-10-03 12:48:19 -05:00
chimp1984
d4f460b4b0
Use PersistenceManager
2020-10-03 12:48:19 -05:00
chimp1984
c3c869b5ad
Use PersistenceManager
2020-10-03 12:48:19 -05:00
chimp1984
f4165dc9af
Use PersistenceManager
2020-10-03 12:48:19 -05:00
chimp1984
2582f58e0a
Use PersistenceManager
2020-10-03 12:48:19 -05:00
chimp1984
f6be9b0f6b
Use PersistenceManager
2020-10-03 12:48:19 -05:00