|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.accounting.datamodel.AbstractDelegateUsageRecord
org.gcube.accounting.datamodel.StorageRecord
public class StorageRecord
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STORAGE
| Constructor Detail |
|---|
public StorageRecord()
public StorageRecord(UsageRecord ur)
| Method Detail |
|---|
public void setStorageVolume(Long volume)
throws InvalidValueException
volume -
InvalidValueExceptionpublic long getStorageVolume()
public void setStorageTransactions(Long transactions)
throws InvalidValueException
transactions -
InvalidValueExceptionpublic long getStorageTransactions()
public void setItemCount(Long items)
throws InvalidValueException
items -
InvalidValueExceptionpublic long getItemCount()
items - public void setStorageContext(String context)
context - public String getStorageContext()
public void validate()
throws InvalidValueException
validate in interface UsageRecordvalidate in class AbstractDelegateUsageRecordInvalidValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||