Difference between revisions of "Accounting Model"

From Gcube Wiki
Jump to: navigation, search
(Usage Record)
(Usage Record)
Line 17: Line 17:
  
 
This is the very basic interface to respect for every Usage Record. It mainly define the generic access methods. In particular:
 
This is the very basic interface to respect for every Usage Record. It mainly define the generic access methods. In particular:
* Getter and Setter for basic fields
+
* Getter and Setter for basic fields;
* Generic Key-Value method both to set and retrieve a single value (key:String, value:Comparable<? extends Serializable>)
+
* Generic Key-Value method both to set and retrieve a single value (key:String, value:Comparable<? extends Serializable>);
* Generic Map<String, Comparable<? extends Serializable>> to set all
+
* Generic Map<String, Comparable<? extends Serializable>> to set all property at once.
  
 
=== Single Usage Record ===
 
=== Single Usage Record ===

Revision as of 18:16, 30 November 2015

The Accounting Model is based on the concept of Usage Record (UR).

Accounting Usage Records Hierarchy

UsageRecord.png

Interfaces

Abstract Implementation

Interfaces

Usage Record

This is the very basic interface to respect for every Usage Record. It mainly define the generic access methods. In particular:

  • Getter and Setter for basic fields;
  • Generic Key-Value method both to set and retrieve a single value (key:String, value:Comparable<? extends Serializable>);
  • Generic Map<String, Comparable<? extends Serializable>> to set all property at once.

Single Usage Record

Aggregated Usage Record

Abstract Implementation

Basic Usage Record

Usage Records Standard Types

JobUsageRecord

PortletUsageRecord

ServiceUsageRecord

StorageUsageRecord

TaskUsageRecord