Creating management of source and destination persistence
This commit is contained in:
parent
7948a98365
commit
abec9f97f8
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package org.gcube.accounting.aggregator.persistence;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public interface AggregatorPersistenceDst extends AggregatorPersistence {
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package org.gcube.accounting.aggregator.persistence;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
public interface AggregatorPersistenceSrc extends AggregatorPersistence {
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue