Class ReportAccountingImpl
- java.lang.Object
-
- org.gcube.contentmanager.storageserver.accounting.ReportAccountingImpl
-
-
Field Summary
Fields Modifier and Type Field Description org.gcube.accounting.persistence.AccountingPersistenceaccountingPersistence
-
Constructor Summary
Constructors Constructor Description ReportAccountingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildProviderURI(String resourceScope)StringgetProviderUri()voidinit()voidprintRecord(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord record)voidsend(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur)send reportorg.gcube.accounting.datamodel.usagerecords.StorageUsageRecordsetGenericProperties(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur, String resourceType, String consumerId, String resourceScope, String creationTime, String lastAccess, String owner, String operation, String size)Set generic properties of reportprotected org.gcube.accounting.datamodel.usagerecords.StorageUsageRecordsetProviderUri(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur, String resourceScope)org.gcube.accounting.datamodel.usagerecords.StorageUsageRecordsetSpecificProperties(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur, String filePath, String dataType, String callerIP, String id)Set end time of operation and other specific properties
-
-
-
Method Detail
-
setGenericProperties
public org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord setGenericProperties(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur, String resourceType, String consumerId, String resourceScope, String creationTime, String lastAccess, String owner, String operation, String size)Description copied from interface:ReportSet generic properties of report- Specified by:
setGenericPropertiesin interfaceReport- Returns:
-
setProviderUri
protected org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord setProviderUri(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur, String resourceScope) throws org.gcube.documentstore.exception.InvalidValueException, URISyntaxException- Throws:
org.gcube.documentstore.exception.InvalidValueExceptionURISyntaxException
-
setSpecificProperties
public org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord setSpecificProperties(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur, String filePath, String dataType, String callerIP, String id)Description copied from interface:ReportSet end time of operation and other specific properties- Specified by:
setSpecificPropertiesin interfaceReport- Returns:
-
printRecord
public void printRecord(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord record)
- Specified by:
printRecordin interfaceReport
-
send
public void send(org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord sur)
Description copied from interface:Reportsend report
-
getProviderUri
public String getProviderUri()
-
-