public abstract class AbstractDelegateUsageRecord extends Object implements UsageRecord
| Modifier and Type | Field and Description |
|---|---|
protected UsageRecord |
ur |
| Constructor and Description |
|---|
AbstractDelegateUsageRecord() |
AbstractDelegateUsageRecord(UsageRecord ur) |
| Modifier and Type | Method and Description |
|---|---|
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
|
UsageRecord |
getDelegateUR() |
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
|
Map<String,String> |
getResourceSpecificProperties()
Return all resource-specific properties
|
String |
getResourceSpecificProperty(String name)
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 |
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
|
void |
validate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResourceScope, setResourceScopeprotected UsageRecord ur
public AbstractDelegateUsageRecord()
public AbstractDelegateUsageRecord(UsageRecord ur)
public UsageRecord getDelegateUR()
public Date getCreateTime()
UsageRecordgetCreateTime in interface UsageRecordpublic void setCreateTime(Date createTime)
UsageRecordsetCreateTime in interface UsageRecordpublic String getCreatorId()
UsageRecordgetCreatorId in interface UsageRecordpublic void setCreatorId(String creatorId)
UsageRecordsetCreatorId in interface UsageRecordpublic String getConsumerId()
UsageRecordgetConsumerId in interface UsageRecordpublic void setConsumerId(String consumerId)
UsageRecordsetConsumerId in interface UsageRecordpublic String getFullyQualifiedConsumerId()
getFullyQualifiedConsumerId in interface UsageRecordpublic void setFullyQualifiedConsumerId(String fqcid)
setFullyQualifiedConsumerId in interface UsageRecordpublic Date getStartTime()
UsageRecordgetStartTime in interface UsageRecordpublic void setStartTime(Date startTime) throws InvalidValueException
UsageRecordsetStartTime in interface UsageRecordInvalidValueExceptionpublic Date getEndTime()
UsageRecordgetEndTime in interface UsageRecordpublic void setEndTime(Date endTime) throws InvalidValueException
UsageRecordsetEndTime in interface UsageRecordInvalidValueExceptionpublic String getId()
UsageRecordgetId in interface UsageRecordpublic void setId(String id)
UsageRecordsetId in interface UsageRecordpublic String getResourceSpecificProperty(String name)
UsageRecordgetResourceSpecificProperty in interface UsageRecordpublic void setResourceSpecificProperty(String name, String value)
UsageRecordsetResourceSpecificProperty in interface UsageRecordpublic Map<String,String> getResourceSpecificProperties()
UsageRecordgetResourceSpecificProperties in interface UsageRecordpublic void setResourceSpecificProperties(Map<String,String> props)
UsageRecordsetResourceSpecificProperties in interface UsageRecordpublic String getAggregatedId()
UsageRecordgetAggregatedId in interface UsageRecordpublic void setAggregatedId(String aggregatedId)
UsageRecordsetAggregatedId in interface UsageRecordpublic String getResourceType()
UsageRecordgetResourceType in interface UsageRecordpublic void setResourceType(String resourceType)
UsageRecordsetResourceType in interface UsageRecordpublic String getResourceOwner()
UsageRecordgetResourceOwner in interface UsageRecordpublic void setResourceOwner(String owner)
UsageRecordsetResourceOwner in interface UsageRecordpublic void validate()
throws InvalidValueException
validate in interface UsageRecordInvalidValueExceptionCopyright © 2015. All Rights Reserved.