From 107fabd78aad217878c8acd66b47277198cfb129 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 14 Jul 2015 10:07:06 +0000 Subject: [PATCH] Improving code git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117210 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../persistence/AccountingPersistence.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/gcube/accounting/persistence/AccountingPersistence.java b/src/main/java/org/gcube/accounting/persistence/AccountingPersistence.java index 37d8af0..b7e8f3e 100644 --- a/src/main/java/org/gcube/accounting/persistence/AccountingPersistence.java +++ b/src/main/java/org/gcube/accounting/persistence/AccountingPersistence.java @@ -20,6 +20,9 @@ public abstract class AccountingPersistence { protected FallbackPersistence fallback; protected AggregationScheduler aggregationScheduler; + protected AccountingPersistence(){ + + } protected AccountingPersistence(FallbackPersistence fallback, AggregationScheduler aggregationScheduler){ this.fallback = fallback; @@ -49,18 +52,6 @@ public abstract class AccountingPersistence { */ protected abstract void prepareConnection(AccountingPersistenceConfiguration configuration) throws Exception; - /* * - * Prepare the connection and try to write a test record on default - * persistence and fallback persistence. - * This method should not be re-implemented from subclass. - * @throws Exception if fails - * / - public void connect() throws Exception { - persistence.prepareConnection(); - persistence.account(createTestUsageRecord()); - } - */ - /** * This method contains the code to save the {@link #UsageRecord} *