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
public abstract class AbstractStorageStatusRecord extends BasicUsageRecord
- Author:
- Alessandro Pieve (ISTI - CNR) alessandro.pieve@isti.cnr.it, Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gcube.accounting.datamodel.UsageRecord
UsageRecord.OperationResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATA_COUNTKEY for : data Count number of objectsstatic StringDATA_SERVICECLASSDeprecated.static StringDATA_SERVICEIDDeprecated.static StringDATA_SERVICENAMEDeprecated.static StringDATA_TYPEKEY for : type of data accessed.static StringDATA_VOLUMEKEY for : Quantity of data in terms of KBstatic StringPROVIDER_IDDeprecated.static StringPROVIDER_URI-
Fields inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
CONSUMER_ID, OPERATION_RESULT, SCOPE
-
-
Constructor Summary
Constructors Constructor Description AbstractStorageStatusRecord()AbstractStorageStatusRecord(Map<String,? extends Serializable> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetDataCount()StringgetDataServiceClass()Deprecated.StringgetDataServiceId()Deprecated.StringgetDataServiceName()Deprecated.AbstractStorageUsageRecord.DataTypegetDataType()longgetDataVolume()URIgetProviderId()Deprecated.URIgetProviderURI()StringgetRecordType()voidsetDataCount(long dataCount)voidsetDataServiceClass(String dataServiceClass)Deprecated.voidsetDataServiceId(String dataServiceId)Deprecated.voidsetDataServiceName(String dataServiceName)Deprecated.voidsetDataType(AbstractStorageUsageRecord.DataType dataType)voidsetDataVolume(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, setScope
-
Methods 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, validateProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
DATA_VOLUME
public static final String DATA_VOLUME
KEY for : Quantity of data in terms of KB- See Also:
- Constant Field Values
-
DATA_TYPE
public static final String DATA_TYPE
KEY for : type of data accessed. The value is a controlled dictionary by StorageStatusRecord.DataType- See Also:
- Constant Field Values
-
DATA_COUNT
public static final String DATA_COUNT
KEY for : data Count number of objects- See Also:
- Constant Field Values
-
DATA_SERVICECLASS
@Deprecated public static final String DATA_SERVICECLASS
Deprecated.KEY for : data service class identifier- See Also:
- Constant Field Values
-
DATA_SERVICENAME
@Deprecated public static final String DATA_SERVICENAME
Deprecated.KEY for : data service name identifier- See Also:
- Constant Field Values
-
DATA_SERVICEID
@Deprecated public static final String DATA_SERVICEID
Deprecated.KEY for : data service name id- See Also:
- Constant Field Values
-
PROVIDER_ID
@Deprecated public static final String PROVIDER_ID
Deprecated.KEY for : providerId the identifier of the provider which is the target of a read/write operation- See Also:
- Constant Field Values
-
PROVIDER_URI
public static final String PROVIDER_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractStorageStatusRecord
public AbstractStorageStatusRecord()
-
AbstractStorageStatusRecord
public AbstractStorageStatusRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-
Method Detail
-
getRecordType
public String 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
public AbstractStorageUsageRecord.DataType 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 public String getDataServiceClass()
Deprecated.
-
setDataServiceClass
@Deprecated public void setDataServiceClass(String dataServiceClass) throws org.gcube.documentstore.exception.InvalidValueException
Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataServiceName
@Deprecated public String getDataServiceName()
Deprecated.
-
setDataServiceName
@Deprecated public void setDataServiceName(String dataServiceName) throws org.gcube.documentstore.exception.InvalidValueException
Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDataServiceId
@Deprecated public String getDataServiceId()
Deprecated.
-
setDataServiceId
@Deprecated public void setDataServiceId(String dataServiceId) throws org.gcube.documentstore.exception.InvalidValueException
Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getProviderId
@Deprecated public URI getProviderId()
Deprecated.
-
setProviderId
@Deprecated public void setProviderId(URI provideId) throws org.gcube.documentstore.exception.InvalidValueException
Deprecated.- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getProviderURI
public URI getProviderURI()
-
setProviderURI
public void setProviderURI(URI provideURI) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-