|
||||||||||
| 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.VMUsageRecord
public class VMUsageRecord
| Field Summary | |
|---|---|
static String |
TYPE_VM
|
| Fields inherited from class org.gcube.accounting.datamodel.AbstractDelegateUsageRecord |
|---|
ur |
| Constructor Summary | |
|---|---|
VMUsageRecord()
|
|
VMUsageRecord(UsageRecord ur)
|
|
| Method Summary | |
|---|---|
Integer |
getCores()
Return the number of cores allocated to the Virtual Machine |
String |
getRefHost()
Return a reference to the machine hosting the virtual machine |
String |
getRefVM()
Return the id of the Virtual Machine |
Calendar |
getUsageEnd()
Return the date when the machine usage ended |
Calendar |
getUsageStart()
Return the date when the machine usage started |
void |
setCores(Integer cores)
Set the number of cores allocated to the Virtual Machine |
void |
setRefHost(String refHost)
Set a reference to the machine hosting the virtual machine |
void |
setRefVM(String refVM)
Set the id of the virtual machine |
void |
setStartTime(Calendar startTime)
Set the left end of the time interval covered by this usage record |
void |
setUsageEnd(Calendar usageEnd)
Set the date when the machine usage ended |
void |
setUsageStart(Calendar usageStart)
Set the date when the machine usage started |
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 TYPE_VM
| Constructor Detail |
|---|
public VMUsageRecord(UsageRecord ur)
public VMUsageRecord()
| Method Detail |
|---|
public String getRefVM()
public void setRefVM(String refVM)
public Integer getCores()
public void setCores(Integer cores)
throws InvalidValueException
InvalidValueExceptionpublic String getRefHost()
public void setRefHost(String refHost)
refHost - public Calendar getUsageStart()
public Calendar getUsageEnd()
public void setUsageStart(Calendar usageStart)
throws InvalidValueException
usageStart -
InvalidValueException
public void setUsageEnd(Calendar usageEnd)
throws InvalidValueException
usageEnd -
InvalidValueException
public void setStartTime(Calendar startTime)
throws InvalidValueException
UsageRecord
setStartTime in interface UsageRecordsetStartTime in class AbstractDelegateUsageRecordInvalidValueException
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 | |||||||||