public abstract class StorageUsageRecord extends BasicUsageRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
StorageUsageRecord.DataType |
static class |
StorageUsageRecord.OperationType |
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_TYPE
KEY for : type of data accessed.
|
static String |
DATA_VOLUME
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
|
AGGREGATED, aggregatedFields, computedFields, CONSUMER_ID, CREATION_TIME, END_TIME, ID, OPERATION_COUNT, OPERATION_RESULT, requiredFields, resourceProperties, SCOPE, START_TIME, USAGE_RECORD_TYPE, validation| Constructor and Description |
|---|
StorageUsageRecord() |
StorageUsageRecord(Map<String,Serializable> properties) |
| Modifier and Type | Method and Description |
|---|---|
StorageUsageRecord.DataType |
getDataType() |
long |
getDataVolume() |
StorageUsageRecord.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() |
void |
setDataType(StorageUsageRecord.DataType dataType) |
void |
setDataVolume(long dataVolume) |
void |
setOperationType(StorageUsageRecord.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) |
compareTo, getAllFields, getClass, getConsumerId, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getOperationResult, getRequiredFields, getResourceProperties, getResourceProperty, getScope, getStartTimeAsCalendar, getStartTimeInMillis, getUsageRecord, initializeValidation, setConsumerId, setCreationTime, setEndTime, setId, setOperationCount, setOperationResult, setResourceProperties, setResourceProperty, setScope, setStartTime, timestampStringToCalendar, toString, validate, validateField, validatePropertiespublic 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 StorageUsageRecord()
public StorageUsageRecord(Map<String,Serializable> properties) throws InvalidValueException
InvalidValueExceptionpublic String getResourceOwner()
public void setResourceOwner(String owner) throws InvalidValueException
owner - the identity id of the storage resource ownerInvalidValueExceptionpublic String getResourceScope()
public void setResourceScope(String scope) throws InvalidValueException
scope - the scope of the storage resourceInvalidValueExceptionpublic URI getProviderURI()
public void setProviderURI(URI providerURI) throws InvalidValueException
InvalidValueExceptionpublic URI getResourceURI()
public void setResourceURI(URI resourceURI) throws InvalidValueException
InvalidValueExceptionpublic StorageUsageRecord.OperationType getOperationType()
public void setOperationType(StorageUsageRecord.OperationType operationType) throws InvalidValueException
InvalidValueExceptionpublic StorageUsageRecord.DataType getDataType()
public void setDataType(StorageUsageRecord.DataType dataType) throws InvalidValueException
InvalidValueExceptionpublic long getDataVolume()
public void setDataVolume(long dataVolume)
throws InvalidValueException
InvalidValueExceptionpublic String getQualifier()
public void setQualifier(String qualifier) throws InvalidValueException
InvalidValueExceptionCopyright © 2015. All Rights Reserved.