2015-06-05 14:43:04 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.accounting.datamodel;
|
|
|
|
|
2015-12-18 17:09:05 +01:00
|
|
|
import org.gcube.documentstore.records.AggregatedRecord;
|
2015-12-21 11:50:09 +01:00
|
|
|
import org.gcube.documentstore.records.implementation.AggregatedField;
|
|
|
|
import org.gcube.documentstore.records.implementation.validations.annotations.NotEmptyIfNotNull;
|
|
|
|
import org.gcube.documentstore.records.implementation.validations.annotations.ValidInteger;
|
|
|
|
import org.gcube.documentstore.records.implementation.validations.annotations.ValidLong;
|
2015-06-05 14:43:04 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
|
|
*/
|
2015-12-21 11:50:09 +01:00
|
|
|
public interface AggregatedUsageRecord<A extends AggregatedUsageRecord<A,U>, U extends UsageRecord> extends AggregatedRecord<A,U> {
|
2015-06-05 14:43:04 +02:00
|
|
|
|
2015-12-18 17:09:05 +01:00
|
|
|
@AggregatedField @NotEmptyIfNotNull
|
|
|
|
public static final String AGGREGATED = AggregatedRecord.AGGREGATED;
|
2015-11-19 16:19:51 +01:00
|
|
|
|
2015-12-18 17:09:05 +01:00
|
|
|
@AggregatedField @ValidInteger
|
|
|
|
public static final String OPERATION_COUNT = AggregatedRecord.OPERATION_COUNT;
|
2015-11-30 18:34:48 +01:00
|
|
|
|
2015-12-18 17:09:05 +01:00
|
|
|
@AggregatedField @ValidLong
|
|
|
|
public static final String START_TIME = AggregatedRecord.START_TIME;
|
2015-11-30 18:34:48 +01:00
|
|
|
|
2015-12-18 17:09:05 +01:00
|
|
|
@AggregatedField @ValidLong
|
|
|
|
public static final String END_TIME = AggregatedRecord.END_TIME;
|
2015-11-30 18:34:48 +01:00
|
|
|
|
2015-06-05 14:43:04 +02:00
|
|
|
}
|