PostgisIndxer Init

This commit is contained in:
Fabio Sinibaldi 2022-03-17 11:41:03 +01:00
parent 9f4c79d416
commit bffae85071
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import org.gcube.application.cms.plugins.faults.InitializationException;
import org.gcube.application.cms.plugins.faults.ShutDownException;
import org.gcube.application.cms.plugins.reports.InitializationReport;
import org.gcube.application.cms.plugins.reports.Report;
import org.gcube.application.cms.sdi.engine.PostgisIndexer;
import org.gcube.application.cms.sdi.engine.SDIManagerWrapper;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.rest.DatabaseConnection;
@ -66,6 +67,7 @@ public abstract class SDIAbstractPlugin extends AbstractPlugin implements Initia
InitializationReport report = new InitializationReport();
try{
initCache();
PostgisIndexer.init();
report.setStatus(Report.Status.OK);
} catch (Throwable e) {
throw new InitializationException("SDI Plugins : Unable to initialize Internal Caches ",e);