Extended visibility of constant
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117296 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d08b708616
commit
f0b9f1cd4b
|
@ -29,9 +29,9 @@ public class ServiceUsageRecord extends org.gcube.accounting.datamodel.basetypes
|
|||
public static final String DURATION = org.gcube.accounting.datamodel.basetypes.ServiceUsageRecord.DURATION;
|
||||
|
||||
@RequiredField @ValidLong @AggregatedField
|
||||
protected static final String MAX_INVOCATION_TIME = "maxInvocationTime";
|
||||
public static final String MAX_INVOCATION_TIME = "maxInvocationTime";
|
||||
@RequiredField @ValidLong @AggregatedField
|
||||
protected static final String MIN_INVOCATION_TIME = "minInvocationTime";
|
||||
public static final String MIN_INVOCATION_TIME = "minInvocationTime";
|
||||
|
||||
private void init(){
|
||||
this.resourceProperties.put(AGGREGATED, true);
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
*/
|
||||
package org.gcube.accounting.datamodel;
|
||||
|
||||
import org.gcube.accounting.datamodel.decorators.AggregatedField;
|
||||
import org.gcube.accounting.datamodel.validations.annotations.ValidInteger;
|
||||
import org.gcube.accounting.exception.InvalidValueException;
|
||||
|
||||
/**
|
||||
|
@ -10,6 +12,9 @@ import org.gcube.accounting.exception.InvalidValueException;
|
|||
*/
|
||||
public interface AggregatedUsageRecord<T extends AggregatedUsageRecord<T, B>, B extends SingleUsageRecord> extends UsageRecord {
|
||||
|
||||
@AggregatedField @ValidInteger
|
||||
public static final String OPERATION_COUNT = "operationCount";
|
||||
|
||||
public T getAggregatedUsageRecord(B usageRecord) throws InvalidValueException ;
|
||||
|
||||
}
|
||||
|
|
|
@ -123,6 +123,7 @@ public abstract class BasicUsageRecord implements UsageRecord, Serializable {
|
|||
*/
|
||||
@AggregatedField @NotEmptyIfNotNull
|
||||
protected static final String AGGREGATED = "aggregated";
|
||||
|
||||
/**
|
||||
* KEY for : Indicate The Number of Aggregated Operation
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
package org.gcube.accounting.messaging;
|
||||
|
||||
import org.gcube.accounting.aggregation.ServiceUsageRecord;
|
||||
|
||||
|
||||
@Deprecated
|
||||
public class QueueCouple {
|
||||
|
||||
|
@ -34,7 +37,5 @@ public class QueueCouple {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue