Commit Graph

209 Commits

Author SHA1 Message Date
Luca Frosini c4fd8c253c Catching the right exception
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124342 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-19 10:49:07 +00:00
Luca Frosini 1ef3cedd3d Improved tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124255 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-17 14:09:32 +00:00
Luca Frosini c5790461b4 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124250 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-02-17 13:17:13 +00:00
Luca Frosini 43c63f2fc6 Reintroduced ScopeProvider to avoid problem in the next release
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124138 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-12 16:08:49 +00:00
Luca Frosini 70e0570c82 Fixed Tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124114 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-12 11:20:04 +00:00
Luca Frosini 9a3f477262 refs #2222: Move infrastructure tests outside of components junit tests
https://support.d4science.org/issues/2222

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124044 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-10 14:14:31 +00:00
Luca Frosini 426355ce88 refs #2201: Remove the use of ScopeProvider if any from accounting-lib
https://support.d4science.org/issues/2201

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124026 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-10 09:31:40 +00:00
Luca Frosini 1a10ead141 refs #2201: Remove the use of ScopeProvider if any from accounting-lib
https://support.d4science.org/issues/2201

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124021 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-09 17:55:16 +00:00
Luca Frosini 67667da8d1 refs #2201: Remove the use of ScopeProvider if any from accounting-lib
https://support.d4science.org/issues/2201

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124017 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-09 17:46:23 +00:00
Luca Frosini ba7664dbf8 Fixed range from open to closed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122786 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-03 13:05:16 +00:00
Luca Frosini 8c3b5456eb Removed unneeded classes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122627 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-01-28 17:31:18 +00:00
Luca Frosini d106fe5b4c Fixing internals
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122626 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-01-28 17:29:11 +00:00
Luca Frosini 51cc51f546 Improving Model
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122582 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-01-28 10:28:38 +00:00
Luca Frosini 9050adfdd1 Improving Model
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122578 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-01-28 09:42:30 +00:00
Luca Frosini 1a48e45faa Fixed Aggregations and added/fixed tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122218 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-01-13 15:18:59 +00:00
Luca Frosini f0de804244 Removed bom from accounting-lib
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122014 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-21 14:34:48 +00:00
Luca Frosini c6e66a11c3 Switched to validators added to document-store library
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122003 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-21 11:00:46 +00:00
Luca Frosini 345c850de8 Switched to validators added to document-store library
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@122000 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-21 10:50:09 +00:00
Luca Frosini 6e4e3d4c93 refs #1746: Separate Accounting Model and generalize solution
https://support.d4science.org/issues/1746

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@121990 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-18 16:09:05 +00:00
Luca Frosini c6067def1c Reorganizing internals
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120580 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-03 10:06:15 +00:00
Luca Frosini f35debd0ce Reorganizing internals
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120555 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-02 10:08:14 +00:00
Luca Frosini 72ac8594f0 Reorganizing internals
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120554 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-02 10:05:27 +00:00
Luca Frosini 7d31661459 Reorganizing internal decorators
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120528 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-01 13:37:23 +00:00
Luca Frosini 94d6b5e4ce removed uneeded enum
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120516 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-01 11:44:45 +00:00
Luca Frosini e8cba78ff3 Changed the property value type from Serializable to Comparable<? extends Serializable> which is much more what represent the value of a property. This should not imply any changes in clients.
All tests run. All tests OK.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120509 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-12-01 11:33:35 +00:00
Luca Frosini 43d8a93f9f Added some methods the AggregatedUsageRecords has to implement
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120495 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-30 17:34:48 +00:00
Luca Frosini 523bb8c8bd Changed the property value type from Serializable to Comparable<? extends Serializable> which is much more what represent the value of a property. This should not imply any changes in clients.
All tests run. All tests OK.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120485 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-30 16:49:18 +00:00
Luca Frosini 1987001f31 Fixing model
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120324 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-19 15:19:51 +00:00
Luca Frosini 440d1ae001 Fixing code to support retry
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120323 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-19 15:07:12 +00:00
Luca Frosini b316a78e8e Fixing code to support retry
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120321 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-19 15:03:14 +00:00
Luca Frosini 492d32550e Fixed constructor visibility
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120317 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-19 14:51:47 +00:00
Luca Frosini 5265332de9 Added fallback to discovered instance
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120310 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 16:56:22 +00:00
Luca Frosini 5c0cfe71e9 Added fallback to discovered instance
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120309 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 16:54:08 +00:00
Luca Frosini 459d95c8d5 fixing race conditions
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120308 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 16:42:15 +00:00
Luca Frosini 7f5e0fc426 Added log to test on IS
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120305 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 16:20:11 +00:00
Luca Frosini 615dff37df Fixed log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120304 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 15:46:19 +00:00
Luca Frosini be10ea589e refs #1282: New Accounting: IS-Collector doesn't start correctly after upgrade to ghn 6.0.0
https://support.d4science.org/issues/1282

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120303 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 15:40:29 +00:00
Luca Frosini b60934aed4 refs #1282: New Accounting: IS-Collector doesn't start correctly after upgrade to ghn 6.0.0
https://support.d4science.org/issues/1282

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120302 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 15:36:27 +00:00
Luca Frosini 7121248817 refs #1282: New Accounting: IS-Collector doesn't start correctly after upgrade to ghn 6.0.0
https://support.d4science.org/issues/1282

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120301 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 11:55:14 +00:00
Luca Frosini 4b9bbd779e Removed reentrant lock using syncronized instead
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120300 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 11:30:35 +00:00
Luca Frosini 907f2b9707 Improving code for race condition
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120299 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-18 11:25:06 +00:00
Lucio Lelii 6c8da75cd3 fixing locks
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120297 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-17 17:28:27 +00:00
Lucio Lelii e7d89ededf git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120296 82a268e6-3cf1-43bd-a215-b396298e98cf 2015-11-17 17:22:22 +00:00
Luca Frosini 4445ec9df7 refs #1282: New Accounting: IS-Collector doesn't start correctly after upgrade to ghn 6.0.0
https://support.d4science.org/issues/1282

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120288 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-17 11:15:16 +00:00
Luca Frosini 6ef06f9ecd refs #1282: New Accounting: IS-Collector doesn't start correctly after upgrade to ghn 6.0.0
https://support.d4science.org/issues/1282

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120287 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-17 10:58:16 +00:00
Luca Frosini c5134be2b6 refs #1282: New Accounting: IS-Collector doesn't start correctly after upgrade to ghn 6.0.0
https://support.d4science.org/issues/1282

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120286 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-17 10:22:41 +00:00
Luca Frosini 15ccd8487a refs #1352: Create repetitive thread to retry to persist UsageRecords
https://support.d4science.org/issues/1352

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120285 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-17 08:32:41 +00:00
Luca Frosini 901f0ce0c6 Recoded the code redesign. Recoded the function which retrieve the AccountingPersistenceBackend class to use.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120278 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-13 11:33:50 +00:00
Luca Frosini 54f2a86e07 Changed the way to retrieve accounting persistence configuration due to deadlock which happen only in IC node
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120277 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-13 11:24:57 +00:00
Luca Frosini 8e527e0325 Recoded the code redesign. Recoded the function which retrieve the AccountingPersistenceBackend class to use.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120271 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-13 10:43:39 +00:00