public abstract class AbstractStorageUsageRecord extends BasicUsageRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractStorageUsageRecord.DataType |
static class |
AbstractStorageUsageRecord.OperationType |
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_TYPE
KEY for : type of data accessed.
|
static String |
DATA_VOLUME
KEY for : Quantity of data in terms of KB
|
static String |
OPERATION_TYPE
KEY for : The operation performed over the stored resource.
|
static String |
PROVIDER_URI |
static String |
QUALIFIER
KEY for : Qualifies the data in terms of data (e.g.
|
static String |
RESOURCE_OWNER
KEY for : The Owner of the stored Resource
|
static String |
RESOURCE_SCOPE
KEY for : The Scope where the Resource was stored
|
static String |
RESOURCE_URI
KEY for : The URI of the Stored Resource
|
CONSUMER_ID, OPERATION_RESULT, SCOPE, USAGE_RECORD_TYPE| Constructor and Description |
|---|
AbstractStorageUsageRecord()
KEY for : callerQualifier
|
AbstractStorageUsageRecord(Map<String,? extends Serializable> properties) |
| Modifier and Type | Method and Description |
|---|---|
AbstractStorageUsageRecord.DataType |
getDataType() |
long |
getDataVolume() |
AbstractStorageUsageRecord.OperationType |
getOperationType() |
URI |
getProviderURI() |
String |
getQualifier() |
String |
getResourceOwner()
Return the identity id of the storage resource owner
|
String |
getResourceScope()
Return the scope of the storage resource
|
URI |
getResourceURI() |
protected String |
giveMeRecordType() |
void |
setDataType(AbstractStorageUsageRecord.DataType dataType) |
void |
setDataVolume(long dataVolume) |
void |
setOperationType(AbstractStorageUsageRecord.OperationType operationType) |
void |
setProviderURI(URI providerURI) |
void |
setQualifier(String qualifier) |
void |
setResourceOwner(String owner)
Set the identity id of the storage resource owner
|
void |
setResourceScope(String scope)
Set the scope of the storage resource
|
void |
setResourceURI(URI resourceURI) |
getConsumerId, getOperationResult, getQuerableKeys, getScope, getScopeFromToken, init, setConsumerId, setOperationResult, setScopecleanExtraFields, compareTo, computeField, getAggregate, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, setAggregate, setCreationTime, setEndTime, setId, setOperationCount, setRecordType, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComputedFields, getCreationTime, getId, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validatecompareTopublic static final String RESOURCE_OWNER
public static final String RESOURCE_SCOPE
public static final String RESOURCE_URI
public static final String PROVIDER_URI
public static final String OPERATION_TYPE
#StorageUsageRecord.OperationTypepublic static final String DATA_TYPE
#StorageUsageRecord.DataTypepublic static final String DATA_VOLUME
public static final String QUALIFIER
public AbstractStorageUsageRecord()
public AbstractStorageUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionprotected String giveMeRecordType()
giveMeRecordType in class BasicUsageRecordpublic String getResourceOwner()
public void setResourceOwner(String owner) throws org.gcube.documentstore.exception.InvalidValueException
owner - the identity id of the storage resource ownerorg.gcube.documentstore.exception.InvalidValueExceptionpublic String getResourceScope()
public void setResourceScope(String scope) throws org.gcube.documentstore.exception.InvalidValueException
scope - the scope of the storage resourceorg.gcube.documentstore.exception.InvalidValueExceptionpublic URI getProviderURI()
public void setProviderURI(URI providerURI) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic URI getResourceURI()
public void setResourceURI(URI resourceURI) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic AbstractStorageUsageRecord.OperationType getOperationType()
public void setOperationType(AbstractStorageUsageRecord.OperationType operationType) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic AbstractStorageUsageRecord.DataType getDataType()
public void setDataType(AbstractStorageUsageRecord.DataType dataType) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic long getDataVolume()
public void setDataVolume(long dataVolume)
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic String getQualifier()
public void setQualifier(String qualifier) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionCopyright © 2017. All Rights Reserved.