org.gcube.accounting.datamodel
Class StorageRecord

java.lang.Object
  extended by org.gcube.accounting.datamodel.AbstractDelegateUsageRecord
      extended by org.gcube.accounting.datamodel.StorageRecord
All Implemented Interfaces:
UsageRecord

public class StorageRecord
extends AbstractDelegateUsageRecord


Field Summary
static String STORAGE
           
 
Fields inherited from class org.gcube.accounting.datamodel.AbstractDelegateUsageRecord
ur
 
Constructor Summary
StorageRecord()
           
StorageRecord(UsageRecord ur)
           
 
Method Summary
 long getItemCount()
          Return the number of storage items in use at the end of the period
 String getStorageContext()
          Return the context for this record
 long getStorageTransactions()
          Return the number of basic storage operations performed in the period
 long getStorageVolume()
          Return the overall amount of storage in use at the end of the record period
 void setItemCount(Long items)
          Set the number of storage items in use at the end of the period
 void setStorageContext(String context)
          Set the context we're referring to
 void setStorageTransactions(Long transactions)
          Set the number of basic storage operations performed in the period
 void setStorageVolume(Long volume)
          Set the overall amount of storage in use at the end of the record period
 void validate()
           
 
Methods inherited from class org.gcube.accounting.datamodel.AbstractDelegateUsageRecord
getAggregatedId, getConsumerId, getCreateTime, getCreatorId, getCustomProperties, getCustomProperty, getDelegateUR, getEndTime, getFullyQualifiedConsumerId, getId, getModifyTime, getResourceOwner, getResourceSpecificProperties, getResourceSpecificProperty, getResourceType, getStartTime, setAggregatedId, setConsumerId, setCreateTime, setCreatorId, setCustomProperties, setCustomProperty, setEndTime, setFullyQualifiedConsumerId, setId, setModifyTime, setResourceOwner, setResourceSpecificProperties, setResourceSpecificProperty, setResourceType, setStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STORAGE

public static final String STORAGE
See Also:
Constant Field Values
Constructor Detail

StorageRecord

public StorageRecord()

StorageRecord

public StorageRecord(UsageRecord ur)
Method Detail

setStorageVolume

public void setStorageVolume(Long volume)
                      throws InvalidValueException
Set the overall amount of storage in use at the end of the record period

Parameters:
volume -
Throws:
InvalidValueException

getStorageVolume

public long getStorageVolume()
Return the overall amount of storage in use at the end of the record period

Returns:

setStorageTransactions

public void setStorageTransactions(Long transactions)
                            throws InvalidValueException
Set the number of basic storage operations performed in the period

Parameters:
transactions -
Throws:
InvalidValueException

getStorageTransactions

public long getStorageTransactions()
Return the number of basic storage operations performed in the period

Returns:

setItemCount

public void setItemCount(Long items)
                  throws InvalidValueException
Set the number of storage items in use at the end of the period

Parameters:
items -
Throws:
InvalidValueException

getItemCount

public long getItemCount()
Return the number of storage items in use at the end of the period

Parameters:
items -

setStorageContext

public void setStorageContext(String context)
Set the context we're referring to

Parameters:
context -

getStorageContext

public String getStorageContext()
Return the context for this record

Returns:

validate

public void validate()
              throws InvalidValueException
Specified by:
validate in interface UsageRecord
Overrides:
validate in class AbstractDelegateUsageRecord
Throws:
InvalidValueException


Copyright © 2012. All Rights Reserved.