From dc3804ae7f1b68aea3bd6c60a5a41fc6eada7df3 Mon Sep 17 00:00:00 2001 From: Alessandro Pieve Date: Fri, 29 Jul 2016 13:25:30 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-aggregator-se-plugin@130910 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 26 ++++++++++++++++--- .../plugin/AccountingAggregatorPlugin.java | 7 ++++- .../accounting/aggregator/plugin/Tests.java | 6 +++-- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index a1e1dec..7d4aa60 100644 --- a/pom.xml +++ b/pom.xml @@ -34,6 +34,7 @@ + org.gcube.vremanagement @@ -43,9 +44,23 @@ + + + org.gcube.common + common-authorization + + + + + org.gcube.common + authorization-client + + + org.gcube.core common-scope + provided @@ -61,7 +76,7 @@ compile - + org.gcube.common common-authorization @@ -70,6 +85,7 @@ org.gcube.common authorization-client + provided @@ -92,19 +108,21 @@ - + org.gcube.data.publishing document-store-lib-couchbase [1.0.1-SNAPSHOT, 2.0.0-SNAPSHOT) document-store-lib - org.gcube.data.publishing - provided + org.gcube.data.publishing + provided + org.gcube.accounting accounting-lib + [2.2.0-SNAPSHOT,2.3.0-SNAPSHOT) provided diff --git a/src/main/java/org/gcube/accounting/aggregator/plugin/AccountingAggregatorPlugin.java b/src/main/java/org/gcube/accounting/aggregator/plugin/AccountingAggregatorPlugin.java index 94c850b..a4b3132 100644 --- a/src/main/java/org/gcube/accounting/aggregator/plugin/AccountingAggregatorPlugin.java +++ b/src/main/java/org/gcube/accounting/aggregator/plugin/AccountingAggregatorPlugin.java @@ -90,6 +90,9 @@ public class AccountingAggregatorPlugin extends Plugin inputs) throws Exception { + countInsert=0; + countDelete=0; + if(inputs == null || inputs.isEmpty()){ logger.debug("{} inputs {}", this.getClass().getSimpleName(), inputs); throw new Exception("Inputs null"); @@ -127,6 +130,8 @@ public class AccountingAggregatorPlugin extends Plugin