|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.accounting.datamodel.RawUsageRecord
public class RawUsageRecord
A base implementation of the UsageRecord interface
Constructor Summary | |
---|---|
RawUsageRecord()
Base constructor. |
|
RawUsageRecord(UsageRecord r)
Instantiate this record using values from the given record |
Method Summary | |
---|---|
String |
getAggregatedId()
Return the id of the usage record aggregating this |
String |
getConsumerId()
Return the identity of the entity that consumed the resource |
Date |
getCreateTime()
Return the creation time for this usage record |
String |
getCreatorId()
Return the identity of the entity creating this usage record |
Date |
getEndTime()
Return the right end of the time interval covered by this usage record |
String |
getFullyQualifiedConsumerId()
|
String |
getId()
Return the unique id for this usage record |
String |
getResourceOwner()
Return the identity of the owner of the resource |
String |
getResourceScope()
Return the scope of the resource |
Map<String,String> |
getResourceSpecificProperties()
Return all resource-specific properties |
String |
getResourceSpecificProperty(String key)
Return the value of the given resource-specific property |
String |
getResourceType()
Return the type of the resource this usage records refers to |
Date |
getStartTime()
Return the left end of the time interval covered by this usage record |
void |
setAggregatedId(String aggregatedId)
Set the id of the usage record aggregating this |
void |
setConsumerId(String consumerId)
Set the identity of the entity that consumed the resource |
void |
setCreateTime(Date createTime)
Set the creation time for this usage record |
void |
setCreatorId(String creatorId)
Set the identity of the entity creating this usage record |
void |
setEndTime(Date endTime)
Set the right end of the time interval covered by this usage record |
void |
setFullyQualifiedConsumerId(String fqcid)
|
void |
setId(String id)
Set the unique id for this usage record |
void |
setResourceOwner(String owner)
Set the scope of the resource |
void |
setResourceScope(String scope)
Set the scope of the resource |
void |
setResourceSpecificProperties(Map<String,String> props)
Set all resource-specific properties, replacing existing ones |
void |
setResourceSpecificProperty(String name,
String value)
Set the value of the given resource-specific property |
void |
setResourceType(String resourceType)
Set the type of the resource this usage records refers to |
void |
setStartTime(Date startTime)
Set the left end of the time interval covered by this usage record |
String |
toString()
|
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RawUsageRecord()
public RawUsageRecord(UsageRecord r) throws InvalidValueException
r
-
InvalidValueException
Method Detail |
---|
public Date getCreateTime()
getCreateTime
in interface UsageRecord
public void setCreateTime(Date createTime)
setCreateTime
in interface UsageRecord
public String getCreatorId()
getCreatorId
in interface UsageRecord
public void setCreatorId(String creatorId)
setCreatorId
in interface UsageRecord
public String getConsumerId()
getConsumerId
in interface UsageRecord
public void setConsumerId(String consumerId)
setConsumerId
in interface UsageRecord
public String getFullyQualifiedConsumerId()
getFullyQualifiedConsumerId
in interface UsageRecord
public void setFullyQualifiedConsumerId(String fqcid)
setFullyQualifiedConsumerId
in interface UsageRecord
public Date getStartTime()
UsageRecord
getStartTime
in interface UsageRecord
public void setStartTime(Date startTime) throws InvalidValueException
setStartTime
in interface UsageRecord
InvalidValueException
public void setEndTime(Date endTime) throws InvalidValueException
setEndTime
in interface UsageRecord
InvalidValueException
public Date getEndTime()
getEndTime
in interface UsageRecord
public String getId()
getId
in interface UsageRecord
public void setResourceSpecificProperty(String name, String value)
setResourceSpecificProperty
in interface UsageRecord
public String getResourceSpecificProperty(String key)
getResourceSpecificProperty
in interface UsageRecord
public void setId(String id)
setId
in interface UsageRecord
public String getAggregatedId()
getAggregatedId
in interface UsageRecord
public void setAggregatedId(String aggregatedId)
setAggregatedId
in interface UsageRecord
public String getResourceType()
getResourceType
in interface UsageRecord
public void setResourceType(String resourceType)
setResourceType
in interface UsageRecord
public String getResourceOwner()
getResourceOwner
in interface UsageRecord
public void setResourceOwner(String owner)
setResourceOwner
in interface UsageRecord
public void setResourceScope(String scope)
setResourceScope
in interface UsageRecord
public String getResourceScope()
getResourceScope
in interface UsageRecord
public Map<String,String> getResourceSpecificProperties()
getResourceSpecificProperties
in interface UsageRecord
public void setResourceSpecificProperties(Map<String,String> props)
setResourceSpecificProperties
in interface UsageRecord
public void validate() throws InvalidValueException
validate
in interface UsageRecord
InvalidValueException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |