Fixing code
This commit is contained in:
parent
9ff6bdc135
commit
e9eed9f889
|
@ -23,7 +23,6 @@ import org.gcube.accounting.aggregator.status.AggregationStateEvent;
|
|||
import org.gcube.accounting.aggregator.status.AggregationStatus;
|
||||
import org.gcube.accounting.aggregator.utility.Constant;
|
||||
import org.gcube.accounting.aggregator.utility.Utility;
|
||||
import org.gcube.accounting.analytics.persistence.postgresql.AccountingPersistenceQueryPostgreSQL;
|
||||
import org.gcube.accounting.datamodel.AggregatedUsageRecord;
|
||||
import org.gcube.accounting.persistence.AccountingPersistenceConfiguration;
|
||||
import org.gcube.accounting.utility.postgresql.RecordToDBFields;
|
||||
|
@ -64,7 +63,7 @@ public class PostgreSQLConnector extends PersistencePostgreSQL implements Aggreg
|
|||
|
||||
protected Connection getConnection() throws Exception {
|
||||
if(connection==null || connection.isClosed()) {
|
||||
String url = configuration.getProperty(AccountingPersistenceQueryPostgreSQL.URL_PROPERTY_KEY);
|
||||
String url = configuration.getProperty(AccountingPersistenceConfiguration.URL_PROPERTY_KEY);
|
||||
|
||||
if(connection!=null && connection.isClosed()) {
|
||||
logger.warn("The connection was closed. We should investigate why. Going to reconnect to {}.", url);
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
package org.gcube.accounting.aggregator.persistence;
|
||||
|
||||
import org.gcube.documentstore.persistence.PersistencePostgreSQL;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI-CNR)
|
||||
*/
|
||||
public class PostgreSQLConnectorDst extends PostgreSQLConnector implements AggregatorPersistenceDst {
|
||||
|
||||
protected PostgreSQLConnectorDst() throws Exception {
|
||||
// super(PostgreSQLConnectorDst.class);
|
||||
super(PersistencePostgreSQL.class);
|
||||
super(AggregatorPersistenceDst.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
package org.gcube.accounting.aggregator.persistence;
|
||||
|
||||
import org.gcube.accounting.analytics.persistence.postgresql.AccountingPersistenceQueryPostgreSQL;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI-CNR)
|
||||
*/
|
||||
public class PostgreSQLConnectorSrc extends PostgreSQLConnector implements AggregatorPersistenceSrc {
|
||||
|
||||
protected PostgreSQLConnectorSrc() throws Exception {
|
||||
// super(PostgreSQLConnectorSrc.class);
|
||||
super(AccountingPersistenceQueryPostgreSQL.class);
|
||||
super(AggregatorPersistenceSrc.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
package org.gcube.accounting.aggregator.persistence;
|
||||
|
||||
import org.gcube.documentstore.persistence.PersistencePostgreSQL;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI-CNR)
|
||||
*/
|
||||
class PostgreSQLConnectorStatusDst extends PostgreSQLConnectorStatus implements AggregatorPersistenceStatusDst {
|
||||
|
||||
protected PostgreSQLConnectorStatusDst() throws Exception {
|
||||
super(PersistencePostgreSQL.class);
|
||||
super(AggregatorPersistenceSrc.class);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
package org.gcube.accounting.aggregator.persistence;
|
||||
|
||||
import org.gcube.accounting.analytics.persistence.postgresql.AccountingPersistenceQueryPostgreSQL;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI-CNR)
|
||||
*/
|
||||
class PostgreSQLConnectorStatusSrc extends PostgreSQLConnectorStatus implements AggregatorPersistenceStatusSrc {
|
||||
|
||||
protected PostgreSQLConnectorStatusSrc() throws Exception {
|
||||
super(AccountingPersistenceQueryPostgreSQL.class);
|
||||
super(AggregatorPersistenceSrc.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue