Difference between revisions of "Accounting Library"
Luca.frosini (Talk | contribs) |
Luca.frosini (Talk | contribs) |
||
Line 23: | Line 23: | ||
''<groupId>'''''org.gcube.accounting'''''</groupId>'' | ''<groupId>'''''org.gcube.accounting'''''</groupId>'' | ||
− | |||
''<artifactId>'''''accounting-lib'''''</artifactId>'' | ''<artifactId>'''''accounting-lib'''''</artifactId>'' | ||
Line 32: | Line 31: | ||
''<groupId>'''''org.gcube.accounting'''''</groupId>'' | ''<groupId>'''''org.gcube.accounting'''''</groupId>'' | ||
− | |||
''<artifactId>'''''accounting-lib-persistence-couchdb'''''</artifactId>'' | ''<artifactId>'''''accounting-lib-persistence-couchdb'''''</artifactId>'' | ||
+ | |||
+ | |||
+ | === Less dependency is better than more === | ||
+ | |||
+ | This library must be available on every node of the infrastructure. To respect as much possible ZERO-DEPENDENCY paradigm of SmartGears a simple couchdb-connector (simple HTTP client library) has been developed. | ||
+ | |||
+ | |||
== Deployment == | == Deployment == |
Revision as of 17:10, 16 November 2015
This component is responsible of collecting, harmonizing and storing accounting data.
Contents
Library
The library has been tough to provide a common way to elaborate Usage Records (URs) (see Accounting Model to check which Usage Records are supported by default). In particular is responsible for:
- Collecting
- Aggregating
- Buffering
- Storing
Collecting Usage Record
Aggregating Usage Record
Buffering Usage Record
Storing Usage Record
Development
The library is identified by the following maven coordinates:
<groupId>org.gcube.accounting</groupId> <artifactId>accounting-lib</artifactId>
Persistence
The current implementation of persistence for this library is for CouchDB storage.
<groupId>org.gcube.accounting</groupId> <artifactId>accounting-lib-persistence-couchdb</artifactId>
Less dependency is better than more
This library must be available on every node of the infrastructure. To respect as much possible ZERO-DEPENDENCY paradigm of SmartGears a simple couchdb-connector (simple HTTP client library) has been developed.