update to version 1.4.0
added new accounting libs git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/content-management/storage-manager-trigger@122376 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4fab4ee8b0
commit
c84dc3ddda
25
pom.xml
25
pom.xml
|
@ -8,7 +8,7 @@
|
|||
</parent>
|
||||
<groupId>org.gcube.contentmanagement</groupId>
|
||||
<artifactId>storage-manager-trigger</artifactId>
|
||||
<version>1.3.0-SNAPSHOT</version>
|
||||
<version>1.4.0-SNAPSHOT</version>
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/content-management/${project.artifactId}</connection>
|
||||
<developerConnection>scm:svn:https://svn.d4science.research-infrastructures.eu/gcube/trunk/content-management/${project.artifactId}</developerConnection>
|
||||
|
@ -21,7 +21,6 @@
|
|||
<dependency>
|
||||
<groupId>org.mongodb</groupId>
|
||||
<artifactId>mongo-java-driver</artifactId>
|
||||
<!-- <version>2.12.4</version> -->
|
||||
<version>[3.0.0, 3.1.0)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -35,11 +34,6 @@
|
|||
<version>4.11</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.gcube.accounting</groupId> -->
|
||||
<!-- <artifactId>common-accounting-lib</artifactId> -->
|
||||
<!-- <version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version> -->
|
||||
<!-- </dependency> -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.core</groupId>
|
||||
<artifactId>common-scope</artifactId>
|
||||
|
@ -66,14 +60,19 @@
|
|||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.accounting</groupId>
|
||||
<artifactId>accounting-lib</artifactId>
|
||||
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<groupId>org.gcube.data.publishing</groupId>
|
||||
<artifactId>document-store-lib</artifactId>
|
||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.accounting</groupId>
|
||||
<artifactId>accounting-lib-persistence-couchdb</artifactId>
|
||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<groupId>org.gcube.data.publishing</groupId>
|
||||
<artifactId>document-store-lib-couchdb</artifactId>
|
||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.accounting</groupId>
|
||||
<artifactId>accounting-lib</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package org.gcube.contentmanager.storageserver.accounting;
|
||||
|
||||
//import org.gcube.accounting.datamodel.RawUsageRecord;
|
||||
|
||||
import org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord;
|
||||
|
||||
public interface Report {
|
||||
|
|
|
@ -2,12 +2,10 @@ package org.gcube.contentmanager.storageserver.accounting;
|
|||
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.Date;
|
||||
|
||||
import org.gcube.accounting.datamodel.UsageRecord.OperationResult;
|
||||
import org.gcube.accounting.datamodel.basetypes.AbstractStorageUsageRecord.OperationType;
|
||||
import org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord;
|
||||
import org.gcube.accounting.exception.InvalidValueException;
|
||||
import org.gcube.documentstore.exception.InvalidValueException;
|
||||
import org.gcube.accounting.persistence.AccountingPersistence;
|
||||
import org.gcube.accounting.persistence.AccountingPersistenceFactory;
|
||||
import org.gcube.contentmanager.storageserver.parse.utils.DateUtils;
|
||||
|
@ -59,7 +57,7 @@ import org.slf4j.LoggerFactory;
|
|||
}
|
||||
if(size!= null) sur.setDataVolume(Long.parseLong(size));
|
||||
|
||||
} catch (InvalidValueException e1) {
|
||||
} catch (org.gcube.documentstore.exception.InvalidValueException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
e1.printStackTrace();
|
||||
} catch (URISyntaxException e) {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.gcube.contentmanager.storageserver.consumer;
|
||||
|
||||
import org.gcube.accounting.datamodel.RawUsageRecord;
|
||||
import org.gcube.contentmanager.storageserver.accounting.Report;
|
||||
import org.gcube.contentmanager.storageserver.accounting.ReportConfig;
|
||||
import org.gcube.contentmanager.storageserver.accounting.ReportException;
|
||||
|
|
|
@ -3,7 +3,6 @@ package org.gcube.contentmanager.storageserver.consumer;
|
|||
import java.util.List;
|
||||
|
||||
import org.bson.types.ObjectId;
|
||||
import org.gcube.accounting.datamodel.RawUsageRecord;
|
||||
import org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.contentmanager.storageserver.accounting.Report;
|
||||
|
|
|
@ -77,7 +77,7 @@ public class Startup {
|
|||
private static void startProducer(String[] args, String oplogServer,
|
||||
String[] server, CubbyHole c1, CubbyHole c2) {
|
||||
ReadingMongoOplog producer=null;
|
||||
if(args[2]!=null && args[3]!= null)
|
||||
if((args.length == 4 )&& (args[2]!=null) && (args[3]!= null))
|
||||
producer=new ReadingMongoOplog( Arrays.asList(oplogServer), args[2], args[3], c1, c2, 1 );
|
||||
else //if(args.length == 2)
|
||||
producer=new ReadingMongoOplog( Arrays.asList(server), c1, c2, 1 );
|
||||
|
|
|
@ -2,10 +2,6 @@ package org.gcube.contentmanager.storageserver.accounting;
|
|||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.net.URISyntaxException;
|
||||
|
||||
import org.gcube.accounting.datamodel.usagerecords.StorageUsageRecord;
|
||||
import org.gcube.accounting.exception.InvalidValueException;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
|
Loading…
Reference in New Issue