Improving code

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117210 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-07-14 10:07:06 +00:00
parent fe76ed1a22
commit 107fabd78a
1 changed files with 3 additions and 12 deletions

View File

@ -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}
*