Creating management of source and destination persistence

This commit is contained in:
Luca Frosini 2024-02-05 16:32:08 +01:00
parent 7948a98365
commit abec9f97f8
4 changed files with 16 additions and 31 deletions

View File

@ -5,8 +5,4 @@ package org.gcube.accounting.aggregator.persistence;
*/
public interface AggregatorPersistence {
public static final int KEY_VALUES_LIMIT = 25;
public void prepareConnection(AggregatorPersitenceConfiguration configuration) throws Exception;
}

View File

@ -0,0 +1,8 @@
package org.gcube.accounting.aggregator.persistence;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public interface AggregatorPersistenceDst extends AggregatorPersistence {
}

View File

@ -0,0 +1,8 @@
package org.gcube.accounting.aggregator.persistence;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public interface AggregatorPersistenceSrc extends AggregatorPersistence {
}

View File

@ -1,27 +0,0 @@
package org.gcube.accounting.aggregator.persistence;
import org.gcube.accounting.persistence.AccountingPersistenceConfiguration;
/**
* @author Luca Frosini (ISTI-CNR)
* @author Alessandro Pieve (ISTI-CNR)
*/
public class AggregatorPersitenceConfiguration extends AccountingPersistenceConfiguration {
/**
* Default Constructor
*/
public AggregatorPersitenceConfiguration() {
super();
}
/**
* @param persistence The class of the persistence to instantiate
* @throws Exception if fails
*/
@SuppressWarnings({ "rawtypes" })
public AggregatorPersitenceConfiguration(Class<?> persistence) throws Exception {
super((Class) persistence);
}
}