Commit Graph

88 Commits

Author SHA1 Message Date
Luca Frosini 32dafe7d0c Fixing tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@149202 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-05-29 13:46:04 +00:00
Alessandro Pieve 987f94b896 version 3.0 Insert jackson to convert model.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@148471 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-05-11 14:38:38 +00:00
Alessandro Pieve a57a673874 Add a new UsageRecord for Storage Volume
e.g.
{
"scope": "/gcube",
"operationCount": 2,
"dataCount": 2802,
"dataServiceName": "dataServiceName",
"endTime": 1480606453491,
"consumerId": "alessandro.pieve",
"startTime": 1480606453487,
"id": "6e6808bf-3567-4ebf-93d3-0d55c97202a1",
"dataVolume": 5104,
"dataType": "STORAGE",
"operationResult": "SUCCESS",
"dataServiceId": "dataServiceId",
"aggregated": true,
"providerId": "testprotocol://providerURI",
"creationTime": 1480606453494,
"recordType": "StorageStatusRecord",
"dataServiceClass": "dataServiceClass"
}

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@141599 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-01-17 10:59:14 +00:00
Luca Frosini 0d80ace47a Changed classes signature
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@133100 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-10-12 12:15:28 +00:00
Alessandro Pieve 0c6e05c122 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@131474 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-09-19 09:41:47 +00:00
Alessandro Pieve 392c09eaae git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@131473 82a268e6-3cf1-43bd-a215-b396298e98cf 2016-09-19 09:06:46 +00:00
Luca Frosini 1485749a35 Revisited internals
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@125517 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-03-16 17:36:46 +00:00
Luca Frosini 34df63030e refs #2437: Some records accounted on fallback are not recovered in the proper way in a special case
https://support.d4science.org/issues/2437
Added Tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@124673 82a268e6-3cf1-43bd-a215-b396298e98cf
2016-02-29 14:30:48 +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 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 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 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 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 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 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 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 92f5d42e48 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@120270 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-13 10:43:18 +00:00
Luca Frosini e55ab7f5b7 Fixes tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120268 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-12 16:23:09 +00:00
Luca Frosini 49f67ae804 fixes #1349: Recheck Accounting Persistence when using fallback as default
https://support.d4science.org/issues/1349

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120267 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-11-12 15:56:22 +00:00
Luca Frosini 42ba6dc4c5 Added test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120069 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-10-28 15:37:08 +00:00
Luca Frosini f9b21e7f9e refs #1117: Accounting lib's StackOverflow
https://support.d4science.org/issues/1117
The bug should be fixed. Some junit tests were added

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@119889 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-10-20 12:40:30 +00:00
Luca Frosini dcf3e3ec1c Reorganizing library
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@119712 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-10-14 08:46:13 +00:00
Luca Frosini 623f6955e3 Fixing problem on scopes
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@119630 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-10-12 16:03:39 +00:00
Luca Frosini 78dc833d14 Merged from branch
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@119574 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-10-09 12:52:42 +00:00
Luca Frosini b12e0f11a3 Added test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@119318 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-10-01 14:16:53 +00:00
Luca Frosini 9995c4873b Renamed classes to avoid name and import conflicts
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117529 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-29 12:41:28 +00:00
Luca Frosini b16f6751ac Fixed bug on StorageUsageRecord and created test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117470 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-27 10:45:23 +00:00
Luca Frosini 98db31d173 The scope is get from scope provider if available
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117357 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-20 15:02:43 +00:00
Luca Frosini ddec6efb47 Fixing tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117224 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-14 13:22:50 +00:00
Luca Frosini 80101b5b7c Awaiting termination of pool in flush
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117212 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-14 10:20:36 +00:00
Luca Frosini c1867e56ce Added calledMethod field
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117179 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-13 09:26:50 +00:00
Luca Frosini 196351946f Fixed bug on calculation average duration
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117147 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-10 09:58:29 +00:00
Luca Frosini 51cc4bff5a Improving code
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117094 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-08 14:41:05 +00:00
Luca Frosini 56be686649 Fixed bug on timeout for buffering records and renamed Persistence* in AccountingPersistence* to avoid name misunderstanding in smartgears
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117048 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-07 10:10:52 +00:00
Luca Frosini cdceacdce8 refs #200: Create accouting-lib library
https://support.d4science.org/issues/200
Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117044 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-06 16:10:20 +00:00
Luca Frosini 311e106118 refs #200: Create accouting-lib library
https://support.d4science.org/issues/200
Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117034 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-06 15:01:03 +00:00
Luca Frosini fbf99786bb refs #200: Create accouting-lib library
https://support.d4science.org/issues/200
Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117029 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-06 13:33:54 +00:00
Luca Frosini 317b72c11a refs #200: Create accouting-lib library
https://support.d4science.org/issues/200
Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117009 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-06 10:36:41 +00:00
Luca Frosini 92d6313635 refs #200: Create accouting-lib library
https://support.d4science.org/issues/200
Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@116498 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-03 15:10:48 +00:00
Luca Frosini 3ca48b3441 refs #200: Create accouting-lib library
https://support.d4science.org/issues/200
Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@116497 82a268e6-3cf1-43bd-a215-b396298e98cf
2015-07-03 15:07:23 +00:00