Class AggregatedJobUsageRecord

    • Constructor Detail

      • AggregatedJobUsageRecord

        public AggregatedJobUsageRecord()
      • AggregatedJobUsageRecord

        public AggregatedJobUsageRecord​(Map<String,​? extends Serializable> properties)
                                 throws org.gcube.documentstore.exception.InvalidValueException
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • AggregatedJobUsageRecord

        public AggregatedJobUsageRecord​(JobUsageRecord record)
                                 throws org.gcube.documentstore.exception.InvalidValueException
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
    • Method Detail

      • getOperationCount

        public int getOperationCount()
        Specified by:
        getOperationCount in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedJobUsageRecord,​JobUsageRecord>
        Overrides:
        getOperationCount in class org.gcube.documentstore.records.implementation.AbstractRecord
      • setOperationCount

        public void setOperationCount​(int operationCount)
                               throws org.gcube.documentstore.exception.InvalidValueException
        Specified by:
        setOperationCount in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedJobUsageRecord,​JobUsageRecord>
        Overrides:
        setOperationCount in class org.gcube.documentstore.records.implementation.AbstractRecord
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • getMaxInvocationTime

        public long getMaxInvocationTime()
      • setMaxInvocationTime

        public void setMaxInvocationTime​(long maxInvocationTime)
                                  throws org.gcube.documentstore.exception.InvalidValueException
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • getMinInvocationTime

        public long getMinInvocationTime()
      • setMinInvocationTime

        public void setMinInvocationTime​(long minInvocationTime)
                                  throws org.gcube.documentstore.exception.InvalidValueException
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • setStartTime

        public void setStartTime​(Calendar startTime)
                          throws org.gcube.documentstore.exception.InvalidValueException
        Specified by:
        setStartTime in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedJobUsageRecord,​JobUsageRecord>
        Overrides:
        setStartTime in class org.gcube.documentstore.records.implementation.AbstractRecord
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • setEndTime

        public void setEndTime​(Calendar endTime)
                        throws org.gcube.documentstore.exception.InvalidValueException
        Specified by:
        setEndTime in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedJobUsageRecord,​JobUsageRecord>
        Overrides:
        setEndTime in class org.gcube.documentstore.records.implementation.AbstractRecord
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • setAggregated

        public void setAggregated​(Boolean aggregate)
                           throws org.gcube.documentstore.exception.InvalidValueException
        Overrides:
        setAggregated in class org.gcube.documentstore.records.implementation.AbstractRecord
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • isAggregated

        public Boolean isAggregated()
        Overrides:
        isAggregated in class org.gcube.documentstore.records.implementation.AbstractRecord
      • durationWeightedAverage

        protected long durationWeightedAverage​(AggregatedJobUsageRecord record)
                                        throws org.gcube.documentstore.exception.InvalidValueException
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • isAggregable

        public boolean isAggregable​(AggregatedJobUsageRecord record)
                             throws org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
        Specified by:
        isAggregable in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedJobUsageRecord,​JobUsageRecord>
        Throws:
        org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
      • isAggregable

        public boolean isAggregable​(JobUsageRecord record)
                             throws org.gcube.documentstore.exception.NotAggregatableRecordsExceptions
        Specified by:
        isAggregable in interface org.gcube.documentstore.records.AggregatedRecord<AggregatedJobUsageRecord,​JobUsageRecord>
        Throws:
        org.gcube.documentstore.exception.NotAggregatableRecordsExceptions