Class PersistenceAccountingService


  • public class PersistenceAccountingService
    extends org.gcube.documentstore.persistence.PersistenceBackend
    Author:
    Alessandro Pieve (ISTI - CNR) alessandro.pieve@isti.cnr.it, Luca Frosini (ISTI - CNR) luca.frosini@isti.cnr.it
    • Constructor Detail

      • PersistenceAccountingService

        public PersistenceAccountingService()
    • Method Detail

      • forceURL

        protected static void forceURL​(String url)
      • prepareConnection

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

        protected void send​(org.gcube.documentstore.records.Record... records)
                     throws Exception
        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
      • accountWithFallback

        protected void accountWithFallback​(org.gcube.documentstore.records.Record... records)
                                    throws Exception
        Overrides:
        accountWithFallback in class org.gcube.documentstore.persistence.PersistenceBackend
        Throws:
        Exception
      • close

        public void close()
                   throws Exception
        Overrides:
        close 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
      • 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
      • clean

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