Class AbstractStorageStatusRecord
java.lang.Object
org.gcube.documentstore.records.implementation.AbstractRecord
org.gcube.accounting.datamodel.BasicUsageRecord
org.gcube.accounting.datamodel.basetypes.AbstractStorageStatusRecord
- All Implemented Interfaces:
Serializable,Comparable<org.gcube.documentstore.records.Record>,UsageRecord,org.gcube.documentstore.records.Record
- Direct Known Subclasses:
AggregatedStorageStatusRecord,StorageStatusRecord
- Author:
- Alessandro Pieve (ISTI - CNR) alessandro.pieve@isti.cnr.it, Luca Frosini (ISTI - CNR)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gcube.accounting.datamodel.UsageRecord
UsageRecord.OperationResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKEY for : data Count number of objectsstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringKEY for : type of data accessed.static final StringKEY for : Quantity of data in terms of KBstatic final StringDeprecated.static final StringFields inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
CONSUMER_ID, OPERATION_RESULT, SCOPEFields inherited from class org.gcube.documentstore.records.implementation.AbstractRecord
aggregatedFields, computation, computedFields, CREATION_TIME, ID, requiredFields, resourceProperties, validationFields inherited from interface org.gcube.documentstore.records.Record
CREATION_TIME, ID, RECORD_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.Deprecated.Deprecated.longDeprecated.voidsetDataCount(long dataCount) voidsetDataServiceClass(String dataServiceClass) Deprecated.voidsetDataServiceId(String dataServiceId) Deprecated.voidsetDataServiceName(String dataServiceName) Deprecated.voidvoidsetDataVolume(long dataVolume) voidsetProviderId(URI provideId) Deprecated.voidsetProviderURI(URI provideURI) Methods inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
getConsumerId, getOperationResult, getQuerableKeys, getScope, init, setConsumerId, setOperationResult, setScopeMethods inherited from class org.gcube.documentstore.records.implementation.AbstractRecord
cleanExtraFields, compareTo, computeField, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, isAggregated, removeResourceProperty, setAggregated, setCreationTime, setEndTime, setId, setOperationCount, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gcube.documentstore.records.Record
getComputedFields, getCreationTime, getId, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validate
-
Field Details
-
DATA_VOLUME
KEY for : Quantity of data in terms of KB- See Also:
-
DATA_TYPE
KEY for : type of data accessed. The value is a controlled dictionary by StorageStatusRecord.DataType- See Also:
-
DATA_COUNT
KEY for : data Count number of objects- See Also:
-
DATA_SERVICECLASS
Deprecated.KEY for : data service class identifier- See Also:
-
DATA_SERVICENAME
Deprecated.KEY for : data service name identifier- See Also:
-
DATA_SERVICEID
Deprecated.KEY for : data service name id- See Also:
-
PROVIDER_ID
Deprecated.KEY for : providerId the identifier of the provider which is the target of a read/write operation- See Also:
-
PROVIDER_URI
- See Also:
-
-
Constructor Details
-
AbstractStorageStatusRecord
public AbstractStorageStatusRecord() -
AbstractStorageStatusRecord
public AbstractStorageStatusRecord(Map<String, ? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-
Method Details
-
getRecordType
- Specified by:
getRecordTypein interfaceorg.gcube.documentstore.records.Record- Overrides:
getRecordTypein classBasicUsageRecord
-
getDataVolume
public long getDataVolume() -
setDataVolume
public void setDataVolume(long dataVolume) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataType
-
setDataType
public void setDataType(AbstractStorageUsageRecord.DataType dataType) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataCount
public long getDataCount() -
setDataCount
public void setDataCount(long dataCount) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataServiceClass
Deprecated. -
setDataServiceClass
@Deprecated public void setDataServiceClass(String dataServiceClass) throws org.gcube.documentstore.exception.InvalidValueException Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataServiceName
Deprecated. -
setDataServiceName
@Deprecated public void setDataServiceName(String dataServiceName) throws org.gcube.documentstore.exception.InvalidValueException Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataServiceId
Deprecated. -
setDataServiceId
@Deprecated public void setDataServiceId(String dataServiceId) throws org.gcube.documentstore.exception.InvalidValueException Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getProviderId
Deprecated. -
setProviderId
@Deprecated public void setProviderId(URI provideId) throws org.gcube.documentstore.exception.InvalidValueException Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getProviderURI
-
setProviderURI
public void setProviderURI(URI provideURI) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-