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:
parent
fe76ed1a22
commit
107fabd78a
|
@ -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}
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue