2015-06-09 14:03:59 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2015-07-01 11:02:45 +02:00
|
|
|
package org.gcube.accounting.aggregation;
|
2015-06-09 14:03:59 +02:00
|
|
|
|
2015-06-09 15:53:21 +02:00
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.Map;
|
2015-06-09 14:03:59 +02:00
|
|
|
|
|
|
|
import org.gcube.accounting.datamodel.AggregatedUsageRecord;
|
2015-07-29 14:41:28 +02:00
|
|
|
import org.gcube.accounting.datamodel.basetypes.AbstractJobUsageRecord;
|
|
|
|
import org.gcube.accounting.datamodel.usagerecords.JobUsageRecord;
|
2015-06-09 15:53:21 +02:00
|
|
|
import org.gcube.accounting.exception.InvalidValueException;
|
2015-06-09 14:03:59 +02:00
|
|
|
|
|
|
|
/**
|
2015-06-23 17:47:38 +02:00
|
|
|
* This Class is for library internal use only
|
2015-06-09 14:03:59 +02:00
|
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
|
|
*/
|
2015-07-29 14:41:28 +02:00
|
|
|
public class AggregatedJobUsageRecord extends AbstractJobUsageRecord implements AggregatedUsageRecord<AggregatedJobUsageRecord, JobUsageRecord> {
|
2015-06-09 14:03:59 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generated Serial Version UID
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = -3376423316219914682L;
|
|
|
|
|
2015-06-26 15:50:39 +02:00
|
|
|
private void init(){
|
2015-06-26 12:40:24 +02:00
|
|
|
this.resourceProperties.put(AGGREGATED, true);
|
|
|
|
}
|
|
|
|
|
2015-07-29 14:41:28 +02:00
|
|
|
public AggregatedJobUsageRecord(){
|
2015-06-09 14:03:59 +02:00
|
|
|
super();
|
2015-06-26 15:50:39 +02:00
|
|
|
init();
|
2015-06-09 14:03:59 +02:00
|
|
|
}
|
2015-06-09 15:53:21 +02:00
|
|
|
|
2015-07-29 14:41:28 +02:00
|
|
|
public AggregatedJobUsageRecord(Map<String, Serializable> properties) throws InvalidValueException{
|
2015-06-09 15:53:21 +02:00
|
|
|
super(properties);
|
2015-06-26 15:50:39 +02:00
|
|
|
init();
|
2015-06-09 15:53:21 +02:00
|
|
|
}
|
2015-06-15 11:28:19 +02:00
|
|
|
|
2015-06-09 14:03:59 +02:00
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
@Override
|
2015-07-29 14:41:28 +02:00
|
|
|
public AggregatedJobUsageRecord getAggregatedUsageRecord(JobUsageRecord b)
|
2015-06-23 17:47:38 +02:00
|
|
|
throws InvalidValueException {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
2015-06-09 14:03:59 +02:00
|
|
|
}
|
2015-06-23 17:47:38 +02:00
|
|
|
|
2015-06-09 14:03:59 +02:00
|
|
|
|
|
|
|
}
|