Class PersistencePostgreSQL


  • public class PersistencePostgreSQL
    extends org.gcube.documentstore.persistence.PersistenceBackend
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger logger  
      protected StatementMap statementMap  
      • Fields inherited from class org.gcube.documentstore.persistence.PersistenceBackend

        aggregationScheduler, fallbackPersistence, fallbackUseCounter, fallbackUseStartTime, forceFallbackUse, MAX_FALLBACK_RETRY, MAX_TIME_TO_FALLBACK, persistenceBackendMonitor
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
    • Constructor Detail

      • PersistencePostgreSQL

        public PersistencePostgreSQL()
    • Method Detail

      • prepareConnection

        public void prepareConnection​(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)
                               throws Exception
        Specified by:
        prepareConnection in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception
      • openConnection

        protected void openConnection()
                               throws Exception
        Specified by:
        openConnection in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception
      • reallyAccount

        protected void reallyAccount​(org.gcube.documentstore.records.Record record)
                              throws Exception
        Specified by:
        reallyAccount in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception
      • insert

        public void insert​(org.gcube.documentstore.records.Record record)
                    throws Exception
        Throws:
        Exception
      • clean

        protected void clean()
                      throws Exception
        Specified by:
        clean in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception
      • closeConnection

        protected void closeConnection()
                                throws Exception
        Specified by:
        closeConnection in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception
      • isConnectionActive

        public boolean isConnectionActive()
                                   throws Exception
        Specified by:
        isConnectionActive in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception