public class AggregatedServiceUsageRecord extends AbstractServiceUsageRecord implements AggregatedUsageRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
DURATION |
static String |
MAX_INVOCATION_TIME |
static String |
MIN_INVOCATION_TIME |
CALLED_METHOD, CALLER_HOST, CALLER_QUALIFIER, HOST, SERVICE_CLASS, SERVICE_NAMECONSUMER_ID, OPERATION_RESULT, SCOPEaggregatedFields, computation, computedFields, CREATION_TIME, ID, requiredFields, resourceProperties, validationAGGREGATED, END_TIME, OPERATION_COUNT, START_TIME| Constructor and Description |
|---|
AggregatedServiceUsageRecord() |
AggregatedServiceUsageRecord(Map<String,? extends Serializable> properties) |
AggregatedServiceUsageRecord(ServiceUsageRecord record) |
| Modifier and Type | Method and Description |
|---|---|
AggregatedServiceUsageRecord |
aggregate(AggregatedServiceUsageRecord record) |
AggregatedServiceUsageRecord |
aggregate(ServiceUsageRecord record) |
protected long |
durationWeightedAverage(AggregatedServiceUsageRecord record) |
Class<ServiceUsageRecord> |
getAggregable() |
Boolean |
getAggregate() |
Calendar |
getEndTime() |
long |
getMaxInvocationTime() |
long |
getMinInvocationTime() |
int |
getOperationCount() |
Calendar |
getStartTime() |
boolean |
isAggregable(AggregatedServiceUsageRecord record) |
boolean |
isAggregable(ServiceUsageRecord record) |
void |
setAggregate(Boolean aggregate) |
void |
setEndTime(Calendar endTime) |
void |
setMaxInvocationTime(long maxInvocationTime) |
void |
setMinInvocationTime(long minInvocationTime) |
void |
setOperationCount(int operationCount) |
void |
setStartTime(Calendar startTime) |
getCalledMethod, getCallerHost, getCallerQualifier, getDuration, getHost, getRecordType, getServiceClass, getServiceName, setCalledMethod, setCallerHost, setCallerQualifier, setDuration, setHost, setServiceClass, setServiceNamegetConsumerId, getContextFromToken, getOperationResult, getQuerableKeys, getScope, init, setConsumerId, setOperationResult, setScopecleanExtraFields, compareTo, computeField, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, timestampToCalendar, toString, validate, validateField, validatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAggregatedFieldsgetComputedFields, getCreationTime, getId, getQuerableKeys, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validatecompareTopublic static final String DURATION
public static final String MAX_INVOCATION_TIME
public static final String MIN_INVOCATION_TIME
public AggregatedServiceUsageRecord()
public AggregatedServiceUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic AggregatedServiceUsageRecord(ServiceUsageRecord record) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic int getOperationCount()
getOperationCount in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>getOperationCount in class org.gcube.documentstore.records.implementation.AbstractRecordpublic void setOperationCount(int operationCount)
throws org.gcube.documentstore.exception.InvalidValueException
setOperationCount in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>setOperationCount in class org.gcube.documentstore.records.implementation.AbstractRecordorg.gcube.documentstore.exception.InvalidValueExceptionpublic long getMaxInvocationTime()
public void setMaxInvocationTime(long maxInvocationTime)
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic long getMinInvocationTime()
public void setMinInvocationTime(long minInvocationTime)
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic Calendar getStartTime()
getStartTime in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>public void setStartTime(Calendar startTime) throws org.gcube.documentstore.exception.InvalidValueException
setStartTime in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>setStartTime in class org.gcube.documentstore.records.implementation.AbstractRecordorg.gcube.documentstore.exception.InvalidValueExceptionpublic Calendar getEndTime()
getEndTime in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>public void setEndTime(Calendar endTime) throws org.gcube.documentstore.exception.InvalidValueException
setEndTime in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>setEndTime in class org.gcube.documentstore.records.implementation.AbstractRecordorg.gcube.documentstore.exception.InvalidValueExceptionpublic void setAggregate(Boolean aggregate) throws org.gcube.documentstore.exception.InvalidValueException
setAggregate in class org.gcube.documentstore.records.implementation.AbstractRecordorg.gcube.documentstore.exception.InvalidValueExceptionpublic Boolean getAggregate()
getAggregate in class org.gcube.documentstore.records.implementation.AbstractRecordprotected long durationWeightedAverage(AggregatedServiceUsageRecord record)
public AggregatedServiceUsageRecord aggregate(AggregatedServiceUsageRecord record) throws org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
aggregate in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>org.gcube.documentstore.exception.NotAggregatableRecordsExceptionspublic AggregatedServiceUsageRecord aggregate(ServiceUsageRecord record) throws org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
aggregate in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>org.gcube.documentstore.exception.NotAggregatableRecordsExceptionspublic boolean isAggregable(AggregatedServiceUsageRecord record) throws org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
isAggregable in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>org.gcube.documentstore.exception.NotAggregatableRecordsExceptionspublic boolean isAggregable(ServiceUsageRecord record) throws org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
isAggregable in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>org.gcube.documentstore.exception.NotAggregatableRecordsExceptionspublic Class<ServiceUsageRecord> getAggregable()
getAggregable in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedServiceUsageRecord,ServiceUsageRecord>Copyright © 2017. All Rights Reserved.